bootloader vector table can store another address ?example 0xFE7E00

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

bootloader vector table can store another address ?example 0xFE7E00

跳至解决方案
550 次查看
xudd
Contributor II

can we change this code to change vector table address?

xudd_0-1687949912276.png

 

0 项奖励
回复
1 解答
533 次查看
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 项奖励
回复
1 回复
534 次查看
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 项奖励
回复