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.
I have been trying to use the SD Card on the MCB2300 with either the 2387 or 2388. In both cases, the example code for USB\Device\Memory_FlashFS\SD_FILE\Memory.uvproj and RL\FlashFS\SD_File projects, the SD card may or may not initialize correctly upon startup. Usually you get the message that it's not formatted, but that's just because the finit fails. However, this only happens every other time. If it works at startup, it will fail on reset, and then work again after a second reset. If it fails at startup, the next reset will make it work, etc. I traced it back to finit, but then I can't debug past that because I don't have source code (yet). I tried contacting Keil directly, but after numerous requests all I got was:
We've had some issues with the SD Card library letely. Please download and install v4.22, which may address some of them.
Let me know if you still have problems with the new version.
The new version worked the same way, which I reported, and I've heard nothing since. Has anyone else seen this behavior, and is there a workaround?
What's so strange is that it fails exactly every other reset. something like this
if (a) { ...... ...... ...... a=0; } else { fail }
a good look at variables before and after ONE reset could be very revealing.
Erik