参考网上的,在IAP工程中加入以下代码
//中断向量表重建
__root const long reintvec[]@".intvec"=
{ 0x82008080,0x82009004,0x82009008,0x8200900c, //当应用程序地址不是0x9000时则要相应改掉除第一个0x82008080以外的数值
0x82009010,0x82009014,0x82009018,0x8200901c,
0x82009020,0x82009024,0x82009028,0x8200902c,
0x82009030,0x82009034,0x82009038,0x8200903c,
0x82009040,0x82009044,0x82009048,0x8200904c,
0x82009050,0x82009054,0x82009058,0x8200905c,
0x82009060,0x82009064,0x82009068,0x8200906c,
0x82009070,0x82009074,0x82009078,0x8200907c,
};
会出现以下错误:
[td]Error[Lp004]: actual size (0x100) exceeds maximum size (0x80) for block "INTVEC"
而且这种方法只能实现APP中断,而IAP却不能有中断
还有一种方法是将中断向量表映射到RAM中,可以实现APP和IAP都能中断,那么该怎么实现,希望各位大神不吝赐教。
[/td] |
|