Skip to main content
ThePUP
Associate III
April 27, 2020
Question

HOW TO ACCESS I2C-5 FROM STLINUX ON STM32MP157A-EV1

  • April 27, 2020
  • 2 replies
  • 864 views

I would like to use the I2C_EXT channel on the EV1. The only devices in STLinux are /dev/i2c-1, /dev/i2c-2

We are evaluating for purpose of supplanting development on R.Pi with something more industrial, like MP1.

2 things I want to accomplish:

1: have kernel / OS complete connection chain in order

what are the steps I need to take to make this happen?

2: use PYTHON SMBus to communicate to my devices

apt-get install does not find anything beyond low-level I2C utils prepackaged, so

what are the step I need to take to get SMBus in PYTHON operating?

thanks.

-PUP.

This topic has been closed for replies.

2 replies

PatrickF
Technical Moderator
April 28, 2020

Hello,

please have a look to https://wiki.st.com/stm32mpu/wiki/I2C_overview. You need to update Device Tree in order to define I2C5 pins and mode.

You could first generate device tree by using CubeMx, starting from EV1 board and adding I2C5 in SMBus on correct pins. Then you have to adapt your device tree settings.

Regards

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
ThePUP
ThePUPAuthor
Associate III
April 28, 2020

Patrick - Thanks for clarifying.

On the evaluation concept, I guess (re)learning this aspect of device bindings is a good exercise, I'm about 8 years out from my prior journey through this stuff.

But a comment on the concept of out-of-box demonstration of a product by an engineer to his upper management: it should just work. it's on the board, after all. (not a complaint, just saying ...)

I will go have some fun now. again, thanks for tips.

take care,

-pete.