We are using J-Link Plus in SWD mode to debug the NXP MKL17Z128VLH4 controller. In order to boot the MKL17Z device from the flash we need to set the Flash Configuration area (0x00000400 - 0x0000040F) with some specific data. The IAR EWARM Ver7.6 provides an option to enable the flash config area using the argument "--enable_config_write " in the flash loader file settings. In code we have used IAR's #pragma location directive to place the configuration settings at flash config location "0x00000400". Now when I try to debug the code using J-Link Plus hardware I get following error:
"DAP error while reading aircr/cpuid register" . But now if I de-select the flash loader file from the IAR WB debugger setup then the J-Link loads the .out file and enters the debug mode. But now since the "--enable_config_write " argument is not enabled (flash loader file is de-selected) the configuration settings are not written in the Flash. I am stuck since the device does not boot after the power cycle. Can anyone please help me understand the root cause of this issue?
"DAP error while reading aircr/cpuid register" . But now if I de-select the flash loader file from the IAR WB debugger setup then the J-Link loads the .out file and enters the debug mode. But now since the "--enable_config_write " argument is not enabled (flash loader file is de-selected) the configuration settings are not written in the Flash. I am stuck since the device does not boot after the power cycle. Can anyone please help me understand the root cause of this issue?