We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello all.
We're using a board based on a STM32f217zg with the RL-ARM libraries and currently we're trying to get a file system working on the micro SD card using SPI (SPI3 to be exact). We've gotten similar code working on a MCBSTM32C (STM32f107) board and could read and write files/directories etc with great success.
After modifying the code to work on the 217, we could successfully call finit(), and also fformat("m:"), and it behaves as expected.
however, we are unable to create files using the fopen command, which returns a NULL file pointer. Nor are we able to open existing files using the same command.
My question is: are there any ways to go about debugging this? there doesn't seem to be any error codes to be obtained from the Keil libraries... Am I forced to debug this on the SPI level, looking at the commands being sent back and forth?
Thanks for any advice.