Skip to main content
GSpri
Associate
December 4, 2018
Question

Logic inversion for CAN NART/AutoTransmission

  • December 4, 2018
  • 1 reply
  • 893 views

I am using an STM32F4xx processor. I just worked through and tracked down a logic inversion between CubeMX and the HAL implementation, that does not show up in any of my searches. It looks like it got introduced when the CAN libraries were upgraded. In the CubeMX CAN setup page the parameter "No-Automatic Retransmission" actually does the opposite. In the re-written driver, the structure member is "AutoRetransmission" (not No-Auto Retransmit). Looking into stm32f4xx_hal_can.c code, ENABLE for AutoRetransmission clears NART.

This topic has been closed for replies.

1 reply

Blacbird
Associate II
March 26, 2019

I stumbled across the same problem on the V1.10.0 firmware package of an STM32F3 processor, and from the things I heard of a colleague working with an STM32F1 I strongly suspect the inversion is also a problem there.