Writing on a SD card, but nothing written
Hi,
I used SPI and FatFs to connect a SD card to my STM32L053R8 and I think I managed to initialize the connection. I used adafruit code and SD_IO_Init function. I attached the main.c file. The only way I found to notice the errors was to toggle the led on times depending where the error was (if you have any tip on how to make it differently, I’m interested in it .
The problem I have is that the files on the SD card are not changed after the code is sent. And the Led is blinking with a 14s period.. I previously had problems with f_mount and f_open but it seems to be solved.
Maybe it could come from the card itself, it is a 4GB micro sdhc card, I tried to format it in many configurations (exFat with xxx bytes, actually it is FAT with 64KB), but I don’t really know which one should work, and if there is a link beween the 64KB and the parameter in the FatFs config..
Thanks !