Debugging using Jlink official driver
-
- Posts: 8
- Joined: Tue Sep 06, 2022 6:39 am
Debugging using Jlink official driver
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?
So would esp32 series officially support segger tools?
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Debugging using Jlink official driver
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.Added native debug support for Cadence Xtensa LX architecture via Cadence xt-gdb client (Xtensa Xplorer IDE).
-
- Posts: 8
- Joined: Tue Sep 06, 2022 6:39 am
Re: Debugging using Jlink official driver
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?ESP_Sprite wrote: ↑Tue Sep 06, 2022 8:45 amThis 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.Added native debug support for Cadence Xtensa LX architecture via Cadence xt-gdb client (Xtensa Xplorer IDE).
https://wiki.segger.com/J-Link_Xtensa_specifics
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Debugging using Jlink official driver
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.
Re: Debugging using Jlink official driver
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.
- 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.
-
- Posts: 8
- Joined: Tue Sep 06, 2022 6:39 am
Re: Debugging using Jlink official driver
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?ESP_igrr wrote: ↑Wed Sep 07, 2022 8:44 amOne 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.
-
- Posts: 8
- Joined: Tue Sep 06, 2022 6:39 am
Re: Debugging using Jlink official driver
@ESP_igrr Any news about it?ESP_igrr wrote: ↑Wed Sep 07, 2022 8:44 amOne 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.
Re: Debugging using Jlink official driver
Not yet, I'm afraid. We haven't started working on this.
Who is online
Users browsing this forum: Baidu [Spider], ESP_adokitkat and 155 guests