Hi everyone,
I've written a simple code to read a few binary files from SD card. I've configured the MMCSD, storage initalization, get the drive ID and then use the 'open' to access the files.
fptr = open(ImagePath, (O_BINARY|O_RDONLY), 0);
The codes works fine in debug mode. With similar linker and compiler options (i've turned on the Generate Debug info, -g, in release mode), the codes seems to be stucked at 'open' when I tried to run in release mode. It displayed 'Mount starting: drive number 0, and stucked there.
While in debug mode, it displayed 'Mount starting: drive number 0' and 'Mount succeeded: drive number 0' and then the process continues successfully.
Can you guys here can point me the solution to this problem ? My program is based on MMCSD project example. The example can run in both debug and release mode. I'm using rtfs_1_10_02_32.
Thanks in advance.
Best regards,
Rizuan