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 here. 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???