S32K144 flexCAN can't enter into transmit complete interruput servise function

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

S32K144 flexCAN can't enter into transmit complete interruput servise function

1,326 Views
DELPHI_Eric
Contributor III

S32K144 flexCAN cann't enter into the transmit complete interruput servise function, CANBaseAdd->IFLAG1 cann't trigger in the CANSendData(), and when i used the oscilloscope displayed waveform,but the upper computer didn't display CAN messages.I develop with the IAR IDE,so is there any advises can help me,...

0 Kudos
5 Replies

1,076 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi, 

is the message resending still on the bus? Did you get any kind of errors (see ESR1, ECR registers)? Do you have can bus properly terminated? I guess the CAN timing could be wrong. Check if all nodes on the bus have the same CAN bit timing and same sample point is set.

BR, Petr

0 Kudos

1,076 Views
DELPHI_Eric
Contributor III

Dear Petr

I have checked the two registers(ESR1、ECR), found the ACK error flag is  trigger, the Baud Rate is no problem,it's 250khz. It's commnication with the ecan tool, there not display any CAN message. I can see the continuous waveform in the oscilloscope.

pastedImage_1.png

thanks.

0 Kudos

1,076 Views
chengsz1206
Contributor II

 I can see the continuous waveform in the oscilloscope.”

→Is the waveform consistent with the data you send?

First of all,I suggest you check if the data is sent by the CAN tool.

0 Kudos

1,076 Views
PetrS
NXP TechSupport
NXP TechSupport

Seems CAN tool is not connected to the bus. Or wrong CAN bit timing is selected, check the sample points. Also check termination of the bus.

BR, Petr

0 Kudos

1,076 Views
DELPHI_Eric
Contributor III

hi, petr

thank you for your suggest, i will check these points.

0 Kudos