2021-06-15 02:12 PM
2021-06-15 06:51 PM
Have a look at the F0 or L0 Snippets.
ST killed that initiative off early, so it's somewhat rough around the edges, but it's there.
Our just to out your own. A basic polled implementation is not that hard, although if you get to the details, I2C is always tricky.
JW
2021-06-16 11:17 AM
>>Have a look at the F0 or L0 Snippets.
Where do you suggest I look for this? I have created an I2C library previously for the STM32F4xx series but the STM32L476 I2C registers are significantly different.
2021-06-17 04:27 AM
https://www.st.com/en/embedded-software/stm32snippets.html
It's not a "library", rather, a collection of register-oriented examples - which in my opinion (which is not very widely shared) is exactly what students need. As I've said ST killed it off early so it had never a chance to mature thus is a bit sketchy.
There are several different versions of the I2C module across STM32 models. AFAIK the one used in 'L4 may be similar to those in 'F0/L0.
JW
2021-06-21 07:10 AM
Hi @PMorr.1 ,
What about generating code with STM32CubeMX but based on LL drivers and not HAL ones? You still have configurations there, but they are based on registers access.
You can also refer to the example STM32Cube_FW_L4\Projects\NUCLEO-L476RG\Examples_LL\I2C\I2C_TwoBoards_MasterTx_SlaveRx to know more how I2C_LL driver works.
-Aml
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.