Skip to main content
Visitor II
August 3, 2020
Question

CAN TX Mailbox errors defines and comments mismatch

  • August 3, 2020
  • 1 reply
  • 961 views

CAN communication with HAL library: error codes in stm32f1xx_hal_can.h inconsistent, TX Mailbox errors defines and comments mismatch.

Can this be corrected in subsequent versions?

/** @defgroup CAN_Error_Code CAN Error Code

 * @{

 */

....................................

#define HAL_CAN_ERROR_TX_ALST0       (0x00000800U) /*!< TxMailbox 0 transmit failure due to arbitration lost */

#define HAL_CAN_ERROR_TX_TERR0       (0x00001000U) /*!< TxMailbox 1 transmit failure due to tranmit error   */

#define HAL_CAN_ERROR_TX_ALST1       (0x00002000U) /*!< TxMailbox 0 transmit failure due to arbitration lost */

#define HAL_CAN_ERROR_TX_TERR1       (0x00004000U) /*!< TxMailbox 1 transmit failure due to tranmit error   */

#define HAL_CAN_ERROR_TX_ALST2       (0x00008000U) /*!< TxMailbox 0 transmit failure due to arbitration lost */

#define HAL_CAN_ERROR_TX_TERR2       (0x00010000U) /*!< TxMailbox 1 transmit failure due to tranmit error   */

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 14, 2020

    Hi @WGoeb.1​ ,

    Thanks for reporting these typos associated to CAN error codes comments. This is tracked internally.

    Another way to bring such typos to our attention is to submit it as an issue in Github repository (https://github.com/STMicroelectronics/STM32CubeF1/issues).

    -Amel