Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


SW4STM32: When downloading to a board, should the last line in the Console be "shutdown command invoked"?

All,

Brand new to System Workbench (2 days) ...

I am working with a Nucleo L152RE board.

I have two programs that do the same thing: they try to blink the green led on the board.

The FIRST program is the GPIO_IOToggle from the STM32 Cube repository, imported into workbench following the directions detailed in the accompanying documentation. The program compiles without errors, nor warnings. However, it does NOT run and the last lines in the “Console” window are:

Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
in procedure ‘program’
in procedure ‘reset’ called at file “embedded:startup.tcl”, line 519
in procedure ‘ocd_bouncer’

The SECOND program was half-hacked (created program from scratch in workbench, selected support for HAL layer, copied and pasted code from the web). Compiles without errors, nor warnings. It downloads and runs without errors.However the last message in the “Console” window is “shutdown command invoked

Info : Stlink adapter speed set to 240 kHz
adapter speed: 240 kHz
shutdown command invoked

I was going to investigate the FIRST program, trying to fix it ...

However somewhere I read that seeing “shutdown command invoked” is bad (((https://stackoverflow.com/questions/46531996/shutdown-command-invoked-on-freertos-stm32)))... Implying that also the second PROGRAM is wrong?


Questions:
-----
Do you have any suggestions? Or better have you encountered this problem and are aware of a solution?

Sincerely,
Vincenzo

 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs