[Portenta H7] Understanding UART/SPI/I2C naming

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
dweinho1
Posts: 8
Joined: Sun Mar 06, 2022 5:22 pm

[Portenta H7] Understanding UART/SPI/I2C naming

Post by dweinho1 » Wed Oct 12, 2022 7:43 pm

I purchased a Portenta H7 and am looking to use it for a project. I ran into a problem with the naming/pinout lineup.

If I look at the pinout page, I see that there are the following UARTs: 1,4, 6, and 8.
pins: https://github.com/micropython/micropyt ... 7/pins.csv

However, if I look at the mpconfigboard.h file, I see the UARts are: 1, 7, and 8
https://github.com/micropython/micropyt ... figboard.h

The mpconfigboard.h file corresponds to what I can access in code. This prompts lots of questions. Why is there this difference? How do I know what pins correspond to what UART? Where is the 4th UART (is it for the USB?)?

I have similar questions for I2C and SPI, but I suspect answers surrounding the UART will make things a lot more clear on those as well.
For instance, there should be 3 I2Cs but I only see I2C3. Though I only see I2C1 and I2C3 in the pins file.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: [Portenta H7] Understanding UART/SPI/I2C naming

Post by jimmo » Thu Oct 13, 2022 7:13 am

dweinho1 wrote:
Wed Oct 12, 2022 7:43 pm
I purchased a Portenta H7 and am looking to use it for a project. I ran into a problem with the naming/pinout lineup.
Please post new topics at Github Discussions instead. We're about to make this forum read-only. I suggest you try reposting there https://github.com/orgs/micropython/discussions

This does sound like an oversight in the board config. Perhaps you could mention @iabdalkader (the author of this board definition) in your discussion post.

Post Reply