I’m having an issue flashing an image onto our DA16200. I see that SDK 3.2.4.0 has a big change to JLINK loaders as well as the programming address of the bin files.It appears that loader files from SDK 3.2.4.0 don’t work. I’m able to connect to the chip but unable to erase it. If I use the loader from SDK 3.2.2.0, I’m able to connect and erase the chip.SDK 3.2.4.0 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 EnableEraseAllFlashBanksJ-Link>eraseNo 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 = 00000000Current: R0 = 0008ED08, R1 = 000000F1, R2 = 00000000, R3 = 00005050 R4 = 0008DD64, R5 = 80001111, R6 = 0008723C, R7 = 00000000----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Failed to initialize RAMCodeJ-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.
Hi ST-Kon,
Thanks for posting on RULZ! Could you please let us know if you have followed all the steps from the UM-WI-056 user manual, chapter 5.10 Programming DA16200 with SEGGER J-Link in Eclipse ?
https://www.renesas.com/us/en/document/qsg/um-wi-056-da16200-da16600-freertos-getting-started-guide?language=en
Best regards,
PM_Renesas