When running the SD card demo (mfs_sdcard) I can get up to the following place:
sdcard_handle = fopen("sdcard:", 0);
if ( sdcard_handle == NULL )
{
printf("Unable to open SD card device.\n");
_task_block();
}
Here it fails and I get the error message :Unable to open SD card device.
I configured user_config.h as required.
Are there any hw switches I have to change to access the card?
I can access the card from the PC w/o any problems.
Hi Ronysha,
Which processor and which version of MQX are you using?
Regards,
David
TWRK60N512 MQX 3.7
Thanks
Hi Ronysha,
I made mod to user_config.h (made the #define BSPCFG_ENABLE_ESDHC 1), then recompiled the BSP,PSP,MFS, and then example/application).
It works for me.
I'm using the TWRK60 and TWRSER cards.
TWRK60 jumpers: J1 in, J6=2-3, J8 in, J9=1-2
TWRSER jumpers: J2=3-4, J3=2-3, J10=1-2, J11=5-6, J12=9-10, J16=1-2 and 5-6, J15=1-2, J17=1-2, J19=1-2
Hope this helps.
Regards,
David
I did as you said and was able to get over that point.
Now I get the message: File system not mounted.
What am I doing wrong now?
Thanks
Hi Ronysha,
Sounds like it is close! I recommend doing a total clean of the software....so do a clean on each project (BSP,PSP,MSF,Shell and application) then rebuild them all. Make sure if you build for the Debug target that the application is built for Debug target too.
If that doesn't work I've attach my elf file, s-record, and map file in the attached ZIP. You can compare the map file to yours. You can also program my elf or s-record on your hardware to see if the hardware is good.
Sorry for the hassles.
Regards,
David