KevinOConnor / can2040

Software CAN bus implementation for rp2040 micro-controllers
GNU General Public License v3.0
636 stars 63 forks source link

Persistent Error State in can2040 #47

Closed zephyr-atomi closed 10 months ago

zephyr-atomi commented 10 months ago

Description: I've encountered a situation where can2040 consistently remains in an error state, rendering it non-operational. My custom error logs show the following: xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(11) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(4) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(4) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(11) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(1) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(4) on msg: (id: 0, size: 0, data: 0, 0) xfguo: error(11) on msg: (id: 0, size: 0, data: 0, 0)

How To Reproduce:

If the issue doesn't replicate, you can also try the following steps:

Questions:

zephyr-atomi commented 10 months ago

That is possible due to the uart slowness, if I set the baud rate as 10K, the issue it gone.

Will close the issue. Thanks!