Skip to content
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

[stm32] Fix stm32-extended I2C driver NACK handling #947

Merged
merged 1 commit into from Jan 25, 2023

Conversation

chris-durand
Copy link
Member

Fixes #946.

With the fix after reception of a NACK the transaction is detached only after transmitting the stop condition is completed.

Tested in hardware on Nucleo-L031K6 with example from issue #946 and on a custom STM32L431RC board with connected I2C devices.

Detach transaction after completion of STOP condition when NACK was
received.
@chris-durand
Copy link
Member Author

@salkinium Did you do anything to fix the Mac CI? It has suddenly started working again.

Copy link
Member

@salkinium salkinium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@salkinium salkinium added the ci:hal Triggers the exhaustive HAL compile CI jobs label Jan 25, 2023
@salkinium
Copy link
Member

@salkinium Did you do anything to fix the Mac CI? It has suddenly started working again.

No, but the macOS image was updated from 20230117.3 to 20230120.1, so I guess the thing that magically broke the CI got magically fixed. Interestingly, I cannot yet find the 20230120.1 release on their release page, so who knows what got updated.
I'll test the GCC12 CI again, if the changes we did to the macOS CI still work.

@chris-durand
Copy link
Member Author

I'll test the GCC12 CI again, if the changes we did to the macOS CI still work.

You can probably take out the actions/setup-python@v4 action again. That fixed the Python issues that now magically got resolved by the image update.

@salkinium salkinium merged commit ba61a34 into modm-io:develop Jan 25, 2023
@chris-durand chris-durand deleted the fix/stm32_i2c_nack branch January 25, 2023 20:50
@salkinium salkinium added this to the 2023q1 milestone Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:hal Triggers the exhaustive HAL compile CI jobs fix 💎
Development

Successfully merging this pull request may close these issues.

stm32-extended I²C driver NACK handling broken
2 participants