[Portenta H7] UART, SPI, and I2C naming/pins #9603
Replies: 2 comments 2 replies
-
This is not the documentation, the documentation is on the website (https://docs.arduino.cc/hardware/portenta-h7) This file maps named pins to pins. And although it's not wrong (those pins do map to UART AFs) some of them are used for different UARTs and others are on the HDI connector (on the back) which is not normally accessible, or used to connect the vision shield/etc...
Yes that's where you should look and trust for available UARTs, I2Cs etc.. Anything else Not enabled is not enabled for a reason. |
Beta Was this translation helpful? Give feedback.
-
Update for others: I successfully enabled 7 of the UARTs. The others are not available due to the pin outs of the high density connectors. Note: you need to comment out any code relating to the SD Card to use all of the UARTs with my assignments. Check the pins for compatibility! Plenty of things will not function based on these assignments. Below are my mpconfigboard.h changes to the UART section.
To enable the LPUART, you need to edit pin_defs_stm32.h.
|
Beta Was this translation helpful? Give feedback.
-
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.
https://github.com/micropython/micropython/blob/master/ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv
However, if I look at the mpconfigboard.h file, I see the UARTs are: 1, 7, and 8
https://github.com/micropython/micropython/blob/master/ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.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.
@iabdalkader tagging you specifically since I understand you are the author of the board.
Beta Was this translation helpful? Give feedback.
All reactions