Hi,
Erasing the flash of my LPC55S69-EVK via the GUI flash tool works fine. However, I need this to be done on the command line. When I click "Preview Command" in the GUI flash tool and then use this command on the command line, however, it does not work reliably.
Sometimes it works, sometimes it does not:
Nc: Sending VECTRESET to run flash driver
Nc: AFTER driver startup timeout (302 5ms retries)
[...]
Nc: Flash Driver V.2 startup failed - rc Ef(34): Timed-out initializing flash.
Ec: vendor chip initialization failed - Ef(34): Timed-out initializing flash.
Wc: failed to initialize flash driver LPC55xx_S.cfx
So my question is, what does the GUI Tool differently that it works there. I made the observation that the GUI seems to do a reset, as the controller puts out some USART debug output before the actual command is even executed.
Additional info: I use the newest IDE (11.3.1), SDK (2.9.1) and the Probe Firmware is LPC-LINK2 CMSIS-DAP V5.224 and boards of revision A2. It is a secure world (trustzone) project, the CPU goes into the secure hardfault as soon as crt_emu_cm_redlink issues the VECTRESET. Furthermore, the scripts were working fine with old revision A1 boards.