S12G64的bootloader设计 .... S12G64 bootloader design

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

S12G64的bootloader设计 .... S12G64 bootloader design

366 Views
tao180539
Contributor I

我正在做S12G64的bootloader功能,应用程序部分我做了中断向量表的偏移,但是编译出来的bin文件,复位中断仍然在系统默认的FFFE。这种情况下应该怎么修改一下,我的bootloader接收到这个bin文件后,我烧写到flash,接收到这个应用程序的复位中断向量我直接丢弃吗

I am working on the bootloader function of S12G64. In the application part, I offset the interrupt vector table, but in the compiled bin file, the reset interrupt is still at the default FFFE of the system. In this case, how should I modify it? After my bootloader receives this bin file, I burn it to flash, and receive the reset interrupt vector of this application, should I discard it directly?

 

复位位置.png默认中断位置.png

0 Kudos
1 Reply

340 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

Vectors or better said the reset and exception Vector Table is defined in the continuous memory space for:

1) Table 1-34. Reset Sources and Vector Locations .... not relocatable
2) Table 1-35. Interrupt Vector Locations .... relocatable by means of IVBR register

So, vectors placed at 0xFFFA_0xFFFB up to 0xFFFE_0xFFFF are always at the same place, they are the RESET vectors.

If you want to see a UART based bootloader example you can read:
https://www.nxp.com/docs/en/application-note/AN4258.pdf

together with SW files....
https://www.nxp.com/docs/en/application-note-software/AN4258SW.zip

Best regards,
Ladislav

0 Kudos