Unable to flash using JLink and SDK

I’m having an issue flashing an image onto our DA16200. I see that SDK has a big change to JLINK loaders as well as the programming address of the bin files.

It appears that loader files from SDK don’t work. I’m able to connect to the chip but unable to erase it. If I use the loader from SDK, I’m able to connect and erase the chip.

SDK erase DOES NOT WORK. I'm using JLink 770.

/Applications/SEGGER/JLink/JLinkExe -Device DA16200.eclipse.4MB -Log "./jlink.log" -CommandFile "erase_all.jlink"

Results in:

J-Link>exec EnableEraseAllFlashBanks
No address range specified, 'Erase Chip' will be executed
'erase': Performing implicit reset & halt of MCU.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Erasing device...
T-bit of XPSR is 0 but should be 1. Changed to 1.

****** Error: PC of target system has unexpected value after preparing target. (PC = 0x00000000)!
---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
PC = 00000000
Current: R0 = 0008ED08, R1 = 000000F1, R2 = 00000000, R3 = 00005050
R4 = 0008DD64, R5 = 80001111, R6 = 0008723C, R7 = 00000000

Failed to initialize RAMCode
J-Link: Flash download: Total time needed: 3.431s (Prepare: 1.383s, Compare: 0.000s, Erase: 0.019s, Program: 0.000s, Verify: 0.000s, Restore: 2.028s)

****** Error: Timeout while restoring target, core does not stop. (PC = 0x00089A9C, XPSR = 0x61000000, SP = 0x0008ED28)!
ERROR: Erase returned with error code -5.

Parents Reply Children
No Data