Author Topic: Building app without bootloader  (Read 9537 times)

Offline Geoff

  • Newbie
  • *
  • Posts: 6
    • View Profile
Building app without bootloader
« on: December 07, 2017, 08:12:49 AM »
Mark,

Are there any instructions/documents on how to build the utasker app for a target device without bootloader ?  I'm wanting to recreate the "KL28 application as stand-alone software that can be loaded using the FRDM-KL28Z's USB-MSD (OpenSDA) boot loader" as per the FRDM-KL28Z board support page.  I've had a look at the two linker scripts (K_512_128.ld and K_512_128_BM.ld) but neither appear to give me a hex file located at the start of flash, and I'm not sufficiently strong with linker scripts to know what to change.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Building app without bootloader
« Reply #1 on: December 07, 2017, 10:04:46 AM »
Geoff

The correct linker script is K_512_128.ld - this locates the start of the program at 0x00000000 and so allows it to run stand-alone.

In the KDS project there are targets for "uTaskerV1.4_FLASH" and "uTaskerV1.4_FLASH_BM" where the two different linker scripts can be entered.
"uTaskerV1.4_FLASH_BM" adds a define _BM_BUILD in order to remove unnecessary flash configuration (optional).

For standalone operation the uTaskerV1.4_FLASH is used.

Regards

Mark