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


Cannot debug project imported from CubeMX

I am using:
Nucleo-F303
Windows 10
Ac6/Eclipse Mars (4.5.2)
Java 8 Update 91
CubeMX verstion 4.15.1

I am getting an error “java.lang.NullPointerException” when I try to create a new Ac6 debug configuration. I have imported the project per the instruction guide hereQuestion. And I am able to get the project to compile and upload with ST-Link Utility. But I cannot get the debug working.

(When I create a new project in Ac6 using the peripheral library, I am able to get blinky projects to compile and flashed to the nucleo. I am also able to debug but OpenOCD I am also having trouble with OpenOCD giving me lib_usb_error failed to open. Not sure if that is relevant but that is probably for a different topic)

------------

Here is the error log:

SESSION 2016-09-02 10:17:27.884 -------------------
eclipse.buildId=4.5.2.M20160212-1500
java.version=1.8.0_91
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.resources 2 567 2016-09-02 10:17:31.576
MESSAGE Failure occurred reading .project file.
SUBENTRY 1 org.eclipse.core.resources 2 567 2016-09-02 10:17:31.576
MESSAGE Could not read metadata for ‘project1’.
STACK 0

SUBENTRY 1 org.eclipse.core.resources 2 567 2016-09-02 10:17:31.595
MESSAGE Empty name detected for linked resource with type ‘1’ and location ‘’.

ENTRY org.eclipse.cdt.core 4 0 2016-09-02 10:17:49.960
MESSAGE Exception trying register listener fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector
STACK 0


ENTRY org.eclipse.egit.ui 2 0 2016-09-02 10:17:54.907
MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

ENTRY org.eclipse.cdt.core 4 0 2016-09-02 10:51:21.247
MESSAGE Exception trying register listener fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector
STACK 0

ENTRY org.eclipse.cdt.core 4 0 2016-09-02 10:51:21.396
MESSAGE Exception trying register listener fr.ac6.mcu.ide.build.CrossBuiltinSpecsDetector
STACK 0

ENTRY org.eclipse.jface 4 2 2016-09-02 10:55:48.170
MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jface”.
STACK 0

--------------------

I am not really sure what to do about this. Every time I start a new debug configuration I get the error message and I can change the configuration but it never saves.

I can debug projects created within Ac6 and I can upload files/talk to the board through the ST-Link utility so it’s not a communication problem. Seems to be a problem with Ac6....

Some people have suggested that the board id in the XML file should be in double quotes. But that is for CubeMX versions 4.9 and 4.10. And, I have checked that and it is indeed in double quotes. I’m all out of ideas and pretty frustrated that this isn’t working. Anyone have any ideas??? :-(

Have the same problem on Windows 7 64 bit.

Project imported from CubeMX builds .bin file , but debug is not working, all debug buttons graeyd out. Eclipse new project works fine.
I can run st-link in CLI mode with the same .bin file just fine.

Have the same Error log warnings:
Failure occurred reading .project file.
Empty name detected for linked resource with type ‘1’ and location ‘’.
Could not read metadata for ‘l1’.
Warning: The environment variable HOME is not set. The following directory will be used to store the Git
I also set java_home and jre_home, but “variable HOME is not set” does not go away.

After unchecking “Index unused headers” errors gone, but debug is not going anywhere.

As I can see I stuck in HardFault_Handler of my stm32l1, wonder why.



 

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