Other Parts Discussed in Thread: HALCOGEN
We have a bootloader at 0x00 location. and application starting at oxc000. After successfully flashing the application, we are jumping to the application code from bootloader as given below :
((void (*)(void))0xc000)();
We are able to jump successfully to the application code as we can see the debug messages from application. but whenever we are starting RTI counter using rtiStartCounter(0) the system resets. FYI, We are not using rti in bootloader.
Below is the application linker file :
VECTORS (X) : origin=0x0000C000 length=0x00000020
RESERVED (R) : origin=0x0000C020 length=0x000000E0
FLASH0 (RX) : origin=0x0000C100 length=0x00033EFF
application sys_intvecs.asm :
.sect ".intvecs"
.arm
;-------------------------------------------------------------------------------
; import reference for interrupt routines
.ref _c_int00
.ref _dabort
.ref _irqDispatch
.ref phantomInterrupt
.def resetEntry
;-------------------------------------------------------------------------------
; interrupt vectors
resetEntry
b _c_int00
undefEntry
b undefEntry
svcEntry
b svcEntry
prefetchEntry
b prefetchEntry
b _dabort
b phantomInterrupt
b _irqDispatch
ldr pc,[pc,#-0x1b0]
Bootloader linker :
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH_API (RX) : origin=0x00000020 length=0x000014E0
FLASH0 (RX) : origin=0x00001500 length=0x0000AAFF
bootloader sys_intvecs.asm :
.sect ".intvecs"
.arm
;-------------------------------------------------------------------------------
; import reference for interrupt routines
.ref _c_int00
.ref _dabort
.ref phantomInterrupt
.def resetEntry
;-------------------------------------------------------------------------------
; interrupt vectors
resetEntry
b _c_int00
undefEntry
b undefEntry
svcEntry
b svcEntry
prefetchEntry
b prefetchEntry
b _dabort
b phantomInterrupt
ldr pc,[pc,#-0x1b0]
ldr pc,[pc,#-0x1b0]
Please help.