-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Computer dos not recognise board after activating SD-Card on SKR ProV1.1 #244
Comments
The pin assignments for the SD card are wrong - likely never tested by the user that posted the pull request for the board. |
Looking closer: the pins are mapped to the EXP2 header - for an external SD card breakout? |
Thanks for your quick reply! At first it seemed obvious to me that it would have been the SD-card reader that was present on the board itself, but after some research (for instance: bigtreetech/BIGTREETECH-SKR-PRO-V1.1#35 ) it seems that there is something quircky about that on board SD-card slot. Maybe because the SD-card slot is also used for loading new firmware on the processor.... I will try and report back what happens when i hook up an external SD-card breakout. |
I tried connecting the SD card extension that is on a "reprapdiscount smart controller" (the one that is normally connected to the SKR Pro), but it makes no difference. After that i tried to connect another separate SD card extension, but that still the same message on the computer when i connect the board. It seems like http://svn.io-engineering.com:8080/ is down. (I wanted to create some other configuration to see if that made any difference) |
The Web Builder is up again now - had a power outage yesterday. There will be another one today.
Could be something crashing the controller. Are you programming with a debug probe and can halt the program? |
The pin mapping for SD card chip select is incorrect, it messes up a USB pin. I have committed a fix so you may try again now. |
Between GPIOB and PB? I guess that is by convention. GPIOB is used by the STM32 framework to reference port B, PB as a shorthand for labeling pins in the port.
Yes. |
This seems very logical! :-) I tested the external SD card reader, but it doesn't work either. The board returns "error:60 - SD Card mount failed." Do you have tips about what i can do for more debugging? |
Are you compiling with more than 3 axes? If so PB15 is remapped as cycle start pin at line 147-148 - likely making problems for the SPI port. |
I only have three Axis. I had Y-axis set to "Auto-squared", which makes it 4 motors, but when i changed Y to "Single motor", the effect was the same. Is there any way i can debug this? Have some read out of what happens? Do i need to install the "STM32Cube" software to do this? |
Do you have access to an oscilloscope? |
No, atm I don't. |
Ok, even better with a logic analyzer. At startup there should be a long train of clock pulses (SCK) with the MOSI and CS pins held high. If these are not there the controller has likely crashed for some reason earlier in the startup sequence. |
CS is active low, so that is correct. When $FM is issued, a long clock train with CS and MOSI high is sent to the card to initialize it to single lane mode. Then some commands are sent to it to check what type of card it is and proceed from there if it responds in a sane way. It is in this function I have done most of my debugging, if this fails you have communication issues. |
Did you disable the USB port by commenting out this line? And is the UART port routed to the correct pins? You can check with the |
I tried the Marlin firmware again, and with that firmware the SD-card reader actually works. Like i said i will also try to analyse the communication with the logic analyser later. |
No I didn't. I have only built firmware for the board by using the web builder.
I will check! I'm exited to try and find out! It would be awesome if that could work! PS: thanks for all your replies! It is much appreciated! I try my best to find out what I can, but I'm kind of out of my depth for many of the things :-| |
Yes.
Correct. However, if ESP3D is updated to support the MPG & DRO interface both can be used.
Hopefully we can resolve the SD card issue if you are persistent and do not give up. And it is great to learn some new stuff, no? |
On connecting to the ESP3D:
I built a version with the web builder with the "(Virtual) UART" active. It no longer connects to usb (computer), but it does not connect to the ESP3D either.
I executed the
I agree, it's just that sometimes you want a little win to stay motivated to keep going :-) |
The default UART is routed to J50/TFT display (PA9/PA10), can be changed to the J48/UART3 header (PD8/PD9) by uncommenting this line - the UART3 header cannot be selected in the Web Builder though.
My bad, it is a chicken/egg situation - when USB is compiled in the UART port/pins are excluded from the build. |
FYI commit with option to use UART6 just up. |
Web Builder error is due to me commiting a config file with number of axes set to 4, fixed now.
Did you connect RX to TX and TX to RX? |
Ok, so I did some more testing! I followed your advice to check with a UART to USB and a logger. The problem seems to be in the ESP32. The GrblHal board outputs the welcome message as you mentioned. I tried some more interaction like the "help" and the "$$" and that all seems to work! Which is nice! BTW: I did these tests with a new built from the web builder. Your fix worked, the builder no longer stopped on an error! (y) |
FYI I just got a Nucleo-144 with a F446 that has the same pins as the SKR uses for the SD card broken out. The SD card works with USB or UART 3 enabled (compiled with the SKR map), IMO this means the code is ok. |
Ok. After your message I was triggered to do some more testing. :) |
Are you able to set a breakpoint here? Or modify the code to output a message? At startup the card is probed at a low clock frequency - if this succesful, indicated by a non-zero |
Hello,
I'm using the "Web Builder v0.9" for compiling firmware for an SKR ProV1.1 board.
When i configurate the firmware without an SD card, everything (testing without motors attahced with IOsender) seems to be ok.
I can jog the axes through the IO-sender program.
However, when I build the firmware with "SD Card" enabled under "Plugins" in the configurator, the computer no longer recognises the board when it is plugged in. It shows the following message:
Is there something i can do about this? I would like to use the SD-card capability of the board.
This is the board configuration Json from the configurator (with SD Card enabled in this case):
{"driver":"STM32F4xx","URL":"https://github.com/grblHAL/STM32F4xx","board":"BOARD_BTT_SKR_PRO_1_2","symbols":["USE_HAL_DRIVER","STM32F407xx","HSE_VALUE=8000000","HAS_BOOTLOADER","USB_SERIAL_CDC=1","X_AUTO_SQUARE=1","PROBE_ENABLE=1","SDCARD_ENABLE=1"],"docker_instance":"","grblHAL":"webBuilder"}
The text was updated successfully, but these errors were encountered: