9 years, 5 months ago.

How would I change an output pin in a template program?

Hello,

I just tried the mbed compiler for the first time. Could generate and download binary code for ST's Nucleo board STM32F401 using mbed's default program template Nucleo_pwm.

Question: if I double-click on an enumerator like LED1 or PWM_OUT, a little window pops up in the browser with some more information about the item. Nice. However, if I then click on the text icon 'A' inside this window, an error message pops up:

The source files preview is unavailable for library builds. To preview the source files you should convert the build into library.

Don't know what to do with this information. What I'd like to do is to put the PWM output signal to a different uC pin. Is that possible, and if yes: how?

Regards, Andreas

2 Answers

9 years, 5 months ago.

You can simply replace that name with the name of another pin, or an alias. For your target all pin names are in blue here: https://developer.mbed.org/platforms/ST-Nucleo-F401RE/, including their aliases. And PWM is possible on those labelled as PWM pins.

Accepted Answer
9 years, 5 months ago.

If you want to change the pin - have a look at the diargams on this page https://developer.mbed.org/platforms/ST-Nucleo-F401RE/

It shows the friendly naming you can use for the different pins.