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


Target doesn't halt when starting a debug

Particularly when changing projects, or after a few days doing a bunch of other things, when I try to start up a debug sessión, it says

Error: Target not halted
Error: failed erasing sectors 0 to 36
Error: flash_erase returned -304
shutdown command invoked

Often unplugging and replugging the ST-Link or “resetting” the USB port it gets oriented.

But sometimes it’s more serious. I recently reset the whole computer and unplugged everything.

Still hangs.

I’ve rechecked the SWD connections, the reset pin is connected as always.

I be sure all modules are stopped.

What’s going on?