1 week, 3 days ago.
MAX32630FTHR SD interface
I have tried the example SD_Demo code with six different SD cards with no luck. I have put debug statements in many places in the library to try to find the problem, but I can't get it to work. The code can see the SD card, initialize the library, see that the card is present, see that it is type CARD_SDHC, and report the capacity as 4GB (even for a larger card). The code will not open an existing file for read, nor will it open a file for write or append.
Maybe it's just me, but I suspect it's not. Anyone else able to use SD cards with their MAX32630FTHR? This board could be useful if I could use SD cards....
- Just Gary
Question relating to:
1 week, 2 days ago.
Hi, same for me: I tried several examples without success.. Also the demo project of the online mbed compiler is not generating the promised "Hello World" myfile.txt
1 week, 1 day ago.
I cannot answer your question perfectly because I don't have a MAX32630FTHR board.
But I have been trying several way to use the SD card during 2 to 3 week and finally success.
Please try my program as below.
At least you need to modify my program.
// Constructor ---------------------------------------------------------------- //DigitalOut led(LED1); // same as D13 (equal to SPI CLK) STM Nucleo //DigitalIn user_sw(USER_BUTTON); DigitalIn user_sw(P2_3); // For MAX32630FTHR Serial pc(USBTX, USBRX, 115200); #if (MBED_MAJOR_VERSION == 2) SDFileSystem sd(D11, D12, D13, D10, "fs"); // do,di,clk,cs #elif (MBED_MAJOR_VERSION == 5) //SDBlockDevice sd(D11, D12, D13, D10, 8000000); SDBlockDevice sd(SPI0_MOSI, SPI0_MISO, SPI0_SCK, SPI0_SS, 8000000); // For MAX32630FTHR FATFileSystem fs("fs"); #endif
In the program, you can check the interface condition using FatFs monitor (you can enter the monitor by hit a key from terminal).
Please let me know again if you cannot control the SD.
1 week, 1 day ago.
This project works: https://os.mbed.com/users/switches/code/FTHR_USBMSD_BD/
To post an answer, please log in.