I2C management STM32F407 + LSM6DSV16XTR + LIS2MDLTR
Hello,
I have a custom board with STM32F407 CPU, LSM6DSV16XTR accelerometer+gyroscope and LIS2MDLTR magnetometer.
I aim to get board inclination and the position of the north using the magnetometer for a telescope.
Using CubeMX, I have enabled the LSM6DSV16B and the LIS2MDLTR in the Middleware package.
When generating, CubeMX removes the I2C1 initialization from main. But I need the I2C1 peripheral for other devices in the board, not only for MEMS. What is the correct way to manage this?
Thank you.
