Hi, Ahtoh,
I think you can use blhost tools to mass erasing the flash during boot-up stage after power-up.
If you use uart0 to boot application code:
USART mode
FC0_TXD PIO0_30
FC0_RXD PIO0_29
You can use the following blhost command to erase the flash:
1)download blhost tools
Bootloader Host Application (blhost)
2)execute blhost command
You can use the command on PC side:
blhost -p comxx get-property 2
blhost -p comxx flash-erase-all
Pls have a try
BR
Xiangjun Rong
ISP pins configuration during Reset state so taht you can enter bootloader mode:
