S32K148

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

S32K148

935 Views
AdithyaJayaram1996
Contributor III

We are currently experiencing a write timeout issue in the CAN TP layer while flashing over UDS. Initially, no data bytes were being transferred before the timeout. However, after applying certain optimizations, we now observe that some data gets transmitted before the timeout occurs.

Given this behavior, we would like to understand if there are any application examples or reference implementations that address similar scenarios, particularly in:

  • CAN0 and CAN2 synchronization issues (since CAN0 is using RxFIFO and CAN2 is FD CAN).
  • Impact of compiler optimizations on CAN communication (specifically, potential effects on ISR execution, buffer handling, or timing).
  • Debugging recommendations to confirm if the issue is related to optimization, clock synchronization, or task scheduling.
Tags (1)
0 Kudos
Reply
1 Reply

901 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

i am afraid there is no certain application example or ref. implementation that can help to understand compiler optimization, its impact on CAN communication and things like that. Exchanging data between CAN modules is simply user application task. If you are using higher protocol services (USD, FreeRTOS, etc.) we are not able to help on that much, this does not lay within the scope of our support.
If you are able to simplified issue, provide a very basic project that does not involve stacks, we can try to help you locate and analyze the cause of the problem.
This way any debugging recommendation is hard to give.

BR, Petr

0 Kudos
Reply