Use Secure Provisiong Tool to erase flash
In worst cases a debugger cannot successfully connect to the board. A major reason for this is there are POR boot image inside the on board flash memory which causes the whole system in a trouble state. Secure Provisioning Tool provide a reliable way to erase the flash in this worst case. To achieve this
Set SW5[1:4] to
0001
.Connect the board to your PC from both
J53
(Debugging) andJ33
(USB OTG 1), then power up the board.Start
Secure Provisioning Tool
, selectTool
>Flash Programmer
orCtrl + R
.Click
Yes
to prompt up questions, wait memory initialization finish.Click
Erase all
button and wait a minute for the erase process to finish.After
Success: Erase whole memory
shows up, the board should have restored to a good state to work in various mode.
Parent topic:Bootable image generation