Page 1 of 1

[Portenta H7] Understanding UART/SPI/I2C naming

Posted: Wed Oct 12, 2022 7:43 pm
by dweinho1
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.

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

Posted: Thu Oct 13, 2022 7:13 am
by jimmo
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.