I use Atmel start and ASF4 library to generate base project and working with CAN bus on ATSAME51. All work fine without timeout (send, receive CAN messages) with base ASF4 can library function in interrupt mode. Atmel start use TX FIFO to send CAN message, and I can't change this options.
Can anyone suggest how to implement sending a CAN message with a timeout? That is, if a message cannot be transmitted within a specified period of time (automatic retransmission is enabled), the transmission is canceled. Actually, the problem is how to cancel the transmission of a message that was sent using TX FIFO but was never transmitted. The datasheet literally writes: "Transmit cancellation is not intended for Tx FIFO operation." Perhaps there is another solution, how can this be done?
Or it is worth getting away from using TX FIFO, and then, accordingly, it will not be possible to use the ASF library.