s12zvc can communication error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s12zvc can communication error

Jump to solution
1,417 Views
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.
Tags (3)
1 Solution
1,224 Views
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

View solution in original post

2 Replies
1,225 Views
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

1,224 Views
sypark
Contributor I

Thank you very much.

0 Kudos
Reply