s12zvc can communication error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

s12zvc can communication error

跳至解决方案
3,286 次查看
sypark
Contributor I

Hello I am implementing can communication.

I'm not good at English and I use Google Translator.
I am using s12zvc 64mkh, codewarrior11.0.
CAN_test3.zip source code is good for sending and receiving communication.
The DevKit-S12ZVC_IIC_Lab4.zip source code build OK. but run error.
If disable void interrupt VectorNumber_Vcan0rx CAN_ISR ()(CAN.c file), the run will work without error.
If it is active, an error occurs.
When CAN_ISR () is disabled, send is sent but not receive.
Why is this happening? What is the solution ...?
please help me.
Thank you.
标记 (3)
1 解答
3,093 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The problem is that the example is build using Processor expert which generates its own vector table. And since the CAN module is not configured by PE, the vector is occupied by CPU_Interrupt routine by default.

pastedImage_1.png

pastedImage_2.png

Then, the programmer writes twice to the same vector in Flash  (0xFFFE10 - 0xFFFFFB).

Regards,

Daniel

在原帖中查看解决方案

2 回复数
3,094 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The problem is that the example is build using Processor expert which generates its own vector table. And since the CAN module is not configured by PE, the vector is occupied by CPU_Interrupt routine by default.

pastedImage_1.png

pastedImage_2.png

Then, the programmer writes twice to the same vector in Flash  (0xFFFE10 - 0xFFFFFB).

Regards,

Daniel

3,093 次查看
sypark
Contributor I

Thank you very much.

0 项奖励
回复