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