8 years, 9 months ago.

Nucleo-F070RB PB6 problem?

I have a Nucleo-F070RB and am using mbed for programming.

Is there something special about PB6 that prevents it from being used as a GPIO? It appears to be configured as as oscillator output (?) at 500Hz. PB6 starts generating a square wave after reset.

The code below has no effect (PB6 still outputs a 500Hz square wave):

#include "mbed.h"

DigitalOut myPin(PB_6);

int main() {
	myPin = 0;
	while(1) {
	}
}

I am running just the Nucleo board (no shield, etc.). This happens on two separate (identical) boards.

Thanks for any insight... Jay

There is lingering debug code here that toggles PB6: mbed/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.c

I submitted a change/pull request to turn it off.

Until it is incorporated, PB6 is unusable on the Nucleo-F070RB.

posted by Jay Francis 29 Jul 2015
Be the first to answer this question.