你好,
我使用S12ZVMC128,要配置中断,想定义如下图的向量表和配置文件,将中断与中断服务程序对应上,我用从别的地方复制来的"S12ZVM_devconfig.h"和“vector.c" ,一直显示错误:the file 'S12ZVM_devconfig.h' cannot be opened
不知道为什么?怎么定义自己的?
解決済! 解決策の投稿を見る。
Hello,
应给是老版本的。 在你的工程里,CW貌似都不能识别一些关键字。我把下面两条代码屏蔽后,编译就可以通过:
我劝你别在这上面更改了。
然后中断函数也就生成了,直接添加代码就行:
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi su,
Do you use CW10.7 ?
- Please add header file path at here:
If still have error, please share your project .
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello ,
Sorry I can’t unzip your project:
While it doesn’t matter, there is a S12Z demo based on CW, please have a look at the interrupt function, you can refer to it development yours.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
你好,你让我下载的这个DEMO里的中断服务程序的定义方法在CW10.6里面一直会提示:syntax error,(但实际是有效的)
所以想用向量表和配置文件"S12ZVM_devconfig.h"和“vector.c",来定义中断服务程序,我参考别人的配置,一直有问题,我上传的工程文件:INIT_TEST.rar 里面,请帮我看看问题出在哪,谢谢!
Hello,
应给是老版本的。 在你的工程里,CW貌似都不能识别一些关键字。我把下面两条代码屏蔽后,编译就可以通过:
我劝你别在这上面更改了。
然后中断函数也就生成了,直接添加代码就行:
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
好的,谢谢1