bootloader vector table can store another address ?example 0xFE7E00

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

bootloader vector table can store another address ?example 0xFE7E00

ソリューションへジャンプ
522件の閲覧回数
xudd
Contributor II

can we change this code to change vector table address?

xudd_0-1687949912276.png

 

0 件の賞賛
返信
1 解決策
505件の閲覧回数
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 返信
506件の閲覧回数
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 件の賞賛
返信