2025-01-28 02:34 AM - last edited on 2025-01-28 03:55 AM by Peter BENSCH
Hi,
I have Grove-Wio_E5, A Lora module based on STM32WLE5JC.
I am trying to use STM32CubeIDE for debugging purposes.
However, I can not seem to make it work.
My resources are:
J Link :
Firmware: J-Link V9 compiled May 7 2021 16:26:12
Hardware version: V9.10
License(s): GDB
STM32CubeIDE:
version 1.17.0
I'm able to connect to JLink and MCU with JLink Utilities.
Here is the J Link commander's response:
But With STM32CubeIDE, I can not seem to figure out the issue.
Here is my JLink interface settings in STM32CubeIDE.
The error I get is the following:
I have been trying to resolve this for 2 days. I tried many things (As suggested by users on the internet),
> Changing Ports of GDB Server (Although my Jlink is connected via USB)
> Uninstalling/re-installing all the tools (J Link, CubeIDE, etc.)
> Tried with STM32CubeProgrammer (It never worked for me, it detects Jlink but never MCU and gives an error some database file with id 0xFFF is missing). I saw other users having the same issue so I just gave on this.
> Then I tried, the Jlink GDB server utility, and here I could see the problem,
Here J Link utilizes version are previous, I tried with latest. I reverted to the old one cause a few days ago it was working fine.
I tried changing the port numbers but of no use.
I have no idea what this GDB server is. The files are there in stm32cube folder (\C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu. external tools.jlink.win32_2.3.0.202409170845\tools\bin\JLinkGDBServerCL.exe).
I also turned off protection in my antivirus assuming this might be the problem.
Please help me with this. How do I configure it correctly? Can I install the GDB server separately but how?
Or JLink integration has problems with STM32CubeIDE. Because I'm using it perfectly fine with other EClipse-based IDEs (Silabs etc.).
(PS: the label in the post is not correct. Why does it not have STM32WLEx series, Cube IDE etc. as label)
Edit:
I have been able to connect to GDB server via JLink GDB server utility. I don't know the main reason, but uninstalling, rebooting PC, and installing again these J link utilities (and disabling antivirus, I don't know if it has any effect) did the job. But I still can not connect to GDB server in Cube IDE. The port there is the same as listed in Jlink gdb server tool.
Also, Now stm32cubeProgrammer also working with this. This is freshly installed, but now read/writing the device. Takes a little bit of time but does the jon.