lpcware

Problem in FatFS using Chan's lib

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by viswanath on Sat Apr 13 13:45:26 MST 2013

HI,


Need help in FatFS in SD card using LPC4350 controller. file system is mounting with f_mount, but not able to open any file with f_open.


as per the application note by chans library: <a href="http://elm-chan.org/fsw/ff/en/appnote.html#port">http://elm-chan.org/fsw/ff/en/appnote.html#port</a>,


need to use disk_initialize() for intilization. in the sample prjts directly used f_mount to mount the file system.


f_mount is called at the time of sysinit(). am need to call <span style="background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-size: 14px; line-height: 17.671875px;">disk_initialize().</span><span style="background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-size: 14px; line-height: 17.671875px;">disk_status(),</span><span style="background-color: #ffffff; font-family: Consolas, 'Courier New', monospace; font-size: 14px; line-height: 17.671875px;">disk_read() before to f_mount.</span>


 


Please sugest me where i did mistake.


regards,


Viswanath K.

Outcomes