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


java.lang.NullPointerException

Hi,

I have this problem when I try to debug or run my project.
The entire message is :

An internal error occurred during: “Launching Nucleo_401RE.elf”.
java.lang.NullPointerException

My version of Eclipse is :

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

My version of Java is :

java version “1.8.0_51”
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) Client VM (build 25.51-b03, mixed mode)

Can you help me?

Regards.

I’ve got the same problem. I think that it could be due to the last java update. Because before installing Java 8.51 I’ve no problem. Any idea?

Hi,

Can you verify if the last debug session is well terminated (Window > Open perspective > Debug). If no debug session is displayed, check if “openocd.exe” is still running in background and terminate it on your Windows task manager.

You also need to check if your board com port is not already busy (communicating with another software, such as ST-Link Utility) and the driver is not out-dated. (Nucleo boards has an embedded ST-Link/V2-1).

Hope it can help you.
Regards,

Kevin


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)


NullPointerExceptions are exceptions that occur when you try to use a reference that points to no location in memory (nullQuestion) as though it were referencing an object. Calling a method on a null reference or trying to access a field of a null reference will trigger a NullPointerException. These are the most common, but other ways are listed on the NullPointerException javadoc page.

Eldo


Hi all,

I work with System Workbench eclipse Neon version and J-Link adapter.
I have a few questions that I will post here:
1. Does anyone know what can be the cause of a java.lang.NullPointerException when trying to aplly
a project compiler setting? I get this message after having a software update for the eclipse IDE.
This message pops-up after each hit of the Apply button.

2. Does anyone know how to find the path for the gdb debugger, on the configuration Debugger tab,
when debugging with JLink? The $cross_prefix and $cross_suffix doesn’t work?

Thanks advance for help!

Regards,

Max