Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: HALCOGEN, ISO1050
I'm prototyping a device that takes in a CAN packet (via DCAN4) with PWM duty cycle as a request and generates the requested duty cycle through the ETPWM module. It also checks data validity of the CAN packet through a watchdog counter. The MCU also periodically sends out its own watchdog counter into the CAN Bus. The CAN transceiver selected for this application is the ISO1050 as isolation is needed. The initial code is generated by HalCoGen, included in the files below for reference.
The issue I'm currently facing is the MCU stops receiving and sending CAN packets after some use. What makes it even more interesting is that on a test bench with the same simulated CAN Bus load, there is no drop out. I've also confirmed the MCU does not lock up after the loss occurs.
The current solution I'm using to this issue is triggering a reset in the MCU, which is less than ideal as this device will be deployed in a safety critical application and it often stops the whole system for a few seconds as it restarts.
Does someone have any experience/insight on what is happening with the CAN module? My project folder is attached to the description for your reference.
Many thanks,
Nicholas