Hi!
I'm having the same problem, so let's bump the post and see if anyone can give us some insight
Search found 4 matches
- Mon Dec 14, 2020 9:34 am
- Forum: ESP-IDF
- Topic: Interrupt poll(...)
- Replies: 1
- Views: 3023
- Fri Jan 03, 2020 12:15 pm
- Forum: ESP-IDF
- Topic: Unable to trigger CAN bus-off state
- Replies: 4
- Views: 5803
Re: Unable to trigger CAN bus-off state
Oops, my bad. I modified the driver to implement the CMD_ABORT_TX defined here https://github.com/espressif/esp-idf/blob/master/components/driver/can.c#L71 following your function name style while doing some tests a few weeks ago, but I just got back from holidays and thought it had always been ther...
- Fri Jan 03, 2020 8:12 am
- Forum: ESP-IDF
- Topic: Unable to trigger CAN bus-off state
- Replies: 4
- Views: 5803
Re: Unable to trigger CAN bus-off state
Thank you for pointing out that exception! I guess I will just disable the bus error alert when this happens to avoid being flooded and preserve the messages, but I tried to abort the transmission when (bus error && TEC is >=128) and I just saw that after calling can_abort_tx() I get a CAN_ALERT_TX_...
- Thu Jan 02, 2020 1:06 pm
- Forum: ESP-IDF
- Topic: Unable to trigger CAN bus-off state
- Replies: 4
- Views: 5803
Unable to trigger CAN bus-off state
Hi, I am doing some testing of the CAN controller, and I saw that if a frame doesn't get acknowledged (in my tests, the wires are not connected to anything) the controller retries it and the tx_err counter goes up, triggering an interrupt for error warning, and then error passive, as I expected to h...