cancel
Showing results for 
Search instead for 
Did you mean: 

CAN TX Mailbox errors defines and comments mismatch

WGoeb.1
Associate

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   */

1 REPLY 1
Amel NASRI
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.