Part Number: TMS320F28388D
My code is following the can_ex4_transmit_receive example code, and it works -- except if the target powers-up into an empty CAN bus (non-terminated and no destination CAN device). What I believe is happening is, without a destination device, the transmit object is in an no-ack-error condition. When the destination device is plugged in, the CAN-object does not recover (maybe auto bus-off)?
I am trying to transmit a periodic CAN status message upon power-up, so I could either:
1. Timeout on the pending-tx-request and delete the pending packet.
2. On every period, simply discard the previous packet and over-write it with the new information.
I tried the CAN_clearMessage function from can_ex4_transmit_receive, but that does not clear the txrqst flag. How can I properly delete an in-process transmit message?
Thanks,
Jim