AnsweredAssumed Answered

"Flash from file" not working for release build

Question asked by Rudy Vigneault on Mar 12, 2018
Latest reply on Jun 6, 2018 by Rudy Vigneault

Hi!

 

I am using Kinetis Design Studio v3.2.0 to develop for a Kinetis MK64FX512VDC12.

 

I am using a PEMicro Multilink Universal module to debug and I am not able to flash (Run --> Flash from file...) when the application file I built is in release configuration.

 

In that case, the running application is stopped on the target hardware but the application to flash is not starting.

 

When the application file is in debug configuration, the running application is stopped and the application to flash is started.

 

Here is the Console output I get (it is basically the same than the one I get in Debug configuration besides checksum values):

Connection from "127.0.0.1" via 127.0.0.1
Connection from "127.0.0.1" via 127.0.0.1
Searching for FreeRTOS Kernel Symbols...
  pxCurrentTCB not found. FreeRTOS analysis not enabled.
Copyright 2017 P&E Microcomputer Systems,Inc.
Command Line :C:\Freescale\KDS_v3\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_3.4.0.201802282250\win32\pegdbserver_console -device=NXP_K6x_K64FX512M12 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -por?

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\Freescale\KDS_v3\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_3.4.0.201802282250\win32\gdi\P&E\supportFiles_ARM\NXP\K6x\freescale_k64fx512m12_pflash_dflash_eeprom.arp

Initializing.
Initialized.

;version 1.04, 04/20/2017, Copyright 2017 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [mk64_512k_x_pflash_dflash_eeprom]

;device freescale, k64fx512m12, pflash_dflash_eeprom

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

Loading programming algorithm ...

WARNING - Selected .ARP file has been modified. CRC16 = $5EE3
Done.
Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
   block 0000C080-0000C48F ...
Ok.
   block 0000C4A0-0004CC17 ...
Calculated CRC-16 does not match block. (File = $8203, Device = $5130)

CMD>EM

Erasing.
Module has been erased.
Reloading programming algorithm ...
done.
CMD>PM

Programming.
Processing Object File Data ...


.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
   block 0000C080-0000C48F ...
Ok.
   block 0000C4A0-0004CC17 ...
Ok.
   Checksum Verification Successful. (Cumulative CRC-16=$C5D1)

CMD>RE

Initializing.
Target has been RESET and is active.
Disconnected from "127.0.0.1" via 127.0.0.1
Disconnected from "127.0.0.1" via 127.0.0.1
Target Disconnected.

I see nothing in the "Problems" tab besides compilation warnings.

 

Any idea?

 

Thanks

Outcomes