mathias-arm / mbed-os-sdio-glue

Apache License 2.0
2 stars 1 forks source link

erase error with FAT reformat with DISCO F746NG #1

Open fran203 opened 4 years ago

fran203 commented 4 years ago

Hi,

I am trying out the filesystem example with SD card storage on DISCOF746NG and it ran fine with LittleFS. I have to format with FAT now,but I'm getting the following error when trying to reformat sd card with FAT filesystem.

--- Mbed OS filesystem example --- Mounting the filesystem... Fail :( No filesystem found, formatting... Fail :(

++ MbedOS Error Info ++ Error Status: 0x80FF0100 Code: 256 Module: 255 Error Message: Fatal Run-time error Location: 0x80005D5 Error Value: 0x0 Current Thread: main Id: 0x200082A4 Entry: 0x80075E7 StackSize: 0x1000 StackMem: 0x20008EA0 SP: 0x20009E04 For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=DISCO_F746NG -- MbedOS Error Info -- error: (-5015)

I could find the following issue for dataflash..is there something similar to be done for SD as well? https://github.com/ARMmbed/mbed-os/issues/9145

fran203 commented 4 years ago

BD size details :

BD size: 15931539456 BD read size: 512 BD program size: 512 BD erase size: 512

fran203 commented 4 years ago

Reformat with LFS: Mounting the filesystem... lfs error:494: Corrupted dir pair at 0 1 lfs error:2222: Invalid superblock at 0 1 Fail :( No filesystem found, formatting... OK Opening "/fs/numbers.txt"... Fail :( No file found, creating a new file... OK