Skip to main content
JBonn
Associate III
September 22, 2021
Question

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

  • September 22, 2021
  • 2 replies
  • 774 views

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

Technical Moderator
September 23, 2021

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
October 19, 2021

Perhaps this repo is helpful:

https://github.com/STMicroelectronics/STMems_Standard_C_drivers

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