2024-08-22 04:16 AM - last edited on 2024-09-13 02:29 AM by Amel NASRI
Hi
Solved! Go to Solution.
2024-08-23 01:40 AM - edited 2024-08-23 05:27 AM
Sorry, I2C example with LL driver is for NUCLEO-L073RZ:
For NUCLEO-L031K6 board, you can use the project LL template provided here:
STM32CubeL0/Projects/NUCLEO-L031K6/Templates_LL at master · STMicroelectronics/STM32CubeL0 · GitHub and follow the readme file to build your application.
2024-08-22 07:05 AM
Hello @Anusree_k ,
You can follow the I2C examples (LL driver) provided in the STM32CubeL0 firmware package for the NUCLEO-L031K6 board:
STM32CubeL0/Projects/NUCLEO-L031K6/Examples/I2C at master · STMicroelectronics/STM32CubeL0 · GitHub
This will help you on your project implementation.
2024-08-22 09:24 AM
Hello,
I didn't see the LL Driver under the link you suggested. I checked the link, but it uses HAL for the I2C. Could you please verify this?
2024-08-23 01:40 AM - edited 2024-08-23 05:27 AM
Sorry, I2C example with LL driver is for NUCLEO-L073RZ:
For NUCLEO-L031K6 board, you can use the project LL template provided here:
STM32CubeL0/Projects/NUCLEO-L031K6/Templates_LL at master · STMicroelectronics/STM32CubeL0 · GitHub and follow the readme file to build your application.
2024-08-23 03:47 AM
Hello @Anusree_k
what is the size of the data to be read?
The reload mode is used when the data size to be read is greater than 255, however it is mandatory to call LL_I2C_HandleTransfer with LL_I2C_MODE_AUTOEND mode for the last amount of data less than 255 bytes.
please refer to this post for more details