Skip to main content
DIngr.1
Associate III
May 19, 2021
Solved

Nucleo-F042k Doesn't Seem to Function

  • May 19, 2021
  • 2 replies
  • 879 views

I just received (about 4 hours ago) 2 Nucleo-F042K6 boards. I tried to a LED blinker program but both units hang in the Clock Configuration routine. Strange that both units exhibit the same behavior. I'm wondering if I missed something. I used CubeMX to for the default configuration (but I noticed the LED is missing - I had to added it to PB3 per the documentation) . Updated the St-link and launched the debugger with CubeIDE and with uVison. Both hang in same place. Tried to program with CubeProgrammer but 't the Led doesn't blink.

One think I noticed when I was first started is that the flash erase function was 'greyed' out in uVison.

I'm assuming both are units are bad and will try return them unless I've missed something trivial.

This topic has been closed for replies.
Best answer by TDK

Look at the HSE configuration. If HSE bypass is enabled, disable it. Otherwise, enable it. Not sure which is correct for this board offhand but CubeMX gets it wrong for some boards in the default configuration.

2 replies

TDK
TDKBest answer
May 20, 2021

Look at the HSE configuration. If HSE bypass is enabled, disable it. Otherwise, enable it. Not sure which is correct for this board offhand but CubeMX gets it wrong for some boards in the default configuration.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DIngr.1
DIngr.1Author
Associate III
May 20, 2021

The CUBEMX default configuration for the Nucleo-F042K sets the HSE as BYPASS clock source but the board does not come with a crystal. Disabling the HSE did the trick. I now have a blinky.

Thanks.