bootloader vector table can store another address ?example 0xFE7E00

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bootloader vector table can store another address ?example 0xFE7E00

Jump to solution
524 Views
xudd
Contributor II

can we change this code to change vector table address?

xudd_0-1687949912276.png

 

0 Kudos
Reply
1 Solution
507 Views
lama
NXP TechSupport
NXP TechSupport

Hi,
You can replace vectors base address to the address defined by IVBR register. The only vector which is not movable is reset vector. See chapter Resets and Interrupts in the reference manual.
Of course the content of IVBR is defined after reset and you have to change it.
The RM states....Note: A system reset will initialize the interrupt vector base register with “0xFFFE” before it is used to determine the reset vector address. Therefore, changing the IVBR has no effect on the location of the reset vector (0xFFFFFC–0xFFFFFF).

So it is up to you where you create and how many vectors arrays you will have. Because IVBR is R/W anytime.
Best regards,
Ladislav

View solution in original post

0 Kudos
Reply
1 Reply
508 Views
lama
NXP TechSupport
NXP TechSupport

Hi,
You can replace vectors base address to the address defined by IVBR register. The only vector which is not movable is reset vector. See chapter Resets and Interrupts in the reference manual.
Of course the content of IVBR is defined after reset and you have to change it.
The RM states....Note: A system reset will initialize the interrupt vector base register with “0xFFFE” before it is used to determine the reset vector address. Therefore, changing the IVBR has no effect on the location of the reset vector (0xFFFFFC–0xFFFFFF).

So it is up to you where you create and how many vectors arrays you will have. Because IVBR is R/W anytime.
Best regards,
Ladislav

0 Kudos
Reply