-
Notifications
You must be signed in to change notification settings - Fork 52
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
Adding support for wakeup from TwoWire #72
Comments
If it is not too hard I could take a look at implementing it myself, but I am assuming there may be a reason for it to have been left out of the library so far. |
I @mkals |
Ok, thanks for your quick reply! I have been looking into this for a few hours now, but I am struggling. The core needs to wake in time for the address specified in the I2C packet to be parsed, but I am not sure how to can be ensured with the delays to wake from the sleep modes. Any suggestions as to where I should start looking for implementing this? There are no options related to I2C wake from sleep in the STM32CubeMX tool for example.. |
Well, in that case I try to find an example project in the STM32CubeFw. From Reference manual |
Thanks a lot @fpistm! I'll see what I can figure out. |
By setting the I make sure I use HSI by calling |
I have also tried setting other bits in the I2C_CR1 register manually, but it does not make a difference.
|
Hard to tell. Best thing would be to properly add those mechanism to Wire. |
Thank you for the infomation. I'm using stm32l432kc and tried but not succeded in handleing i2c with low poer. === What I tried === I called // manualy add
if (HAL_I2CEx_EnableWakeUp(handle)) {
// SERIAL_DEBUG.println("error on enabling wakeup");
Error_Handler();
} I called |
Are there any plans for implementing the
enableWakeupFrom(TwoWire ...)
function? This would be very useful to have!The text was updated successfully, but these errors were encountered: