8 years, 2 months ago.

PF_0 and PF_1 in NUCLEO

Hi,

I am new to the NUCLEO-F072CB board and mbed. I made a custom board based on this board for STM32F072CB. I have added two LEDs on PF_0 and PF_1 pins as they are mentioned as I/O in datasheets. But i am not able to control these pins in the DigitalOut mode as

DigitalOut(PF_0); DigitalOut(PF_1);

Is there any internal setting for these pins in mbed compiler? Please someone suggest me.

1 Answer

8 years, 2 months ago.

I see the F072RB which is supported does not have a port F. Outside of having your target supported by the online compiler, you can delete your mbed lib, import mbed-dev, and modify the pinout file + probably some other source files to add support for your extra ports.

Hello Erik,

Thanks for your answer. Actually it is having PortF pin PF_0(pin5) and PF_1(pin6) and mention it can be used as I/O.

posted by Kishore Chilakala 02 Mar 2016

Yes F072CB does have port F. However you are compiling for the F072RB, which does not have a PortF. The F072CB is as of yet not supported by the online compiler at least.

(I just saw the F072RB does have a Port F, but only pins 0 and 1, see also: https://developer.mbed.org/users/mbed_official/code/mbed-dev/file/fcc37a1ad8f5/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h)

posted by Erik - 02 Mar 2016