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


jtag status contains invalid mode value - communication failure

I am trying to develop a UART protocol using STM32F4xx-Nucleo example.
However, once I put in a printf in main loop to print once a second to PC through USB,
the debugger will have following error after few prints :

Error: jtag status contains invalid mode value - communication failure
Warn : target stm32f4x.cpu is not halted
Polling target stm32f4x.cpu failed, trying to reexamine
Examination failed, GDB will be halted. Polling again in 100ms
Info : Previous state query failed, trying to reconnect
Polling target stm32f4x.cpu failed, trying to reexamine
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints

Update : I try different example (Blink LED), result is the same after few minutes, GDB is disconnect.