boogalee wrote on Thursday, January 21, 2016:
Hi,
im using CC2538(cortex m3)
if i want to port on CC2538, i have to relocate vector table.
so i had searched datasheet, i founded my code have to be located at 0x0020_0000~
but, vector table address is set at reset 0x0000_0000. this is rom area.
so i have to relocate vector table address.
i had tried access vector table offset register(VTABLE) <- other vendor’s register name was VTOR.
i just had access this register and just allocate appropriate value.
#define VTABLE ( * ( ( uint32_t * ) 0xE000ED08 ) )
VTABLE = 0x0020000F;
i had defined VTABLE ( * ( ( uint32_t * ) 0xE000ED08 ) ) which VTABLE register’s address
and allocate appropriate address value.
it was working !!
but… i dont know why it was worked…
what should i know to relocate vector address value.
Regrads.
WON HEE LEE