Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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.