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: haltedtarget halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00080020 msp: 0x20004000, semihostinglr (/32): 0x00000000Error: command ignored for attempted access of a protected or out of memory location)Error: failed erasing sectors 0 to 17Error: flash_erase returned -902Error: SWD ack not OK: 4 FAULTInfo : SWD IDCODE 0x6ba02477Error: SWD ack not OK: 4 FAULTInfo : dropped 'gdb' connection
What is the reason and what can I do to get out of this state?
This error is pertaining to accessing/writing in protected memory area. Ttry to erase the flash of ADuCM4050 first using Serial CorssCore Programmer before downloading your code.