Content originally posted in LPCWare by 1234567890 on Sun Aug 23 00:31:02 MST 2015
Clearing the error counters manually isn't a good idea and is against the specification (I assume).
Transmit errors increase the counter by 8, receive errors by 1.
Each correctly received message decreases the counter.
Because this is part of the 'strategy' which makes the bus much more safe and stable (see 'error passive' and 'bus off' state) one shouldn't manipulate this mechanism. If no more errors occur, the bus will recover message by message.