Code doesn't seem to run Nucleo-F401RE

Post here all questions related to STM32 core if you can't find a relevant section!
pablomuro
Posts: 5
Joined: Wed Nov 18, 2020 1:27 pm

Re: Code doesn't seem to run Nucleo-F401RE

Post by pablomuro »

Yeeeeeeeessssssssssss!!!!!!!!!!! Works perfectly! You are the brain!!!! Thanks very much! The last post that you wrote is the only thing that I made (RCC_OscInitStruct.HSEState = RCC_HSE_ON;). And I have to mention that the serial port for the Nucleo F401RE on Arduino is the Serial2. Now everything is working.
Thanks very mutch.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Code doesn't seem to run Nucleo-F401RE

Post by fpiSTM »

Hi,
we found the issue. Depending of the board revisions: C-01 or C-02 the HSE config is not the same.
There are two possible default configurations of the HSE pins, depending on the version of the STM32 Nucleo board hardware.
The board version MB1136 C-01 or MB1136 C-02 is mentioned on the sticker, placed on the bottom side of the PCB.
The board marking MB1136 C-01 corresponds to a board, configured as HSE not used.
The board marking MB1136 C-02 (or higher) corresponds to a board, configured to use
ST-LINK MCO as the clock input.

We will fix this issue by using by default HSI --> https://github.com/stm32duino/Arduino_C ... /pull/2007
Post Reply

Return to “General discussion”