Tool/software: TI C/C++ Compiler
Hello everyone,
I am having problems running an application with a bootloader on a custom TM4C123 board.
The application has 2 interrupt handlers present that is linked on startup.ccs file.
When the application runs from appbase = 0x00000000 there is no problems and these interrupt handler are called without issue.
However, when I change the appbase to 0x00002800 on the cmd file even though the map file shows correct offset and addresses for the symbols of the handlers they are not called
and the program jumps to an address where there is no user application(0x20009002).
Does anyone encountered similar problems similar to this?
Thanks.
The cmd file is the following:
--retain=g_pfnVectors
#define APP_BASE 0x00002800
#define RAM_BASE 0x20000000
MEMORY
{
FLASH (RX) : origin = APP_BASE, length = 0x0003d800
SRAM (RWX) : origin = RAM_BASE, length = 0x00008000
}
SECTIONS
{
.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
}
__STACK_TOP = __stack + 512;
The symbols are shown like this:
GLOBAL SYMBOLS: SORTED BY Symbol Address
address name
------- ----
00000200 __STACK_SIZE
00002800 g_pfnVectors
...
...
00003e3f Timer1BIntHandler
00003e53 Watchdog0IntHandler