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


Eclipse crashes during run/debug

Hello I am geting java nullptr exception while trying to run/debug from workbench
http://i.imgur.com/lOuQZYe.pngQuestion

Building is ok, without error. I can even upload created .bin file to my board through st link utility. I’ve tried to reinstall drivers for st link and workbench.

Any ideas?

I’m having the same issue trying to debug GPIO_IOToggle example for the Nucleo-F401.

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

Any help would be appreciated.

BTW, my Java version is 1.7.0_79

And here’s my logs:

SESSION 2015-10-06 11:53:01.065 -------------------

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)




I have the same problem. I can open workspace, import projects, edit files, compile and build binary files, but I cannot program STM32F7 board from Eclipse. I get following error within Eclipse:
An internal error occurred during: “Launching STM32746G_DISCOVERY Debug”.
java.lang.NullPointerException.

My colleague has exactly the same problem on his laptop computer. We can use binary files to program the board, but only from STM32-Link Utility application and everything works ok. Many people mentioned bad xml files in project directory. We inspected all of them and found nothing suspicious.

Is there a way around this problem? Basically, everything works except Program & Debug from Eclipse. We found solution for programming, but Debugger won’t run.


Nucleo f401 is supported and it should work out of the box with latest ac6 (cubemx 4.1+) that’s sure.
make sure to have stlink-v2 recent driver installed (what should be the case if ou have installed stm32-uitlity)
if you installed the toolset from st pakage re-installing or updating from eclipse using the site may help
http://www.ac6-tools.com/Eclipse-updates/org.openstm32.system-workbench.siteQuestion

With first earlier verison of CubeMX “board” was not set by defautl in ac6 c/c++ setting pane this making a null execption
f trying to create a debug config or launching debug, simply select a nucleo-f401re board should sollve the sisue
the same is lilkley to occur if you do not set the board in your c/c++ target ac6 setting.


Is the stm32f7 device and board cfg already supported by openocd shiped or insatlled with your ac6 plugin ?
Double check in the debug configuration and our the opencocd console (if possible) what’s the cfg file use in openocd
that file should exist on the opencd board/ or scripts subdir.


 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs