Author Topic: Linker script for GCC with bootloader  (Read 10672 times)

Offline akorud

  • Newbie
  • *
  • Posts: 31
    • View Profile
Linker script for GCC with bootloader
« on: October 08, 2008, 08:48:11 PM »
Hi,
I've managed to compile my application with GCC 4.2 (code size is smaller then CW6.3 but larger then CW7.1) however I have problem making binary for running bootloader - application silently hangs. 
I suppose that problem is that with bootloader application is loaded at 0x800 and this should be written somewhere in ld script - did anybody experience it?

best regards,
--
Andriy

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Linker script for GCC with bootloader
« Reply #1 on: October 08, 2008, 10:39:59 PM »
Hi Andriy

I haven't actually tried GCC based boot loader but the application part should only need a change of teh start address (in the *.ld linker script:
MEMORY
{
rom (rx) : ORIGIN = 0x800, LENGTH 0x3f800
...
}


Regards

Mark