Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN,
Dear,
I had implemented loopback testing for my CAN interface as suggested by the safety manual. This worked on our HW revision at the time.
I now have the situation of the loopback test failing sporadically due to the frame not being received. Strangely the frequency of occurence for CAN1 is higher than for CAN3.
I have investigated and I found out that I had to add a delay of 20us after calls to APIs canEnableloopback() and canDisableloopback() for this to work reliably. I assume that the CAN cell takes some time to do its test mode transition as commanded by these APIs, but the APIs immediately return instead of waiting.
While the issue is solved with the introduction of these waiting times, I am concerned about the change in timing behaviour that coicided with our new HW revision. Hence I am wondering:
- Can you confirm my interpretation of this observation?
- If so, what waiting time would be recommended by TI?
- Are there external factors that could impact CAN cell timing behaviour?
- If so, which one (supply voltage stability, temperature, etc.)?
- Are APIs or their documentation lacking in this regard?
Thank you for your support.
Julian
