Skip to content

STM32L4 I2C read polling hang on NACK in stm32_i2c_msg_read() #9174

@eqvinox

Description

@eqvinox

When trying to do an I2C read that is getting NACK'd in the address phase, stm32_i2c_msg_read() will spin forever because RXNE will never be set. This causes the innermost loop to spin forever.

Similar to #8915, #7626 and commit 81cfdec, but this issue is in polling mode, not interrupt.

Metadata

Metadata

Assignees

Labels

area: I2CbugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions