DISCO_L475VG_IOT01 mbed assertation failed

Hello guys,

Has anyone experienced this issue when running the pelion example on the DISCO_L475VG_IOT0 board ?

Connecting to the network using Wifi…
Unable to connect to network. Retrying…
Connected to the network successfully. IP address: 192.168.43.198
Initializing Pelion Device Management Client…
mbed assertation failed: block < lfs->cfg->block_count, file: /extras/mbed-os.lib/features/storage/filesystem/littlefs/littlefs▒▒ t▒

Thanks,
Andrei

This looks like a corrupt file system. If you format the storage layer it should pass again… Could it be that you previously formatted the file system as FAT?

fs->reformat(bd);

Should do the trick.

We do it like this.

Thank you Jan.
It worked perfectly.