STM32G491 FDCAN: Issue with error counters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 5:47 AM
- Labels:
-
FDCAN
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-25 8:42 AM - edited ‎2024-08-25 8:43 AM
Hi,
I encounter the same problem on a STM32H743. The tec value in ECR stop incrementing after 128, and bus-off state is never reached.
This can be reproduced very easily by simply having only 1 device on the CAN bus. Sending a message should trigger BUS-OFF state instantly as no other device can ACK it. Instead the STM32 keep triggering protocol error IRQs (PAE) with the tec value stuck to 128.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-25 12:39 PM
Replying to myself: this is correct behavior according to Bosch CAN spec. The TEC is not incremented past 128 for ACK errors.
