Skip to main content
JBonn
Associate III
Sep 22, 2021 7:30 PM UTC
Question

I need a CubeMX example for an L4 chip I2C interface to an LSM303AH

Are there any CubeMX examples? There are good Repositories for the CubeIDE but can find nothing for the CubeMX

This topic has been closed for replies.

2 replies

ST Technical Moderator
Sep 23, 2021 8:11 AM UTC

Hello @JBonn​ ,

There is no ready for use CubeMx examples or .ioc files for STM32L4 series.

I advise you to develop your own project using the tool and based on similar ready example with different toolchains (EWARM, MDK-ARM, SW4STM32) :

\Repository\STM32Cube_FW_L4_V1.17.0\Projects\STM32L476G-EVAL\Examples\I2C\

You can also use STM32CubeIDE, for that you should import SW4STM32 projects to STM32CubeIDE following this guide UM2579.

When your question is answered, please close this topic by choosing Select as Best.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
MarieMaurer
Associate II
Oct 19, 2021 1:47 PM UTC

Perhaps this repo is helpful:

https://github.com/STMicroelectronics/STMems_Standard_C_drivers

It has a subdir with driver and example code for LSM303AH.