Loading...
 
Skip to main content

System Workbench for STM32


OpenOCD debugging issue : Launching STM32F4xx-Nucleo-WriteURI.elf has encountered a problem.

I have installed SystemWorkbench for Eclipse -> install_sw4stm32_win_64bits-v1.0.exe installer along with the java : jre-8u40-windows-x64.exe.
To compile a test project on it I have taken a sample NFC project from here.I can build it fine and flash it using ST Link Utility and it works as expected.
But I am not able to debug the code .I have already configured the OpenOCD and gdb for this .What are the configuration for flashing and debugging the code .

Debug Configuration :

Image


Image


Image


OpenOCD Configuration :


Image

I basically followed this link .
Looking forth for a documentaion to "flash and debug the code" using SystemWorkBench,

Kindly let me know or ask for any mising information.
Thanks and Rgds,
S

Hi,

Firstly, it seems that you're running an old version of System Workbench, so please update it (Help > Check for Updates)

To debug your code, you have to create a "Ac6 STM32 Debugging" debug configuration, it will launch GDB and OpenOCD. You don't need to create any "GDB Hardware Debugging" or external tool program configuration. Here a link to the documentation : http://www.openstm32.org/Creating+debug+configuration?structure=Documentation

Regards,
Kevin.


HI Kevin,
Thanks for the Quick response.
There are three variants of Systemworkbench I am seeing here :
System Workbench for STM32
Installing System Workbench for STM32 from Eclipse
and
System Workbench for STM32 – Bare Metal

Is the debugging support ony provided in the last version?Which One should I choose?
I am updating the SW currently as you suggested(Help > Check for Updates).
Thanks and Rgds,
S


The two label you're mentioning is the same product, just two way to install it. It works the same.

Kevin.