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.