Add ESP32-C3 SPI slave with ESP-NOW, Raspberry Pi test tools, and updated project structure
- ESP32-C3 SPI slave project with ESP-NOW broadcast functionality - Raspberry Pi SPI master test tools and CLI for JSON communication - Merged src/ directory from full branch with lighting controller code - Updated Pipfile with system install scripts and ESP32 monitoring - Added comprehensive test suite for SPI communication
This commit is contained in:
7
esp32/build/gdbinit/connect
Normal file
7
esp32/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
esp32/build/gdbinit/gdbinit
Normal file
2
esp32/build/gdbinit/gdbinit
Normal file
@@ -0,0 +1,2 @@
|
||||
source /home/pi/lighting-controller/esp32/build/gdbinit/symbols
|
||||
source /home/pi/lighting-controller/esp32/build/gdbinit/connect
|
1
esp32/build/gdbinit/prefix_map
Normal file
1
esp32/build/gdbinit/prefix_map
Normal file
@@ -0,0 +1 @@
|
||||
# There is no prefix map defined for the project.
|
7
esp32/build/gdbinit/py_extensions
Normal file
7
esp32/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
|
30
esp32/build/gdbinit/symbols
Normal file
30
esp32/build/gdbinit/symbols
Normal file
@@ -0,0 +1,30 @@
|
||||
# Load esp32c3 ROM ELF symbols
|
||||
define target hookpost-remote
|
||||
set confirm off
|
||||
# if $_streq((char *) 0x3ff1b878, "Sep 18 2020")
|
||||
if (*(int*) 0x3ff1b878) == 0x20706553 && (*(int*) 0x3ff1b87c) == 0x32203831 && (*(int*) 0x3ff1b880) == 0x303230
|
||||
add-symbol-file /home/pi/.espressif/tools/esp-rom-elfs/20241011/esp32c3_rev0_rom.elf
|
||||
else
|
||||
# if $_streq((char *) 0x3ff1a374, "Feb 7 2021")
|
||||
if (*(int*) 0x3ff1a374) == 0x20626546 && (*(int*) 0x3ff1a378) == 0x32203720 && (*(int*) 0x3ff1a37c) == 0x313230
|
||||
add-symbol-file /home/pi/.espressif/tools/esp-rom-elfs/20241011/esp32c3_rev3_rom.elf
|
||||
else
|
||||
# if $_streq((char *) 0x3ff1a3dc, "Mar 1 2023")
|
||||
if (*(int*) 0x3ff1a3dc) == 0x2072614d && (*(int*) 0x3ff1a3e0) == 0x32203120 && (*(int*) 0x3ff1a3e4) == 0x333230
|
||||
add-symbol-file /home/pi/.espressif/tools/esp-rom-elfs/20241011/esp32c3_rev101_rom.elf
|
||||
else
|
||||
echo Warning: Unknown esp32c3 ROM revision.\n
|
||||
end
|
||||
end
|
||||
end
|
||||
set confirm on
|
||||
end
|
||||
|
||||
|
||||
# Load bootloader symbols
|
||||
set confirm off
|
||||
add-symbol-file /home/pi/lighting-controller/esp32/build/bootloader/bootloader.elf
|
||||
set confirm on
|
||||
|
||||
# Load application symbols
|
||||
file /home/pi/lighting-controller/esp32/build/spi_slave.elf
|
Reference in New Issue
Block a user