Accessin Pins on Portenta HAT Carrier

I have an Arduino Portenta C33 mounted on an Arduino HAT Carrier. How do I access the pins on the 40 pin connector from the Arduino IDE 2.3.x??? What pin designations do I need to use? Is there another header file and/or library I need to use to access the pins on the HAT Carrier 40 pin connector?

8-Dale

Hello all,

If I'm not wrong this question was already responded in an issue Document Arduino HAT Carrier Pins to Arduino IDE Pins · Issue #1752 · arduino/docs-content · GitHub and in a Discord post.

Therefore I suggest to mark it as solved.

Happy coding!

Yeah, well, jcarolinares, those drawings are CLOSE to being correct. However, for example, the Analog 16-pin Header (J6) has a pin called "PWM4" (at position 12) that is NOT connected as listed, but, instead, is hooked up to "GPIO_0" at IO #27! There are other errors in that document that need to be updated.

Hello Snave, thank you for the feedback.

I've been taking a look at it looks like the documentation is coherent.

Let me explain if you go to the document:

You can see that the first column is named "Silkscreen". As you probably know, the silkscreen is the text that you can find on the board itself. The idea of that column is to give the user the exact name that will find on the board with the idea of making easier the prototyping phase.

So in this case J6 Pin 12 is named as PWM4 on the board and internally connected to the Portenta Standard connector High-Density Pin GPIO_0.

Now if you go to page 6 you can find how that pin has to be named inside your program depending on the board attached to your hat carrier:

So J6 Pin 12 is internally a GPIO that has been assigned via software to have the purpose of a PWM4, which is the assigned standard Portenta Connector Feature but depending on the board connected that function can differ.

Depending on the board connected to your hat carrier you will need to call it in your program:

  • Portenta X8 (Linux): 187
  • Portenta X8 (Arduino): PA_11
  • Portenta H7: PJ_11
  • Portenta C33: 4

Well, Jcarolinares, you have illustrated the ERROR accurately in your second image, and in your final text you have made a big mistake. You show, in that second image, and you wrote:

"Depending on the board connected to your hat carrier you will need to call it in your program:"

...

" * Portenta C33: 4"

This is COMPLETELY WRONG. In fact what is silkscreened on the Hat Carrier board on the Analog Header at "J6", pin 12, as "PWM4" is NOT ACCESSED as "4" in "your program", like you said, that pin is accessed, instead, as "27"!

So please update that pin-out document to reflect the correct pin "27" as IO "PWM4" on "J6".

Well, jcarolinares, I am so sorry to say but you are incorrect. That "PWM4" pin at J6 pin 12 (on the Hat Carrier Board) is accessed in "your program" as #27 and not as #4 as you have incorrectly indicated.

Please advise.

OK, jcarolinares, also note that, while you are fixing the documentation, there are other ERRORS in that image you sent "Analog 16-pin Header (J6)":

  1. Pin 14, "SERIAL2 TX": is NOT on IO#49 (C33).
  2. Pin 16, "SERIAL2 RX": is NOT on IO#50 (C33).

This UART is connect to: "SERIAL 4", and the two IO#s are: 57 and 58.

Please advise.

OK, I have updated the page in error, here's the fix, to the last three lines of that spreadsheet (pic attached).

Hello Snave, thank you for your feedback.

Let us take a look at the potential errors you are pointing out, as you can imagine these carriers have a high level of complexity, and making this kind of table where the number of variables is huge can lead to potential errors even with people double-checking.

I will let you know once we checked it.

Regards

Hello Snave

We did a technical double-check regarding the problems you pointed out and fixed some of the issues you pointed out plus some additional ones. Thank you for your feedback.

To make it shorter you will find the updated document at:

https://docs.arduino.cc/resources/pinouts/ASX00049-full-pinout.pdf

Please take into account that the server could take some time to show you the latest version!

Have a nice day!

Really, "fixed some of the issues"? Looks like you fixed ALL of the issues, and more!

Thank you.

This document needs to show the correct Portenta pins that match the Raspberry Pi pins. It is useless for HAT Carrier projects as it is now.

8-Dale