How to erase FLASH ?

Somehow I’ve corrupted the flash on my module. Can anyone tell me how to reset it?

I have “File System” enabled. Apparently I caused the problem by trying to write more data than it could hold. Now, when it boots up NAFScreate_volume (“FLASH0”) returns NAFS_IBLOCK_ARRAY_ENTRY_NOT_FOUND. It then calls netosFatalError and it’s dead at that point.

Digi ESP for NET+OS
Version: 1.4.0
Build id: 03132009 NET+OS 7.4.2

Nevermind… I changed nafs_intf.c to handle the NAFS_IBLOCK_ARRAY_ENTRY_NOT_FOUND case and just let it call NAFlashErase itself.