Skip to content

CAN driver - comparison between HAL Driver and Standard Peripheral Driver #39

@carlo-dev-git

Description

@carlo-dev-git

From STM32F4xx Standard Peripherals Drivers V1.8.1 (27-January-2022) release notes:

stm32f4xx_can.c:

  • Update to avoid race condition
    • Update CAN_Receive(), CAN_FIFORelease() & CAN_CancelTransmit() APIs to use '=' instead of '|='.

Analyzing the current code of the file stm32f4xx_hal_can.c you can still see the use of SET_BIT().
Is this race condition not present in the HAL driver and/or has it been resolved elsewhere?

Metadata

Metadata

Assignees

Labels

canController Area NetworkhalHAL-LL driver-related issue or pull-request.internal bug trackerIssue confirmed and logged into the internal bug tracking systemquestionFurther information is requested

Projects

Status

Analyzed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions