Initial commit: ESP32-C6 Zigbee sensor switch project
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 /media/sam/8294CD2994CD2111/Users/Dell/Documents/ESP/zigbee_sensor_switch/build/gdbinit/symbols
|
||||
source /media/sam/8294CD2994CD2111/Users/Dell/Documents/ESP/zigbee_sensor_switch/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 esp32c6 ROM ELF symbols
|
||||
define target hookpost-remote
|
||||
set confirm off
|
||||
# if $_streq((char *) 0x4004a798, "Sep 19 2022")
|
||||
if (*(int*) 0x4004a798) == 0x20706553 && (*(int*) 0x4004a79c) == 0x32203931 && (*(int*) 0x4004a7a0) == 0x323230
|
||||
add-symbol-file /home/sam/.espressif/tools/esp-rom-elfs/20241011/esp32c6_rev0_rom.elf
|
||||
else
|
||||
echo Warning: Unknown esp32c6 ROM revision.\n
|
||||
end
|
||||
set confirm on
|
||||
end
|
||||
|
||||
|
||||
# Load bootloader symbols
|
||||
set confirm off
|
||||
add-symbol-file /media/sam/8294CD2994CD2111/Users/Dell/Documents/ESP/zigbee_sensor_switch/build/bootloader/bootloader.elf
|
||||
set confirm on
|
||||
|
||||
# Load application symbols
|
||||
file /media/sam/8294CD2994CD2111/Users/Dell/Documents/ESP/zigbee_sensor_switch/build/on_off_light_bulb.elf
|
||||
Reference in New Issue
Block a user