cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE 1.16.1 arm-none-eabi-gdb-version Error

Uloff.4
Associate II

I am using CubeIDE version 1.16.1 to program and flash a STM32F433 MCU.
I am using a SEGGER J-Link flasher.
When I try to run the application I get the following error:


error_cube.PNG

I have tried to manually set the workspace toolchain to local in the toolchain manager.
When I open the toolchain manager, I get an error that it has failed to fetch the toolchain list, in addition to four repositories that it cannot read:

 

error.PNG

Ignoring the message and setting the local toolchain as it follows 

Uloff4_2-1727783147363.png

Uloff4_3-1727783374271.png

 

I get the same error when running the code on the MCU:


error_cube.PNG

What should I try to do to fix the error?

12 REPLIES 12
Ghofrane GSOURI
ST Employee

Hello @Uloff.4 

First let me thank you for posting.

To ensure that CubeIDE can communicate with the SEGGER J-Link and program your STM32F433 MCU correctly, you should verify the J-Link configuration in CubeIDE.

1- Go to Run -> Debug Configurations.
2- In the Debug Configurations window, under GDB SEGGER J-Link Debugging, check if your J-Link device is selected in the Target tab.
3-Make sure the correct device is selected in the Target tab and that the settings match your hardware setup.

GhofraneGSOURI_0-1727791468930.png

Also Clear Cache:
Sometimes, cache issues can cause problems. Try clearing the cache in CubeIDE by going to File -> Restart 

GhofraneGSOURI_1-1727791580666.png

I will be waiting for your feedback.

THX

Ghofrane

Uloff.4
Associate II

Hello Ghofrane

I tried rebooting as you mentioned, but it made no difference.

Here my debugger settings:

Uloff4_1-1727848116099.png

 

*my MCU STM32F446

Hello again @Uloff.4 

1- First let's  try to use the SWD (Serial Wire Debug) interface for debugging purposes. Segger J-Link devices support both SWD and JTAG (Joint Test Action Group) interfaces for debugging ARM Cortex-based microcontrollers but using SWD with a Segger J-Link offers a reliable and efficient way to debug your target device.

2- Click on "Show command line," copy the command, open your command prompt, paste it there. Before proceeding, ensure that your J-Link is connected and your board is ready. Finally, share the log, please.

THX

Ghofrane

 

Using SWD with the SEGGER gives the same error.

I cant figure out where i open my command promt.
Thanks for your help

Hello @Uloff.4 

To open the command prompt in Windows, you can follow these steps:

Using the Start Menu:
Click on the Start menu icon (Windows logo) in the bottom-left corner of your screen.
Type "cmd" or "Command Prompt" in the search bar.
Click on the "Command Prompt" or "cmd" program that appears in the search results.

THX

Ghofrane

Uloff.4
Associate II

Hello Ghofrane 

I have installed the Arm GNU Toolchain for Windows:
gcc-arm-none-eabi-10.3-2021.10-win32.exe
I have added the path to the environment variables (admin+user) as follows:

Uloff4_0-1728541838036.png

Now I can call the function from the cmd line (user), but when I ask for the version number nothing happens, it gives no response and stays there:

Uloff4_1-1728541965231.png

When I try to run the code in STM32CubeIDE (user) I get the same errors:

Uloff4_2-1728542124724.png

I tried then to run the command via admin cmd and got the following:

Uloff4_1-1728545970645.png

Here are the user permissions for the file:

Uloff4_0-1728545837241.png

Thank you for your help.

 

Hello @Uloff.4 

The error message you are encountering indicates an issue with IDE's ability to access or read the repository at https://download.eclipse.org/tools/cdt/releases/latest/content.xml. This problem could be due to various reasons, such as network issues.

1- Check Network Connection:
Ensure that your internet connection is stable and that there are no network issues preventing STM32CubeIDE from accessing external repositories.
2- Proxy Settings:
If you are behind a corporate firewall or using a proxy server, configure the proxy settings in STM32CubeIDE to allow it to access external repositories.

3- Firewall/Antivirus:
Check if any firewall or antivirus software on your system is blocking STM32CubeIDE from accessing external repositories. Temporarily disabling them can help identify if they are causing the issue.

4- Test with Full Path:
Try running the arm-none-eabi-gdb command with the full path to the executable to see if it provides the version information. For example, C:\path\to\arm-none-eabi-gdb.exe --version.

THX

Ghofrane

 

Hello @Ghofrane GSOURI 

When I click on the link you mentioned, it says "not found".
https://download.eclipse.org/tools/cdt/releases/latest/content.xml

Uloff4_0-1728628857196.png

I have proxy settings setup in STM32Cube IDE and I can prove they work in the settings with the check connection button:

Uloff4_1-1728629048407.png

As seen the admin account is able to use GDB, so i tried to launch STM32IDE as admin and tried to launch debug with the SEGGER J-link. Then i got the following error:

Uloff4_3-1728630829180.png

 

 

 

Hello @Uloff.4 

Could you please share your log you will find it under \STM32CubeIDE\workspace_1.16.1\.metadata

I will be waiting for your feedback 

THX

Ghofrane