Skip to main content
BSara
Associate II
September 11, 2018
Solved

How to integrate I2C (on the STMod+ I2C Grove connector) accelerometer with STM32L4R9I-DISCO board on CubeMX?

  • September 11, 2018
  • 5 replies
  • 1446 views

I cannot find the corresponding pins on MCU to the I2C Grove connector located on the fanout board. Currently I have an acceleromater connected to the Grove connector and would like to collect data from that. I have tried to open a new CubeMX project but cannot find the STM32L4R9I-DISCO board. I only see the STM32L4R9I-EVAL board. Please help.

This topic has been closed for replies.
Best answer by Tesla DeLorean

I don't know what you're doing, and not an CubeMX user myself. You need to load the libraries into the repository, and the STM32L4R9I-DISCO is listed under available L4+ boards.

0690X000006C0o3QAC.jpg

5 replies

Tesla DeLorean
Guru
September 11, 2018
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
BSara
BSaraAuthor
Associate II
September 11, 2018

@Community member​ 

I am using the latest version of CubeMX and L4. I see that they are PG7 and PG8, but these pins don't seems to exist on the STM32L4R9xx pinout? I've attached the pinout below.

As far as L4 libraries go, right now they are not linked to CubeMX in anyway. Are the libraries supposed to be dropped into the CubeMX program files somewhere?

Thanks,

Bharathi

BSara
BSaraAuthor
Associate II
September 11, 2018

@Community member​ 

I found how I could use pins PG7 and PG8, so that part is resolved. However, I still cannot get CubeMX to add in the STM32L4R9i-DISCO board. I need to use the PG7/PG8 pins for the accelerometer. But I would like to keep the rest of the peripherals functional, so I want to have the current board layout when working on CubeMX. This means that I cannot just select the MCU on CubeMX but would need to select the board itself.

Tesla DeLorean
Guru
September 11, 2018

I don't know what you're doing, and not an CubeMX user myself. You need to load the libraries into the repository, and the STM32L4R9I-DISCO is listed under available L4+ boards.

0690X000006C0o3QAC.jpg

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
BSara
BSaraAuthor
Associate II
September 11, 2018

@Community member​ This is exactly what I needed. Thanks so much! For some reason they decided to name this part without the STM prefix, so it was very hard to find.