I am trying to create a sysbios application to load at a base addres of 0x00002000 instead of 0x00000000 so that I can use it with a bootloader application. I have my own cmd file which specifies the new locations
#define
APP_BASE 0x00002000
#define
RAM_BASE 0x20000000
--retain=g_pfnVectors
MEMORY
{
// This is where our application can start
FLASH (RX) : origin = 0x00002000, length = 0x0007E000
SRAM (RWX) : origin = 0x20000000, length = 0x00018000
}
SECTIONS
{
// Vectors are at start of FLASH after bootloader
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.vtable : > RAM_BASE
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
However when I link this clashes with what says it is automatically generated linker.cmd in the Debug/ConfigPkg path of the project.
linker.cmd says
/*
* Do not modify this file; it is automatically generated from the template
* linkcmd.xdt in the ti.platforms.stellaris package and will be overwritten.
*/
If this is automatically generated, how do I move the base address for code and vectors so I can work with a bootloader?