2020-10-23 11:26 AM
Hello - I have been working with the l051 for 2+ years now on a product, using i2c-1 as slave to outside world and i2c-2 as master for local board downstream devices.
while my interrupt-driven code "works," I continue to have bugs filed about both master & slave communications stopping.
I am using STM_HAL for the l051, and I think I just need to start over with a clean example of both cases, interrupt driven.
Please point me to where I can find code examples and/or HOW-TO documentation for this.
thanks!
-pete u.
Solved! Go to Solution.
2020-10-23 12:46 PM
An easy way to find examples is to search the GitHub repo for the relevant function:
https://github.com/STMicroelectronics/STM32CubeL0/search?q=hal_i2c_master_transmit_it
Here's one example:
Be aware that the I2C HAL code may not be truly interrupt driven in all cases. It varies by chip family.
2020-10-23 12:46 PM
An easy way to find examples is to search the GitHub repo for the relevant function:
https://github.com/STMicroelectronics/STM32CubeL0/search?q=hal_i2c_master_transmit_it
Here's one example:
Be aware that the I2C HAL code may not be truly interrupt driven in all cases. It varies by chip family.