Hi My code is :
i=0; i=finit("M0:"); if(i!=0) return;
fp=fopen("M0:\\myconfig.dat","r"); if(fp==NULL){ fclose(fp); }
File myconfig.dat not in MMC but fopen return 0x10001B48 where is problem?
If what you posted is actually the code, then I'm surprised it's even compiling.
If you are using MDK 5, then you will want to call fmount(): www.keil.com/.../group__system__routines.html
Look at the examples from the Pack Installer or \ARM\RL, \ARM\Boards\ folders to know where to start. What are the return values of finit and fopen?
OK, my bad. You already said what fopen returns. What does finit return?
I use keil 4.74 And finit return 0 I use LPC1788 , please uplouad example source code or bin file Thanks
Example code was uploaded years ago.
I use this link to create my app http://www.keil.com/support/man/docs/rlarm/rlarm_fs_usingmcard.htm
my bus mode is Native