initial commmit
This commit is contained in:
7
build/gdbinit/connect
Normal file
7
build/gdbinit/connect
Normal file
@@ -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
|
||||
2
build/gdbinit/gdbinit
Normal file
2
build/gdbinit/gdbinit
Normal file
@@ -0,0 +1,2 @@
|
||||
source C:/Users/Dell/Documents/ESP/Keyboard_lights_2/build/gdbinit/symbols
|
||||
source C:/Users/Dell/Documents/ESP/Keyboard_lights_2/build/gdbinit/connect
|
||||
1
build/gdbinit/prefix_map
Normal file
1
build/gdbinit/prefix_map
Normal file
@@ -0,0 +1 @@
|
||||
# There is no prefix map defined for the project.
|
||||
7
build/gdbinit/py_extensions
Normal file
7
build/gdbinit/py_extensions
Normal file
@@ -0,0 +1,7 @@
|
||||
# Add Python GDB extensions
|
||||
python
|
||||
try:
|
||||
import freertos_gdb
|
||||
except ModuleNotFoundError:
|
||||
print('warning: python extension "freertos_gdb" not found.')
|
||||
end
|
||||
20
build/gdbinit/symbols
Normal file
20
build/gdbinit/symbols
Normal file
@@ -0,0 +1,20 @@
|
||||
# Load esp32s3 ROM ELF symbols
|
||||
define target hookpost-remote
|
||||
set confirm off
|
||||
# if $_streq((char *) 0x3ff194ad, "Mar 1 2021")
|
||||
if (*(int*) 0x3ff194ad) == 0x2072614d && (*(int*) 0x3ff194b1) == 0x32203120 && (*(int*) 0x3ff194b5) == 0x313230
|
||||
add-symbol-file C:/Users/Dell/.espressif/tools/esp-rom-elfs/20240305/esp32s3_rev0_rom.elf
|
||||
else
|
||||
echo Warning: Unknown esp32s3 ROM revision.\n
|
||||
end
|
||||
set confirm on
|
||||
end
|
||||
|
||||
|
||||
# Load bootloader symbols
|
||||
set confirm off
|
||||
add-symbol-file C:/Users/Dell/Documents/ESP/Keyboard_lights_2/build/bootloader/bootloader.elf
|
||||
set confirm on
|
||||
|
||||
# Load application symbols
|
||||
file C:/Users/Dell/Documents/ESP/Keyboard_lights_2/build/Keyboard_lights_2.elf
|
||||
Reference in New Issue
Block a user