µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: akorud on October 08, 2008, 08:48:11 PM

Title: Linker script for GCC with bootloader
Post by: akorud 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
Title: Re: Linker script for GCC with bootloader
Post by: mark 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