9 years, 2 months ago.

Serious issues with mbed on STM32 Nucleo

Just got the STM32F401RE Nucleo board in, and compiling some basic programs with the mbed online compiler. It compiles just fine, but basic stuff like the wait() function and pwmout cause a hangup. Such as in:

included code

#include "mbed.h"

//------------------------------------
// Hyperterminal configuration
// 9600 bauds, 8-bit data, no parity
//------------------------------------

Serial pc(SERIAL_TX, SERIAL_RX);
 
DigitalOut myled(LED1);
 
int main() {
  int i = 1;
  int j;
  wait(1);
  pc.printf("Hello World !\n");
  while(1) { 
      wait(1);
      pc.printf("This program runs since %d seconds.\n", i++);
      myled = !myled;
  }
}

If I comment out the wait() lines, it runs as expected.

I updated the firmware for both the board and the STLink on my Windows 7, no help. Is there something I'm missing? Did anybody else observe similar issues?

Jay

2 Answers

9 years, 2 months ago.

Dont recall seeing that. Have you also update the mbed lib ?

9 years, 2 months ago.

It is a known issue with very outdated version of the mbed lib. Right click on it, click update.