Skip to content

Conversation

@Igor-Misic
Copy link
Contributor

This fixes a very nasty bug in the I2C driver for STM32H7 MCUs if anyone tries sending a chunk of data larger than 255 bytes.
For TC interrupt to be triggered NBYTES needs to be set before RELOAD is disabled, otherwise, an interrupt will never happen, and implemented logic for handling data larger than 255 bytes will not work.

To trigger TC interrupt NBYTES needs to be set before RELOAD is disabled
@acassis
Copy link
Contributor

acassis commented Apr 7, 2024

Nice finding @Igor-Misic

@acassis acassis merged commit 510b622 into apache:master Apr 7, 2024
@Igor-Misic Igor-Misic deleted the pr-sending_large_data_over_i2c branch April 10, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants