Working zigbee generic, connected to network and HA

This commit is contained in:
Sam
2025-05-14 12:18:50 +10:00
parent 40691d1884
commit 5d3a5422c4
1585 changed files with 271860 additions and 3 deletions

7
build/gdbinit/connect Normal file
View 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
View File

@@ -0,0 +1,2 @@
source C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/gdbinit/symbols
source C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/gdbinit/connect

1
build/gdbinit/prefix_map Normal file
View File

@@ -0,0 +1 @@
# There is no prefix map defined for the project.

View 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
View File

@@ -0,0 +1,20 @@
# Load esp32h2 ROM ELF symbols
define target hookpost-remote
set confirm off
# if $_streq((char *) 0x4001c7dc, "Nov 1 2022")
if (*(int*) 0x4001c7dc) == 0x20766f4e && (*(int*) 0x4001c7e0) == 0x32203120 && (*(int*) 0x4001c7e4) == 0x323230
add-symbol-file C:/Users/Dell/.espressif/tools/esp-rom-elfs/20240305/esp32h2_rev0_rom.elf
else
echo Warning: Unknown esp32h2 ROM revision.\n
end
set confirm on
end
# Load bootloader symbols
set confirm off
add-symbol-file C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/bootloader/bootloader.elf
set confirm on
# Load application symbols
file C:/Users/Dell/Documents/ESP/HA_on_off_light_zigbee/build/on_off_light_bulb.elf