Post Go back to editing

ADuCM4050 failed erasing sectors


I'm working with the ADuCM4050 on our own board with bare metal SW.

I used the CrossCore Serial Flash Programmer to program the flash of the ADuCM4050 several times.

After several successful trials, I continuously receive the following message in the stats window:

Read Intel HEX application image with 708 bytes.
Received autobaud response:
Product ID: ADuCM4050 *
Revision: 110
Serial number: 2171E5CB74E4D983E3B0100063637333
User code present.
User code checksum failed.
Write protection disabled.
Read protection enabled.
Sent 708/708 bytes.
Download completed.
Run command sent.
Programming flash image.
Read Intel HEX flash image with 35696 bytes.
Autobaud succeeded.
Erased 0/18 pages.
Erase failed in address range 0x00000000..0x00003FFF.

When traying to program the flash using the CCES and the ICE-2000, I received the following:

target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00080020 msp: 0x20004000, semihosting
lr (/32): 0x00000000
Error: command ignored for attempted access of a protected or out of memory location)
Error: failed erasing sectors 0 to 17
Error: flash_erase returned -902
Error: SWD ack not OK: 4 FAULT
Info : SWD IDCODE 0x6ba02477
Error: SWD ack not OK: 4 FAULT
Info : dropped 'gdb' connection

What is the reason and what can I do to get out of this state?

Thanks, T.