AnsweredAssumed Answered

GCC Linker script for FSL Bootloader

Question asked by tipofthesowrd on Jun 28, 2015
Latest reply on Jul 6, 2015 by tipofthesowrd



I'm currently working on the FSL_Kinetis_Bootloader 1.1.0 and I'd like to use it in combination with my GCC compiled binary.

The flashing through the HID device and the supplied KinetusUpdater.exe works fine (albeit a little slow).

However since I'm using GCC the linker scripts for my application is quite different then IAR.


My memory regions are layed at to start the user application at address 0x8000 but this causes a HardFault.

However, it is my user application's HardFault handler so I know flashing has succeeded.




  VECTORS (rx) : ORIGIN = 0x00008000, LENGTH = 0x00000400

  FLASH_PROTECTION    (rx) : ORIGIN = 0x00008400, LENGTH = 0x00000010

  FLASH (rx) : ORIGIN = 0x00008410, LENGTH = 128K - 0x00008410

  RAM (rwx) : ORIGIN = 0x1FFFF0C0, LENGTH = 16K - 0xC0



I guess it has something to do with the Bootloader Configuration Area (BCA) but I can't seem to get any useful info from the supplied linker scripts.


Any help would be appreciated.