8 years, 10 months ago.

How to instal STM32 drivers?

I can't instal the drivers too, the same message appear "No mbed Microcontrollers were found". Can someones help me please?

Question relating to:

I have a similar problem. I have some ST Nucleo F411RE and L152RE boards and I want to install the Windows serial configuration on Windows 7 and on Windows 8. On both systems I can connect to the board and put software on it. The board also shows up as a USB device. However, when I try to install the Serial software, I get: "The driver could not be instelled. No Mbed microcontrollers were found."

posted by Wilco Bonestroo 11 Jun 2015

2 Answers

8 years, 10 months ago.

The serial driver for nucleos are installed as part of the ST-LINK driver installation. The mbed handbook page is a bit confusing in that respect. The serial driver you refered to is intended for the original NXP mbeds with an lpc11u35 or similar drag&drop and serial interface.

Accepted Answer

I was wondering what would happen if I run the programs from uvision in debug mode. I assume that I can't use the serial in debug-mode.

posted by Wilco Bonestroo 16 Jun 2015

It probably still works since the CMSIS-DAP (debug), mbed drag & drop and USB serial (CDC) are all running as parallel services on the USB port. Just give it a try.

posted by Wim Huiskamp 18 Jun 2015
8 years, 10 months ago.

I can't install the driver for the STM32 boards as well. However, the serial just works automagically on Windows 7. To test it, start a new project and choose the "Display a message on PC using UART" template.

Display a message on PC using UART (Nucleo_printf) template

#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;
  pc.printf("Hello World !\r\n");
  while(1) { 
      wait(1);
      pc.printf("This program runs since %d seconds.\r\n", i++);
      myled = !myled;
  }
}

Compile the program and copy it to your board. In Windows, go to your Device manager and look which COM port your board is using. Start PuTTY, select "Serial" and use the COM port you just found and you'll have your serial working.

Ps. Use \r\n instead of \n to go to the start of the new line on Windows.