-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32H7: increase i2c slave rx limit. #15212
Conversation
@mothacehe, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Do you think you could apply the same patch for all STM32xx families ...?
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Use uint16_t variables for i2c slave_rx_buffer_size and slave_rx_count variables. This allows to receive more than 255 bytes in slave mode. The bytes are received one by one in slave mode so there are no hardware limitations forcing a 1 byte rx count limit.
Thanks! Sure, I ported this change to all STM32 families. I can only test it on STM32H7 though. |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Use uint16_t variables for i2c slave_rx_buffer_size and slave_rx_count
variables. This allows to receive more than 255 bytes in slave mode. The
bytes are received one by one in slave mode so there are no hardware
limitations forcing a 1 byte rx count limit.
Summary of changes
Allow I2CSlave::read method to operate on more than 255 bytes for STM32 H7 MCUs.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
On an STM32H743ZI2 Nucleo board, use the I2CSlave::read method to read 256 bytes correctly.
Reviewers