Skip to content

STM32F4 I2C Driver must have an elevated interrupt priority #37

@tyler-gilbert

Description

@tyler-gilbert

When using HAL_I2C_Mem_Read_IT(), there is a race condition that happens if the interrupt priority of the I2C is not elevated.

The interrupt gets stuck in a loop handling I2C_MasterTransmit_BTF() because the state is set to RX so I2C_MasterReceive_BTF should be called rather than I2C_MasterTransmit_BTF().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions