AnsweredAssumed Answered

Error when ending debugging

Question asked by Walter Colombo on Feb 4, 2020
Latest reply on Apr 9, 2020 by Sabina Bruce

I am having a lot of difficulties to start programming with the MKE18F256VLH16 microcontroller.
I'm using MCUXpresso 11.1.0, SDK 2.7.0,  and a PE Multilink tool to SWD debug.

The board was assembled by me, and it is a simple flash LED, and it build fine. The first time the download program run successfully, but at all other times it didn't.

The microcontroller yet has been replaced, and it continue always lock at debug
99%, showing an error message: Runtime error 216 at 03E3434A:





Console message:


Connection from "" via Connection from port "62926" to 6225
Connection from "" via Connection from port "62939" to 7225
Telnet server running on
Searching for FreeRTOS Kernel Symbols...
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2018 P&E Microcomputer Systems,Inc.
Command Line :C:\nxp\MCUXpressoIDE_11.1.0_3209\ide\plugins\com.pemicro.debug.gdbjtag.pne_4.4.9.202001152348\win32\pegdbserver_console -device=NXP_KEx_KE18F256M16 -startserver -singlesession -serverport=7225 -gdbmiport=6225 -interface=USBMULTILINK -speed=4
P&E Interface detected - Flash Version 6.15


Target has been RESET and is active.
CMD>CM C:\nxp\MCUXpressoIDE_11.1.0_3209\ide\plugins\com.pemicro.debug.gdbjtag.pne_4.4.9.202001152348\win32\gdi\P&E\supportFiles_ARM\NXP\KEx\freescale_ke18f256m16_pflash_dflash_eeprom.arp


;version 1.04, 12/03/2019, Copyright 2019 P&E Microcomputer Systems, Inc. All rights reserved. [ke18f256m16_x_pflash_dflash_eeprom]

;device freescale, ke18f256m16, pflash_dflash_eeprom

;begin_cs device=$00000000, length=$14001000, ram=$20000000

Loading programming algorithm ...
Programming sequency is : erase, blank check, program, and verify {default}
Verifying object file CRC-16 to device ranges ...
block 00000000-00001BB7 ...
Calculated CRC-16 does not match block. (File = $DCD9, Device = $5598)
Current content of flash does not match application to be programmed


Module has been erased.
Reloading programming algorithm ...
Error Erasing flash of device
Error occured during Flash programming.

PEmicro GDB Launch Failure : Error during flash programming. Terminating debug session.




Can anyone help me?