Debugging using Jlink official driver

Stat_headcrabed
Posts: 8
Joined: Tue Sep 06, 2022 6:39 am

Debugging using Jlink official driver

Postby Stat_headcrabed » Tue Sep 06, 2022 6:44 am

I found that segger has just added Xtensa LX6/LX7 core support.https://www.segger.com/downloads/jlink/ ... JLink.html
So would esp32 series officially support segger tools?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Debugging using Jlink official driver

Postby ESP_Sprite » Tue Sep 06, 2022 8:45 am

Added native debug support for Cadence Xtensa LX architecture via Cadence xt-gdb client (Xtensa Xplorer IDE).
This makes it looks like the LX6/LX7 support only works with the closed-source, NDA'ed Cadence tools. Given the fact that the ESP32/ESP8266 ecosystem doesn't use this at all (we use gcc, openocd and gdb even internally) I doubt that there's any good support for our chips there.

Stat_headcrabed
Posts: 8
Joined: Tue Sep 06, 2022 6:39 am

Re: Debugging using Jlink official driver

Postby Stat_headcrabed » Tue Sep 06, 2022 6:06 pm

ESP_Sprite wrote:
Tue Sep 06, 2022 8:45 am
Added native debug support for Cadence Xtensa LX architecture via Cadence xt-gdb client (Xtensa Xplorer IDE).
This makes it looks like the LX6/LX7 support only works with the closed-source, NDA'ed Cadence tools. Given the fact that the ESP32/ESP8266 ecosystem doesn't use this at all (we use gcc, openocd and gdb even internally) I doubt that there's any good support for our chips there.
This still seems promising. As far as I know, segger 's gdb server is using standard protocol to communicate with gdb client. And using segger 's driver could avoid changing driver frequently in circumstances like debugging another chip at the same time. Could you guys write a jlink script for esp32 to test?
https://wiki.segger.com/J-Link_Xtensa_specifics

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Debugging using Jlink official driver

Postby ESP_Sprite » Wed Sep 07, 2022 12:00 am

I've asked our tool group to take a look at it. No guarantees on when/if they get around to it, though, and if we'll make something official out of it; keeping stuff compatible with multiple toolchains adds to the maintenance load.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Debugging using Jlink official driver

Postby ESP_igrr » Wed Sep 07, 2022 8:44 am

One thing to note is that some features supported in OpenOCD may be hard to support with Jlink, for example:
- Flashing over JTAG
- Breakpoints in flash
- Chip reset (not just CPU reset)
- Disabling SoC level memory protection (for esp32-s2 and esp32-s3) when debugging
It is possible to do some basic debugging without these features, but the experience will probably not be very good.
Anyway, as ESP_Sprite said, we will give it a try.

Stat_headcrabed
Posts: 8
Joined: Tue Sep 06, 2022 6:39 am

Re: Debugging using Jlink official driver

Postby Stat_headcrabed » Wed Sep 07, 2022 2:15 pm

ESP_igrr wrote:
Wed Sep 07, 2022 8:44 am
One thing to note is that some features supported in OpenOCD may be hard to support with Jlink, for example:
- Flashing over JTAG
- Breakpoints in flash
- Chip reset (not just CPU reset)
- Disabling SoC level memory protection (for esp32-s2 and esp32-s3) when debugging
It is possible to do some basic debugging without these features, but the experience will probably not be very good.
Anyway, as ESP_Sprite said, we will give it a try.
Thank you guys. Looking forward to hear more about this. Btw seems that J-Flash already have download algorithm for esp32 series. Maybe contacting segger could help?

Stat_headcrabed
Posts: 8
Joined: Tue Sep 06, 2022 6:39 am

Re: Debugging using Jlink official driver

Postby Stat_headcrabed » Fri Sep 16, 2022 4:11 pm

ESP_igrr wrote:
Wed Sep 07, 2022 8:44 am
One thing to note is that some features supported in OpenOCD may be hard to support with Jlink, for example:
- Flashing over JTAG
- Breakpoints in flash
- Chip reset (not just CPU reset)
- Disabling SoC level memory protection (for esp32-s2 and esp32-s3) when debugging
It is possible to do some basic debugging without these features, but the experience will probably not be very good.
Anyway, as ESP_Sprite said, we will give it a try.
@ESP_igrr Any news about it?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Debugging using Jlink official driver

Postby ESP_igrr » Fri Sep 16, 2022 11:10 pm

Not yet, I'm afraid. We haven't started working on this.

Darko_T
Posts: 1
Joined: Sun Oct 01, 2023 12:19 pm

Re: Debugging using Jlink official driver

Postby Darko_T » Sun Oct 01, 2023 12:32 pm

ESP_igrr wrote:
Fri Sep 16, 2022 11:10 pm
Not yet, I'm afraid. We haven't started working on this.
Hi,
Any news?
Would be nice to use Ozone & JLink on ESP32 S3 and others.

Darko

Who is online

Users browsing this forum: No registered users and 116 guests