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:
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