Skip to main content
Associate
February 18, 2026
Question

Nucleo-144 zephyr blinking example not working

  • February 18, 2026
  • 2 replies
  • 298 views

I can build it successfully using west but when I program it I get: "Warning: The core is locked up" and no LED blinks.

I also made my own blinking LED but that doesn't work either.

I can program the board using stmcubeide and that work. It seems to be an stm32cubeprogrammer issue?

2 replies

Andrew Neil
Super User
February 18, 2026

@curiousmind wrote:

I also made my own blinking LED but that doesn't work either.


So what investigation/testing/debugging have you done to find why it's "not working" ?

 

How to write your question to maximize your chances to find a solution

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
February 19, 2026

I haven't gotten to debug it yet, I am new to Zephyr, I just wanted to try and run a simple application to begin with.

 

Associate II
July 7, 2026

The "core is locked up" message is a flashing/connection problem, not a bug in your blinky code. CubeIDE works because it connects to the chip "under reset"; west's default connection doesn't, so it can't grab the core while your old program is running.

Quick test: press and HOLD the black RESET button, start `west flash`, and release it a second after it connects. If it programs, that's the confirmation.

Permanent fix: make the programmer connect under reset. Add this to your board's board.cmake:

    board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw" "--conn-modifiers=mode=UR")
    include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake)

If it still won't connect, open STM32CubeProgrammer, set Connect mode = Under reset, click Connect, then Full chip erase to wipe the old firmware.

Same tool, same symptom, solved here: https://community.st.com/t5/stm32cubeprogrammer-mcus/stm32cubeprogrammer-issue-with-west-flash-command/td-p/705499