在线时间27 小时
UID294003
注册时间2016-7-25
NXP金币0
TA的每日心情 | 郁闷 2016-11-22 09:35 |
|---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
注册会员

- 积分
- 162
- 最后登录
- 2018-7-4
|
发表于 2016-8-16 10:15:56
|
显示全部楼层
我看文档HCS08RMV1中的描述,boot和app不是公用一个向量表,而是有两个,boot放在被保护的flash区块中,使用默认的向量表,app使用的是重定向的向量表。
“For example, if 512 bytes of FLASH are protected, the protected address region is from $FE00 through
$FFFF. The interrupt vectors ($FFC0–$FFFD) are redirected to the locations $FDC0–$FDFD. Now, if an
SPI interrupt is taken for instance, the values in the locations $FDE0:FDE1 are used for the vector instead
of the values in the locations $FFE0:FFE1. This allows the user to reprogram the unprotected portion of
the FLASH with new program code including new interrupt vector values while leaving the protected area,
which includes the default vector locations, unchanged.” |
|