HCS12 bootloader擦写中断向量表的flash

cancel
Showing results for 
Search instead for 
Did you mean: 

HCS12 bootloader擦写中断向量表的flash

228 Views
tao180539
Contributor I

写中断向量表.png

接收到中断向量后,为啥要从Data[24]开始写

0 Kudos
4 Replies

215 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @tao180539,

Please have a look at the srecords in AN2458SW.

The content of the reset vector to be programmed is in the last 8bytes of ProgSRec.Data.

For example, S12P:

danielmartynek_0-1670505475526.png

https://en.wikipedia.org/wiki/SREC_(file_format)

 

Regards,

Daniel

0 Kudos

205 Views
tao180539
Contributor I

中断向量位置.png

my .S19  file is like this, so i dont write flash at data[24],   yes or not ?

0 Kudos

197 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @tao180539,

 You need to convert it using the SRecCvt tool that can be found in AN4258SW

danielmartynek_0-1670584202965.png

https://www.nxp.com/docs/en/application-note-software/AN4258SW.zip

 

Regards,

Daniel

0 Kudos

207 Views
tao180539
Contributor I

thank you 

0 Kudos