<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Derek,<br>
<br>
error flags are bus (driver) specific, for can2/can3 see
mcp2515::AsynchronousInterruptHandler().<br>
<br>
E.g. <br>
<pre style="color:rgb(0,0,0);white-space:pre-wrap">errflags=0x22400402 → CANINTF = 0x22, EFLG = 0x40, 0x0402 = reading RX buffer 1, which was overflown from buffer 0
</pre>
<br>
MCP2515 documentation:<br>
<pre style="color:rgb(0,0,0);white-space:pre-wrap">CANINTF = 0x22 → Error Interrupt + Receive Buffer 1 Full
EFLG = 0x40 → Receive Buffer 0 Overflow
</pre>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 15.07.20 um 13:15 schrieb Derek
Caudwell:<br>
</div>
<blockquote type="cite"
cite="mid:CAKUcfWFWGG1zz_Wdfk5Wms++drhXVQnxpfStjBU+yjAMosahoA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">On my Nissan Leaf I am getting the following error
irqs repeating on CAN bus 2. The error flags appear to be set in
esp32can.cpp but I could use some pointers on how to interpret
their meaning and hence how to handle the interrupts (assuming
they are not real errors):
<div><br>
</div>
<div>
<pre style="color:rgb(0,0,0);white-space:pre-wrap">1970-01-01 13:01:41 NZDT E (89501) can: can2: intr=93510 rxpkt=127559 txpkt=14 errflags=0x23000001 rxerr=0 txerr=0 rxovr=0 txovr=0 txdelay=0 wdgreset=0 errreset=0
1970-01-01 13:01:41 NZDT E (89511) can: can2: intr=93511 rxpkt=127564 txpkt=14 errflags=0x23400401 rxerr=0 txerr=0 rxovr=0 txovr=0 txdelay=0 wdgreset=0 errreset=0
1970-01-01 13:01:41 NZDT E (89531) can: can2: intr=93525 rxpkt=127592 txpkt=14 errflags=0x22400402 rxerr=0 txerr=0 rxovr=0 txovr=0 txdelay=0 wdgreset=0 errreset=0</pre>
</div>
</div>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>