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


Does Debugging a CubeMX Project work out of the box?

Hi All,

Does Debugging a CubeMX Project work out of the box?

Debug never worked on my WS4STM32 since its installation whatever CubeMX Project I start from. It gives me all sorts of reasons not to work. Did I mess up since installation of the SW4STM32 and should Debug have worked out of the box?

I have a STM32F103C8T6 on a J-Link mini board which flashes and works ok.

I upload my projects via a J-Link on an STM32F407VGT Discovery with board appropriatly removed SB11 smd (reset) and positioned pcb jumpers.

J-LINK wires used are SWD: 1) Clock, 2) Data and 3) Reset.

Of course now I need to see what’s happening in detail to values and want to use the Debug feature of Eclipse.

Regards,
Ben

Tunisia

Default openocd scripts for ST boards, uses ST-Link as debug probe. So you need to customize your openocd script :

example (to be used as local script)

stm32f4disco+jlink.cfg
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp

source [find interface/jlink.cfg]

transport select jtag

source [find target/stm32f4x.cfg]

# use hardware reset, connect under reset
reset_config srst_only srst_nogate


EDIT : for further information @see this topicQuestion

Regards,
Tarek