Target debugging via JTag in EspressifIDE (on Linux) creates 100% CPU load

walkabout
Posts: 3
Joined: Mon Nov 18, 2024 8:03 am

Target debugging via JTag in EspressifIDE (on Linux) creates 100% CPU load

Postby walkabout » Tue Nov 19, 2024 10:54 am

Hi all,

I got the Jtag debugging of an ESP32-WROOM-32 module running in the EspressifIDE 3.1 on a Linux system (Kubuntu 24.04LTS). Used a Turtelizer2 for JTag.
When I start the debugging inside EspressifIDE all works as expected, means I can flash the target, and debug like a local application. However, my CPU load is going up quite high. A check with top showed that there are 4 java thread running at full speed.
Screenshot_20241119_112000.png
Screenshot_20241119_112000.png (57.17 KiB) Viewed 3559 times
When I run OpenOCD in a terminal and attach to that via the "Hardware Debuggin" in EspressifIDE things are working in the same way but the CPU utilization stays very low.
I would not mid using this way as my standard debuggin method so, however getting the connection between the gdb and OpenOCD running is a bit instable and need always several tries.
So this is also quite annoying ..

Has anyone experienced this issues before and got an idea how to overcome this??
Especially the debugging within the IDE would be the preferred way ....

ESP_kondalkolipaka
Posts: 199
Joined: Wed Jul 17, 2019 5:26 pm

Re: Target debugging via JTag in EspressifIDE (on Linux) creates 100% CPU load

Postby ESP_kondalkolipaka » Wed Dec 04, 2024 4:53 pm

Hello,

Could you check the memory settings for the Espressif-IDE? You can find them in the espressif-ide.ini file located within the Espressif-IDE folder.

Ensure that the following options are present in the -vmargs section.

Code: Select all

-Xms512m
-Xmx2048m

walkabout
Posts: 3
Joined: Mon Nov 18, 2024 8:03 am

Re: Target debugging via JTag in EspressifIDE (on Linux) creates 100% CPU load

Postby walkabout » Sun Dec 15, 2024 3:40 pm

Sorry for the late response ....

My settings are:
-startup
plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.1000.v20240506-2123
-vm
plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_17.0.12.v20240802-1518/jre/bin/java
-vmargs
-Xms4096m
-Xmx8192m
-Dosgi.requiredJavaVersion=17
-Dosgi.instance.area.default=@user.home/workspace

walkabout
Posts: 3
Joined: Mon Nov 18, 2024 8:03 am

Re: Target debugging via JTag in EspressifIDE (on Linux) creates 100% CPU load

Postby walkabout » Wed Dec 18, 2024 11:37 am

Changing the setting to your recomendation did not change the CPU load in any way ....
Any further ideas how to overcome this ??

Who is online

Users browsing this forum: No registered users and 24 guests