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


Debugging STM32F107 from CubeMX

Guys,

I tried to debug a code generated from CubeMX for STM32F107 on System Workbench,

But I got this error :


Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:0

Error message from debugger back end:
localhost:0: The requested address is not valid in its context.
localhost:0: The requested address is not valid in its context.

Anyone knows how to fix it ?
And how do I upload *.hex file to the board from this System Workbench ?
How do I use my J-Link or ST-Link ?

thanks

Hi,

System Workbench support ST-Link.
Can you add the -d3 option to the debug configuration as showed in this image?

Debug Conf 01

That option tell OpenOCD to display more debug information. In this way you can check in the openocd console what is going wrong and provide more information to better understand your problem.

Regards,
Stefano


Hello,
I am trying to debug STM32F107VC in System Workbench. I use the FW from Cube, however it looks fine because I can flash it via ST-Link Utility and it works. But when starting debug following error appears:

Error in final launch sequence
Failed to execute MI command:
load “C:\Users\Public\Development\SWSTM32_workspace\Cube_eth\deebridge_eth\SW4STM32\deebridge_eth Configuration\Debug\deebridge_eth Configuration.elf”

Error message from debugger back end:
Error erasing flash with vFlashErase packet
Error erasing flash with vFlashErase packet

I append as well print screen with console output :

undefined debug reason 7 - target needs reset
Error: timeout while waiting for target halted
TARGET: stm32f1xx.cpu - Not halted

I use 4 wire SWD connection (VDD, GND, SWD, SWCLK) to MCU.

Can you please help me to find out the solution?

Thank you in advance,

Tony


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs