How to generate LL code use STMCubeIDE? like I2C example
Dear All
I am new to STM32CubeIDE and imported an example project I2C_OneBoard_AdcCommunication_DMAAndIT_Init, it work well, but when I try to do same with my own project, the generated code like MX_I2C2_Init(void) is totally different with the example, it seem use all LL drivers, and my project generate HAL code, my question are:
1. How can I let my STM32CubeIDE to generate same LL driver? is use LL encouraged instead of HAL?
2. If I use example code function like Handle_I2C_Master_TransmitReceive() to interface with generated HAL code, will it work?
3. When they generate different code, it is confusing and I cannot compare them and found which code is added by user later or generated by MX.
I am using Nucleo-H563Zi board and my STM32CubeIDE version is v1.19.
Thank you in advance.
Ping


