mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-02 23:08:03 +00:00
ESP32 Bootstraps
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Connect to the default openocd-esp port and stop on app_main()
|
||||
set remotetimeout 10
|
||||
target remote :3333
|
||||
monitor reset halt
|
||||
maintenance flush register-cache
|
||||
thbreak app_main
|
||||
continue
|
||||
@@ -0,0 +1,2 @@
|
||||
source /home/abobkov/MyProjects/ESP-Nodes/ESP32-Bootstraps/esp-idf/esp32-multitask/build/bootloader/gdbinit/symbols
|
||||
source /home/abobkov/MyProjects/ESP-Nodes/ESP32-Bootstraps/esp-idf/esp32-multitask/build/bootloader/gdbinit/connect
|
||||
@@ -0,0 +1 @@
|
||||
# There is no prefix map defined for the project.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Add Python GDB extensions
|
||||
python
|
||||
try:
|
||||
import freertos_gdb
|
||||
except ModuleNotFoundError:
|
||||
print('warning: python extension "freertos_gdb" not found.')
|
||||
end
|
||||
@@ -0,0 +1,25 @@
|
||||
# Load esp32 ROM ELF symbols
|
||||
define target hookpost-remote
|
||||
set confirm off
|
||||
# if $_streq((char *) 0x3ff9ea80, "Jun 8 2016")
|
||||
if (*(int*) 0x3ff9ea80) == 0x206e754a && (*(int*) 0x3ff9ea84) == 0x32203820 && (*(int*) 0x3ff9ea88) == 0x363130
|
||||
add-symbol-file /home/abobkov/.espressif/tools/esp-rom-elfs/20230320/esp32_rev0_rom.elf
|
||||
else
|
||||
# if $_streq((char *) 0x3ff9e986, "Jul 29 2019")
|
||||
if (*(int*) 0x3ff9e986) == 0x206c754a && (*(int*) 0x3ff9e98a) == 0x32203932 && (*(int*) 0x3ff9e98e) == 0x393130
|
||||
add-symbol-file /home/abobkov/.espressif/tools/esp-rom-elfs/20230320/esp32_rev300_rom.elf
|
||||
else
|
||||
echo Warning: Unknown esp32 ROM revision.\n
|
||||
end
|
||||
end
|
||||
set confirm on
|
||||
end
|
||||
|
||||
|
||||
# Load bootloader symbols
|
||||
set confirm off
|
||||
# Bootloader elf was not found
|
||||
set confirm on
|
||||
|
||||
# Load application symbols
|
||||
file /home/abobkov/MyProjects/ESP-Nodes/ESP32-Bootstraps/esp-idf/esp32-multitask/build/bootloader/bootloader.elf
|
||||
Reference in New Issue
Block a user