Shahar Ben-David

Vector Redirection Question

Discussion created by Shahar Ben-David on Feb 22, 2009
Latest reply on Feb 26, 2009 by Robert Bailey



I'm currently writing an I2C bootloader for the JM32.

The MCU exits from reset and a GPIO is checked for '1' or '0' to determine if an updated is needed (our host controller will toggle this GPIO if an update is needed).

My bootloader currently uses interrupts to catch the incoming I2C Bytes.


I don't completely understand if I am able to use interrupts in both the bootloader and the application code. 

In the bootloader project should I disable vector redirection since this is not intended to be field updated?

In the user application project should I enable vector redirection and when the program jumps to the user application it will redirect the vectors to their new location?


BTW, do I tell the linker to place the bootloader in the top flash page by editing the PRM file?


Any help is greatly appriciated.