You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bus error states 'Bus Off', 'Warning Level Reached' and 'Bus Error' (eror code capturing) cannot be read from the interface. The device request 'TouCAN get CAN interface ERROR' (0x24) always returns the value 0 (no HAL error) as error code. As a consequence, bus error states are not displayed in the status register (C can_status() or C++ GetStatus()), even if bus errors are present.
The following testcases are failing:
TC04.15: Read an error frame with flag STS set
TC09.8: Get CAN controller status if in bus off state
TC09.9: Get CAN controller status if warning level reached
TC09.10: Get CAN controller status if errors on bus (LEC)
The text was updated successfully, but these errors were encountered:
TouCAN get CAN interface ERROR' (0x24) is for STM32 library can interface state.
typedef enum
{
HAL_CAN_STATE_RESET = 0x00U, /*!< CAN not yet initialized or disabled */
HAL_CAN_STATE_READY = 0x01U, /*!< CAN initialized and ready for use */
HAL_CAN_STATE_LISTENING = 0x02U, /*!< CAN receive process is ongoing */
HAL_CAN_STATE_SLEEP_PENDING = 0x03U, /*!< CAN sleep request is pending */
HAL_CAN_STATE_SLEEP_ACTIVE = 0x04U, /*!< CAN sleep mode is active */
HAL_CAN_STATE_ERROR = 0x05U /*!< CAN error state */
} HAL_CAN_StateTypeDef;
To read a bus error states need to use TouCAN_GET_CAN_ERROR_STATUS (0x0D)
The bus error states 'Bus Off', 'Warning Level Reached' and 'Bus Error' (eror code capturing) cannot be read from the interface. The device request 'TouCAN get CAN interface ERROR' (
0x24
) always returns the value0
(no HAL error) as error code. As a consequence, bus error states are not displayed in the status register (Ccan_status()
or C++GetStatus()
), even if bus errors are present.The following testcases are failing:
The text was updated successfully, but these errors were encountered: