Conversation
|
code looks good to me, |
|
Maybe it would be useful to include the Tx/Rx errors counter into the debug output when an error is triggered |
if there is a common interface (across all of our can drivers) 👍 else please not |
I mean adding to the _isr interface of the SAMD5x CAN, not in the application level |
if you think that will help and shorten debug sessions 👍 you are thinking of a in the isr ? |
Yes that's what I'm proposing, just showcasing the errors counter directly from the CAN register |
waiting for this and will approve the PR then |
08a8881 to
1a76669
Compare
1a76669 to
31003bf
Compare
|
@kfessel have your change requests been addressed? |

Contribution description
This PR adds the handling of the CAN errors related interrupts.

The CAN errors are coded in this way:
Testing procedure
You can generate a CAN error by trying to send a CAN frame from the CAN controller (Board used is same54-xpro) without terminating the bus (i.e not connecting the CANH and CANL pins of the same54-xpro). An ACK error will be generated then and handled.