I have an error when I try to reload the SD card (SDHC 4G Kingston) on G120 with Firmware 4.3.7.10. The first time when the application starts the SD card load OK, but if you remove it and insert it again,it shows an error and not files are found. Here I put a debug print of two cases:
**** First Load *******
[em]Insert event fired; SD card mount is finished.
File Sistem: FAT
ID: 0
Name: SD
Root: \SD
Serial Number: 0
Total Size: 4027318272
Free Space: 4026925056
File Sistem Flags: 0000
Device Flags: 0000
Load Device Config
Configuration File Found[/em]
***** Reload ******
[em]Insert event fired; SD card mount is finished.
File Sistem: FAT
ID: 0
Name: SD
Root: \SD
Serial Number: 0
Total Size: 4027318272
Free Space: 449183744
File Sistem Flags: 0000
Device Flags: 0000
Load Device Config
Configuration File NOT Found[/em]
As you can see on the first load the free space is 4026925056, but in the reload the free space is 449183744.
@ DYDEX-HS - It looks like you call Unmount after you physically remove the SD card. Does the issue persist if you unmount before physically removing it?
@ John - That’s right, but how can I know when it will be removed?? In a standar application the idea is that it can support that anytime. But the program works perfect with SD Cards of 2G and 1G, the error is present only in SDHC Cards.
@ DYDEX-HS - Similar to the Windows option of Safely Remove, possibly a button next to the SD card. Adding that mechanism to test will at least narrow down the issue.