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


java.lang.NullPointerException

No debug session is displayed in the debug prespective and in the task manager don’t apear the “openocd.exe”. I reintalled all the tool chain with a clean OS (with virtual machine) and the error still appearing.

The error message appear when I try creating a new debug configuration. The sequence is descrieved below:

1- Create a new STM32CubeMX proyect.
2- Generate the code
3- Import the proyect in C/C++ prespective.
4- Build the proyect.
5- Open the Debug Configuration dialog.

There when y try creating a new “Ac6 STM32Debugging” appear the error message.

Which version of STM32CubeMX are you using ?

On the last version (4.9), the board definition file (the XML file in your project) is not well generated. Can you open the xml file and verify that the attribute id value of the is between double quote. If not, add them.

We have reported already this bug on the generated files for SW4STM32 to ST. Hope it will be fixed soon.

Sorry for this invenience.
Kevin.

Thanks you very much!!! That is the problem. I add the double quote in the xml file and every thing works.

The original post refered to NullPointerException when trying to Run/Debug the project.

I’m having the same issue. The project builds successfully and I can flash it onto the target with ST-Link utility. However, when trying to Run/Debug in System Workbench, I get the following error:

An internal error occurred during: “Launching
STM32F4xx-Nucleo Debug”.
java.lang.NullPointerException

Here’s my log:

SESSION 2015-10-06 16:34:34.711 -------------------

eclipse.buildId=4.4.2.M20150204-1700
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product

...

ENTRY org.eclipse.core.jobs 4 2 2015-10-06 17:17:50.175

MESSAGE An internal error occurred during: “Launching STM32F4xx-Nucleo Debug”.

STACK 0

java.lang.NullPointerException
at fr.ac6.mcu.debug.launching.MCUGdbLaunch.createOpenOCDProgramProcess(MCUGdbLaunch.java:141)
at fr.ac6.mcu.debug.launching.MCUGdbLaunch.addOpenOCDProcess(MCUGdbLaunch.java:67)
at fr.ac6.mcu.debug.launching.MCUGDBJtagDSFLaunchConfigurationDelegate.launch(MCUGDBJtagDSFLaunchConfigurationDelegate.java:98)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


 

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