How relocate the interrupt vector table?

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

How relocate the interrupt vector table?

1,736件の閲覧回数
jorgehoraciogon
Contributor II


Hi everyone!

I´m trying to relocate the IVT in order to use a Bootloader and I need to relocate the table to the start location 0x8080.

I found an instruction in the reference manual that let me change the location of the interrupt vector table but CW10 do not recognize the MQX command.

Do I need a library in order to use the command?

Is there an example of how to use it?

Can I put an hexadecimal number in the parameters?

How I use this function?

The command I found it is: _int_set_vector_tablee( _psp_code_addr new)

Thanks and regards! =)

0 件の賞賛
返信
1 返信

1,428件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi,

do you need the vector table in that specific address? You can set MQX_ROM_VECTORS macro = 0 in user_config.h and rebuild bsp and psp. This will relocate vectors in RAMnad MQX will do ir for you.

#define MQX_ROM_VECTORS 0

You only need to move (set offset) of the the linker file segments to make space for your bootloader.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信