7 years, 7 months ago.

PH_2 not defined for Nucleo-F746ZG?

I have an application that uses a lot of GPIO, and ran into a problem today when I tried to use pin PH-2. I got the compiler message:

Quote:

Error: Identifier "PH_2" is undefined in "main.cpp", Line: 15, Col: 50

main.cpp

#include "mbed.h"
DigitalOut CS_HKP[] = {PB_8, PB_9, PG_9, PG_12, PH_2, PG_12};

I have gotten PH_1 to work, along with all the other 100+ GPIO I'm using for this project. Not sure where to go from there to make this pin available. I checked the Nucleo-144 user's manual and this pin isn't shared with any dedicated functions. It's pin 67 on the CN11 header, and I don't know where to go from here to get access to it.

1 Answer

7 years, 7 months ago.

Hi Adrian,
I have checked my Nucleo-F746ZG and related documentations.
Conclusion is that we cannot use PH2 port on the board because LQFP144 STM32F746ZGT6 does NOT have PH2 port.
MCU pin 106 is assigned Vcap2 and connected C55, 2.2uF and CN11 pin67 is open.
I don't have a Nucleo-F303ZE but it has a PH_2 and connected to CN11 pin 67.
Please make sure again.

Accepted Answer

Thanks. When I was looking at my Nucleo-144 documentation, I hadn't been paying attention to the different variations on the Nucleo-144 boards. I confirm that for the F746ZG variant, pin 67 is not connected.

posted by Adrian Adamson 28 Sep 2016