5 years, 5 months ago.

How to Program STM32F411RE MCU using STLINK/V2-1 from Nucleo-STM32F411RE?

Good Day,

I am trying to program a STM32F411RE MCU chip using the STLINK/V2-1 from a Nucleo-STM32F411RE but am having a small problem. The MCU chip connects to the ST-Link Utility successfully and code can be pushed to the chip. However, the LED does not blink (only using blinking LED for testing). I have the ST-Link Utility screenshot attached. The schematic of the MCU (decoupling capacitors are added you can't see them), and the simple code I wrote in Mbed.

/media/uploads/robertmahon/code.png /media/uploads/robertmahon/connections.png /media/uploads/robertmahon/stm32_st-link_utility.png

I use the same STLINK/V2-1 for the STM32F303 MCU with no issues.

Is there anything in the schematic, code, or some ST-Link Utility setting I need to change?

2 Answers

5 years, 5 months ago.

Looking at your schematic, you have no HSE external clock crystal. I always use HSE clock set up with no problem on most STM chips. You need to check the Nucleo-STM32F411RE default clock settings to make sure, it could be external, internal or HSE. You can of course change the settings in the Mbed Library set up to suit your application.

5 years, 5 months ago.

Hello Robert,

Try to connect an 8MHz crystal (decoupled with 20pF capacitors) to OSC_IN, OSC_OUT pins, as shown on Figure 28. "STM32 MCU" (page 64) of the User manual.

EDIT: Sorry, it seems that while I was editing my response Paul had answered your question.