how i change vector table?

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

how i change vector table?

463 Views
rlaxortn
Contributor IV

i am developing bootloader, i use s32ds RTD version is 4.0.0. and mcu is s32k314. 

 

I want to boot into the app application after writing to flash.

i set app address is 0x00500000, boot address is 0x00400000.

 

1. Can I do so using the interrupt vector table?

2. If that is right, how do I change the interrupt vector table?

3. can i get example or source code for trying?

 

Tags (2)
0 Kudos
Reply
1 Reply

318 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @rlaxortn,

After a reset, the SBAF searches for the first valid IVT starting from the lowest address. If there are multiple valid IVT at IVT locations
at the same time, the IVT with lowest address is used.

Refer to the RM

Table 196. Configuration details when the HSE firmware usage feature flag is disabled

Table 198. Configuration details when the HSE_B firmware usage feature flag is enabled

Table 199. AB swap configuration

 

 

The SBAF will always boot from address 0x400000 if a valid IVT is present there.

 

 

BR, Daniel

 

0 Kudos
Reply