Content originally posted in LPCWare by Forrestg on Mon Sep 12 01:43:51 MST 2011
Hi all,
I have general guestion about linking bootloader and application into one elf file.
My idea is simple set all bootloader code to address from 0x0 to 0xFFF and application start at address 0x1000. Of course I would like to debug all code and this is problem becouse debug data is typically set at very height adress.
So how I must modify linker script to set up all (with debug information) bootloader code to first sector and all application data start at adress 0x1000.
My bootloader have 2.5kB size is OK but I cant find how to set all bootloader data to range 0x0-0xfff. I use LPC1768.
Thanks for anythink idea.