Usb Lowlevel: Format 501 Upgrade Code
for (;;) pet_watchdog(); switch(checkpoint.phase) case PH_ERASE: uint32_t i = checkpoint.cur_block; for (; i < BLOCKS_TOTAL; ++i) if (flash_is_bad(i)) continue; if (!flash_erase_block(i)) flash_mark_bad(i); continue;
If you have a drive that is read-only, showing 0 bytes, or RAW, the "upgrade" process involves flashing the controller. usb lowlevel format 501 upgrade code