I found a piece of stm32f411 today, compiled with cnc3040. I don’t know how to enable SD card
评论 (3)
#3 – terjeio 于 2023-09-03
> May I ask what is the reason for this?
Because you have not remapped the pins you want to use for SPI? E.g. GPIOA 5 is originally mapped as ZDIRECTIONPIN, this has to be changed to different unused pin.
#1 – terjeio 于 2023-09-02
You cannot, pins are not assigned for it. A new board map has to be made that defines a SPI port and a pin for SD card chip select (CS).
#2 – auxp 于 2023-09-03
I added it on CNC 3040
#if SDCARD_ENABLE
#define SDCSPORT GPIOA
#define SDCSPIN 11
#define SPIPORT 1 // 1 GPIOA, SCKPIN = 5, MISOPIN = 6, MOSIPIN = 7 (EXP2 Header)
#endif
mymachine.h change #define SDCARDENABLE 2
Connect to the corresponding interface Not working?
transmitter ioSender XL 2.0.42
May I ask what is the reason for this? Where else do I need to make changes?