Hi Fan,
I check the VTOR setting is my project as follows:
if (__VECTOR_RAM != __VECTOR_TABLE)
{
/* Copy the vector table from ROM to RAM */
for (n = 0; n < ((uint32_t)__RAM_VECTOR_TABLE_SIZE)/sizeof(uint32_t); n++)
{
__VECTOR_RAM[n] = __VECTOR_TABLE[n];
}
/* Point the VTOR to the position of vector table */
SCB->VTOR = (uint32_t)__VECTOR_RAM;
}
else
{
/* Point the VTOR to the position of vector table */
SCB->VTOR = (uint32_t)__VECTOR_TABLE;
}
__VECTOR_RAM = 0x1FFF_0000
__VECTOR_TABLE = 0x0002_0000 // because I set the application in 0x0002_0000
__RAM_VECTOR_TABLE_SIZE= 0x0000_0400
Looks like the settings are right?
Regards,
Christie