i want to use keil middleware for file system and using micro sd with ssp on LPC1768. after finit("M0:") i call fmount("M0:"), but it returns fsMediaError error.
#include "cmsis_os.h" #include "rl_fs.h" #include "GPIO_LPC17xx.h"
fsStatus state;
/* * main: initialize and start the system */ int main (void) { GPIO_SetDir(2, 0, 1); GPIO_SetDir(2, 1, 1);
if(finit("M0:") == fsOK) { GPIO_PinWrite(2, 0, 1); if(fmount("M0:") == fsMediaError) { GPIO_PinWrite(2, 1, 1); } }
while(1) { } }
So apparently driver levels below this are unable to use/access the memory device you are using for the file system.
You'll need to review your pin selection, and peripheral configuration, and debug what's happening down in the driver stack.
Thanks for your reply I checked all pin configuration and prepherials, all things are true. I used debug and ssp are working well. I dont know whats the problem
Hi
I have the same problem.
I tried using different libraries but nothing helps.
Does anyone have a solution?