File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,10 @@ jobs:
168168 elif [[ "${{ matrix.board }}" == *"esp32s2"* ]]; then
169169 CHIP_FAMILY="ESP32-S2"
170170 BOOTLOADER_OFFSET=4096 # 0x1000
171+ elif [[ "${{ matrix.board }}" == *"esp32c5"* ]] || [[ "${{ matrix.board }}" == *"XIAO_ESP32C5"* ]]; then
172+ # ESP32-C5 uses 0x2000 for bootloader | ESP32-C5 的 bootloader 偏移为 0x2000
173+ CHIP_FAMILY="ESP32-C5"
174+ BOOTLOADER_OFFSET=8192 # 0x2000
171175 elif [[ "${{ matrix.board }}" == *"esp32c3"* ]]; then
172176 CHIP_FAMILY="ESP32-C3"
173177 BOOTLOADER_OFFSET=0
Original file line number Diff line number Diff line change @@ -156,7 +156,10 @@ build_firmware() {
156156 local bootloader_offset=0
157157 case " $chip_family " in
158158 " ESP32" |" ESP32-S2" )
159- bootloader_offset=4096
159+ bootloader_offset=4096 # 0x1000
160+ ;;
161+ " ESP32-C5" )
162+ bootloader_offset=8192 # 0x2000 - ESP32-C5 specific
160163 ;;
161164 * )
162165 bootloader_offset=0
Original file line number Diff line number Diff line change 4747 "boot_app0" : 0xe000 ,
4848 "firmware" : 0x10000
4949 },
50+ "ESP32-C5" : {
51+ "bootloader" : 0x2000 , # ESP32-C5 uses 0x2000 | ESP32-C5 使用 0x2000
52+ "partitions" : 0x8000 ,
53+ "boot_app0" : 0xe000 ,
54+ "firmware" : 0x10000
55+ },
5056 "ESP32-C6" : {
5157 "bootloader" : 0x0 ,
5258 "partitions" : 0x8000 ,
You can’t perform that action at this time.
0 commit comments