I recently ordered some G30HDR modules and am trying to figure out the pinout. Here are some questions I have:
[ol]Regarding the markings on the board. On the left side (as you are reading the pin labels), near the middle of the board, “PB3” is listed for two consecutive pins
Looking at the drawing in Section 8 - “The G30HDR Board” in the G30 SoC User Manual, it looks like the topmost one is PB3 and the pin below it that is also marked as PB3 is PB0. Is that correct?
If #2 is correct, I wonder if the pin on the right side that is marked as PB0 is really PB0 or something else?[/ol]
Any clarification would help a lot. Thanks!
@ Brett and DarrenUtd - The board is actually correct. On the pin in question, there is actually a via right in the middle of the “9” in “PB9” making it look like a 0 or a 3.
The pinout Brett gave is correct:
VBAT
PC12
PD2
PB3
PB9
PB4
One more thing, on the software side now. I have noticed that GHI.Pins.G30HDR.PwmOutput doesn’t match up with my understanding of the hardware pinout. It lists
// PWM output definitions.
public static class PwmOutput
{
public const Cpu.PWMChannel PA0 = 3;
public const Cpu.PWMChannel PA1 = 4;
public const Cpu.PWMChannel PA10 = 2;
public const Cpu.PWMChannel PA2 = 5;
public const Cpu.PWMChannel PA3 = 6;
public const Cpu.PWMChannel PA8 = 0;
public const Cpu.PWMChannel PA9 = 1;
public const Cpu.PWMChannel PB6 = 11;
public const Cpu.PWMChannel PB7 = 12;
public const Cpu.PWMChannel PB8 = 13;
public const Cpu.PWMChannel PB9 = 14;
public const Cpu.PWMChannel PC6 = 7;
public const Cpu.PWMChannel PC7 = 8;
public const Cpu.PWMChannel PC8 = 9;
public const Cpu.PWMChannel PC9 = 10;
}
whereas the list I have compiled from the user manual and schematic is (sorted by ascending pin name to match the code above, differences are shown by a shocked face):
@ John - Okay, thanks. So then the location of the pins is correct in the schematic, but the functions are wrong. And the functions in the user manual are correct, but one of the pin labels is wrong (“PB0” on the left should be “PB9”). Is that correct?
(Note: I just corrected my previous post, as I had a couple of typos myself )
@ John - I was just summarizing what we have figured out so far in this thread.
[ol]As you said above, “The functions on the schematic are labeled incorrectly”.
As I mentioned earlier, on p. 22 of the G30 user manual the label for pin PB9 incorrectly reads “PB0”[/ol]
I’m guessing (you can confirm) that another typo in the user manual is for pin PA10, it should read “COM1 RX” not “COM2 RX”. There is already a “COM2 RX” on pin PA3, and the manual for the STM32F01RE shows PA10 as “USART1_RX, TIM1_CH3, OTG_FS_ID, EVENTOUT”
I’m not trying to be difficult. I’m just trying to avoid errors in my product that will set me back weeks. Also, this should improve the documentation for other customers of yours.
@ DarrenUtd - I see now. I was looking at the pinout table earlier in the document. You are right that PB0 on page 22 should PB9. You’re also right about COM2 RX needing to be COM1 RX. Thanks for the finds, they’re much appreciated. We should have an improved draft out for the G30 before long.