From 6d2e0c3eae7668cea3a30250ffc879ae0dac9bdb Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 4 May 2021 16:22:50 +0200 Subject: [PATCH] tests: gdb_loadable_elf: adjust the breakpoint location for ESP32 ECO3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous location was the return from the first ets_printf call that prints ROM sign-on message. Since the main function was patched in ECO3, the new address no longer works — there is no instruction at 0x40007901 in ECO3 ROM. This could be solved by setting two breakpoints (one would work for ECO <=2, the other for ECO3), but we would need to remove the unused breakpoint later. Fix this by setting the breakpoint at ets_printf. This means that when debugging a loadable ELF the ROM sign-on message will no longer be shown, but this doesn't seem to be an issue. --- Kconfig | 2 +- tools/test_apps/system/gdb_loadable_elf/gdbinit_esp32 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 55ef05d4f7..873a4bf7c4 100644 --- a/Kconfig +++ b/Kconfig @@ -154,7 +154,7 @@ mainmenu "Espressif IoT Development Framework Configuration" mon reset halt # Run to a specific point in ROM code, # where most of initialization is complete. - thb *0x40007901 + thb *0x40007d54 c # Load the application into RAM load diff --git a/tools/test_apps/system/gdb_loadable_elf/gdbinit_esp32 b/tools/test_apps/system/gdb_loadable_elf/gdbinit_esp32 index d6eda236fb..18a212014b 100644 --- a/tools/test_apps/system/gdb_loadable_elf/gdbinit_esp32 +++ b/tools/test_apps/system/gdb_loadable_elf/gdbinit_esp32 @@ -5,7 +5,7 @@ target remote 127.0.0.1:3333 mon reset halt # Run to a specific point in ROM code, # where most of initialization is complete. -thb *0x40007901 +thb *0x40007d54 c # Load the application into RAM load