9 years, 11 months ago.

Error with Drag n Drop on .BIN file - FRDM K64F

Hi, I've been trying to drag and drop the .bin compiled file and I had a FAIL.TXT that say "The interface firmware ABORTED programming. Image is trying to set security bits". Ive been looking for the same problem in other forum and i couldnt figer out how to fix it. When i want to download the .bin file, the SDAv2's led stay in red,

I use KDS software with processor expert and compile a simple program that blinks a led. KDS compiler didnt show me any error, and generate .bin file, so i think i didnt make same mistake in the code.

Information i have read: AN4507 AN4835 That explains the Flash Protection bits on flash memory but i didnt tray anything because i dont want to brick the board.

The only way a can download my firmware on to the microcontroller from KDS is using "Flash From File"... but that use an .elf file that is heavier than a .bin file...

I want to compile using KDS, generate .BIN file and after that use the Drag and Drop to download it on the chip

The other thing i tried was upgrading SDAv2 > Version: 0226, but i'm still having the same problem...

When i use Mbed compiler from internet, i dont have this problem.. i compiled some of the examples, generate the .bin file.. use Drag and Drop and everything works fine.. but I need to use KDS

1 Answer

9 years, 11 months ago.

How did you generate your KDS project? Exported it from mbed or made a blank one?

It sounds pretty smart of that firmware it is refusing to program your device: If the correct (wrong) security bits are set you can brick your device.

Hi Erik, I made a blank one, I set the kds configuration to generate the .BIN file , and i followed this video

https://www.youtube.com/watch?v=GxTEF595tj4&list=PL_FVGdz2y2gIl5nRl50CYkyDznhQGx3CA&index=19

to generate the code

but on the video they use OpenSDA P&E Micro.

posted by Guillermo Hernan 09 Nov 2015

Hi, i tried this..

Open con mbed online compiler a demo project.. for instance "frdm_gpio" that blinks a led, export that project to KDS ... After that open KDS and import file generated before.. when i compile it in KDS , generate .BIN file.. and when i use Drag n Drops its works.. i dont have any error..

but doing a projecto as explained on https://www.youtube.com/watch?v=GxTEF595tj4&list=PL_FVGdz2y2gIl5nRl50CYkyDznhQGx3CA&index=19 .... that .BIN file generated produce "The interface firmware ABORTED programming. Image is trying to set security bits"

posted by Guillermo Hernan 12 Nov 2015