Search found 8 matches

by Stat_headcrabed
Sat Nov 26, 2022 6:09 pm
Forum: ESP-IDF
Topic: Riscv LTO support?
Replies: 6
Views: 2427

Re: Riscv LTO support?

Unfortunately I don't yet know of a way to reliably find all the files which are affected by linker script rules. After you have built an app, you can take a look at the generated linker script, it should be located in build/esp-idf/esp_system/ld/sections.ld. This file contains numerous lines which...
by Stat_headcrabed
Fri Nov 25, 2022 9:30 am
Forum: ESP-IDF
Topic: Riscv LTO support?
Replies: 6
Views: 2427

Re: Riscv LTO support?

Is there any solution could help to find which file need to be modified? I'm sorry, I couldn't parse this sentence. Could you explain what you mean in a bit more detail? Sorry for my bad English. You said "selectively disable LTO for object files affected by linker script rules" would solve this pr...
by Stat_headcrabed
Sat Nov 19, 2022 3:19 am
Forum: ESP-IDF
Topic: Riscv LTO support?
Replies: 6
Views: 2427

Re: Riscv LTO support?

Hi Stat_headcrabed, The problem with enabling LTO support in esp-idf is not architecture-specific. It has to do with the fact that IDF uses -ffunction-sections in combination with linker script rules to place certain functions or whole object files into specific memory regions. With LTO enabled, fu...
by Stat_headcrabed
Fri Nov 18, 2022 7:11 am
Forum: ESP-IDF
Topic: Riscv LTO support?
Replies: 6
Views: 2427

Riscv LTO support?

Though Xtensa gcc doesn't work well, I heard that riscv works with LTO using clang (maybe GCC also?) enabled. So is there anyone tried compile with LTO enabled for C3/C2? Is it possible to add a switch for that in idf menuconfig?
by Stat_headcrabed
Fri Sep 16, 2022 4:11 pm
Forum: General Discussion
Topic: Debugging using Jlink official driver
Replies: 8
Views: 3981

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 bas...
by Stat_headcrabed
Wed Sep 07, 2022 2:15 pm
Forum: General Discussion
Topic: Debugging using Jlink official driver
Replies: 8
Views: 3981

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 bas...
by Stat_headcrabed
Tue Sep 06, 2022 6:06 pm
Forum: General Discussion
Topic: Debugging using Jlink official driver
Replies: 8
Views: 3981

Re: Debugging using Jlink official driver

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, op...
by Stat_headcrabed
Tue Sep 06, 2022 6:44 am
Forum: General Discussion
Topic: Debugging using Jlink official driver
Replies: 8
Views: 3981

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?