2061854_en-US

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

2061854_en-US

2061854_en-US

Issues with sending data using canFD

Hello, I am using s32k144 to send data via canFD. During single-step debugging, after calling can_write(), a piece of data should be sent, but the logic analyzer shows that many pieces of data are sent, and only the first few pieces of data correspond to the data I sent, and the IFLAG1 register is not set. I want to know what is the cause? How to solve it? In addition, which of the three baud rates in the EB configuration represents the baud rate of the arbitration segment? I hope to get your help!

Re: Issues with sending data using canFD

OK, thank you.

Re: 使用canFD发送数据问题

Hi,

if MB flag is not set and interrupt/txnotification not called and you see message is transmitted still, it can points to missing ACK from other node. You can check module ECR/ESR1 registers to know if error is detected. If other node is connected check if same bitrate and sample point is used. If using FIRC as CAN PE clock, it is recommended to use rather external crystal source.
If CANFD is used the Extended bit time definitions should be enabled and so CBT register used. Thus in config CanControllerCBT config would represent nominal bit timing.

Regarding your code, after message is sent, you should check for proper transmission somehow, before another send is done again. Below is a usage in RTD demos

PetrS_0-1741957111961.png

Lastly; please notice that MCAL for S32K1xx devices is already in End Of Life status. If further support is required, it needs to be approved by marketing team, so please ask your NXP sales person for help.

BR, Petr

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:09 PM
Updated by: