4 years, 11 months ago.

Compiler is not able to identify PF_1 and PF_0 pins of NUCLEO-F103RB , What could be the reason ?

I defined digital pins PF_1 and PF_0 of Nucleo-F103RB , but mbed compiler is not able to identify those error and it is popping up an error.

1 Answer

4 years, 11 months ago.

I am not seeing any reference to pins PF0 or PF1 on that microcontroller STM32F103RBT6. The pins are defined in PinNames.h

https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h

Those pin names are not mentioned in the datasheet. Pins start on Page 26.

https://media.digikey.com/pdf/Data%20Sheets/ST%20Microelectronics%20PDFS/STM32F103x8,B.pdf

Where are you seeing reference to PF_1 and PF_0?

Edit:

Okay. I think this is an artifact of the fact that the same schematic is shared between multiple devboards. When you go to the schematic the pins are described as:

PF0/PD0/PH0 micro pin 5

PF1/PD1/PH1 micro pin 6

These are the main oscillator in pins. PD_0 and PD_1 are defined in PinNames.h - so you can give those a try. You may run into some problems with mbed initialization code because these are used for the external oscillator by default. Note that jumpers SB55 and SB54 must both be closed for these connections to reach the CN7 header. It says SB55 is open by default. You'll also want to make sure R35 and R37 are not populated.

Accepted Answer

https://os.mbed.com/platforms/ST-Nucleo-F103RB/ Refer CN7 pinout you will find PF_1 and PF_0.

posted by Dheeraj Etta 05 Apr 2019

I updated my answer.

posted by Graham S. 05 Apr 2019