[M480] CAN Bus-Off Recovery Mechanism

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

23 Dec 2022, 10:27

  • Application: This example is an application code for CAN bus, which describes how to recover and let a device re-enter the bus for packet transmission and reception when a bus off occurs at the device node.
  • BSP Version: M480 Series BSP CMSIS V3.05.003
  • Hardware: NuMaker-PFM-M487 V3.0
This example is an application code for CAN bus. In order to prevent a device from being unable to send and receive data correctly due to its own problems (such as hardware damage) or external interference and thus affecting other normal node communication, CAN bus has a hardware error diagnosis function.

This example provides a handler when the device goes to bus off. When the MCU detects that the node has entered the bus-off state, it will not immediately resume the node's communication. Wait until the status that caused the error is eliminated before proceeding with the bus-off recovery procedure.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 2209475059
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests