Bin file not getting flashed from KDS 3.2.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bin file not getting flashed from KDS 3.2.0

2,534 Views
kbhat
Contributor II

Hi,

I recently migrated my project from Code Warrior 11.1 to Kinetis Design Studio 3.2.0.

Previously, I used to flash a combined binary image of loader+bootloader+application_firmware into the MK10FX512VLQ12 MCU through the "Flash" option in Code Warrior 11.1 IDE. Currently, I'm using KDS for the same project, with the same MCU & created a combined binary image to flash from KDS. But, I get an error when I try to flash bin file from KDS 3.2.0 as "File format not recognised" which never happened in Code Warrior. 

I have attached the error message screenshot below. Kindly help. 

Regards,

Kritz

Tags (1)
0 Kudos
2 Replies

2,524 Views
ErichStyger
Senior Contributor V

The P&E connection in KDS uses gdb, and P&E supports with that connection only (at least in KDS) the .bin and .elf format (see https://mcuoneclipse.com/2017/05/06/using-eclipse-to-program-binary-files-to-an-embedded-target/).

If you only have that .bin, you could use other connections like the J-Link. If you only have the P&E one, you can convert the file using the tutorial on https://mcuoneclipse.com/2018/01/27/converting-a-raw-binary-file-into-an-elf-dwarf-file-for-loading-...

I hope this helps,

Erich

2,447 Views
kbhat
Contributor II

Thanks for the suggestion Erich. I referred to the link you shared to convert .bin to .elf & managed to derive a .elf file. Will test this and let you know the result.

Regards,

Kritz