VECTOR ADDRESS这一句加在PRM文件里,VECTOR 0的后面,如:
VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
//VECTOR 0 Entry /* reset vector: this is the default entry point for a Assembly application. */
//INIT Entry /* for assembly applications: that this is as well the initialisation entry point */
VECTOR ADDRESS 0xFFFC SCI0Interrupt /*后面不要分号*/
另外在main里面,中断函数必须放在非分页地址中,所以其前后可以各加一个#pragma:
#pragma CODE_SEG NON_BANKED
interrupt void SCI0Interrupt(void)
{
}
#pragma CODE_SEG DEFAULT
我已经把改好的project打包发给你了。 |