How relocate the interrupt vector table?

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

How relocate the interrupt vector table?

1,725 Views
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 Kudos
Reply
1 Reply

1,417 Views
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 Kudos
Reply