Skip to content

Portenta H7 - 3x I2C bus #332

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

Closed
RoboCode23 opened this issue Sep 23, 2021 · 9 comments
Closed

Portenta H7 - 3x I2C bus #332

RoboCode23 opened this issue Sep 23, 2021 · 9 comments
Labels

Comments

@RoboCode23
Copy link

The Portenta has 3x I2C bus and only 2 are defined in the libraries...

added and modified howmany from 2 to 3 in pins_arduino.h

#define WIRE_HOWMANY		3
#define I2C_SDA2			(PH_12)
#define I2C_SCL2			(PH_11)

and added into Wire.h and Wire.cpp

#if WIRE_HOWMANY > 2
arduino::MbedI2C Wire2(I2C_SDA2, I2C_SCL2);
#endif

makes all 3 work

@facchinm
Copy link
Member

Hi @RoboCode23 ,
would you mind submitting a pull request so we can properly track the authorship of this fix? Thanks a lot!

@RoboCode23
Copy link
Author

Hi @RoboCode23 , would you mind submitting a pull request so we can properly track the authorship of this fix? Thanks a lot!

@facchinm Sure, first time I found out something useful, so I didn't know how this works on GitHub - pull request added, don't know if properly...

@cHemingway
Copy link

I have also seen this issue, its particurally impactful on the Portenta Machine Control, where the front Groove connector is labelled "SCL, SDA" on the silkscreen and connected to PH_8, PH_7 (bus I2C3 on the schematic)

These are not not listed in pins_arduino.h for that board, and so there is no matching Wire instance by default.

@cHemingway
Copy link

@facchinm , chasing this, would it help if I submitted the same pull request as RoboCode23 so this could be merged and the "missing" I2C port added?

@RoboCode23
Copy link
Author

RoboCode23 commented Feb 25, 2022 via email

@cHemingway
Copy link

I have opened #413 and listed you as the author in the commit

facchinm added a commit that referenced this issue Mar 7, 2022
Add 3rd I2C bus for Arduino Portenta H7, Fixes #332
@Jenifen
Copy link

Jenifen commented Sep 8, 2022

PH_8, PH_7 still not listed in pins_arduino.h?
@cHemingway

@thechordmaster
Copy link

Any update on this? Have they been updated please?

@pennam
Copy link
Contributor

pennam commented Nov 27, 2024

PR #413 was merged in march 2022 so this change should be included in the core releases since a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants