Skip to content

disco_l475_iot1/arduino_r3_connector.dtsi arduino_i2c should be i2c1 #88558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glenn-andrews opened this issue Apr 13, 2025 · 0 comments · May be fixed by #88560
Open

disco_l475_iot1/arduino_r3_connector.dtsi arduino_i2c should be i2c1 #88558

glenn-andrews opened this issue Apr 13, 2025 · 0 comments · May be fixed by #88560
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug

Comments

@glenn-andrews
Copy link
Collaborator

Describe the bug
Arduino shields fail to operate as the I2C bus has been moved from I2C1 to I2C3.

On the Arduino UNO pinout here: the I2C are on D18 and D19, which on the disco_l475_iot1 board is CN1 pins 9 and 10. and connected to I2C1.

This commit changes the pins to I2C3, which are on the analog pins of the Arduino Uno connector (CN4 on the Disco board)

To Reproduce
Build the LVGL demo for the Disco L475 board using the adafruit_2_8_tft_touch_v2 shield.

Note you need to reduce the amount of video memory allocated from 64% to about 14% to fit in RAM.

Expected behavior
Touching "Hello World" button resets the counter.

To fix
In disco_l475_iot1/arduino_r3_connector.dtsi:

Change line 38 from

arduino_i2c: &i2c3 {};

to

arduino_i2c: &i2c1 {};

Impact
All Arduino boards using the default I2C port fail to work.

Environment (please complete the following information):

  • Windows 11 Home,
  • Zephyr SDK 0.17.0
  • Zephyr OS build v3.7.1-72-gbf440dec238c

Additional context

From Disco board schematic:

Image

@glenn-andrews glenn-andrews added the bug The issue is a bug, or the PR is fixing a bug label Apr 13, 2025
@henrikbrixandersen henrikbrixandersen added the platform: STM32 ST Micro STM32 label Apr 13, 2025
@nashif nashif assigned kartben and unassigned kartben Apr 13, 2025
@nashif nashif added the priority: low Low impact/importance bug label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants