This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fmount fails with fsMediaError

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) { }
}

Parents
  • 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.

Reply
  • 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.

Children