Skip to content

Commit 57f9ba9

Browse files
esp-wzhradimkarnis
authored andcommitted
esp32c6: update esp32c6 magic value and spi reg offset
1 parent 09e41df commit 57f9ba9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

esptool/targets/esp32c6.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ class ESP32C6ROM(ESP32ROM):
2323
BOOTLOADER_FLASH_OFFSET = 0x0
2424

2525
# Magic value for ESP32C6
26-
CHIP_DETECT_MAGIC_VALUE = [0x1EA0206F]
26+
CHIP_DETECT_MAGIC_VALUE = [0x2CE0806F]
27+
28+
SPI_REG_BASE = 0x60003000
29+
SPI_USR_OFFS = 0x18
30+
SPI_USR1_OFFS = 0x1C
31+
SPI_USR2_OFFS = 0x20
32+
SPI_MOSI_DLEN_OFFS = 0x24
33+
SPI_MISO_DLEN_OFFS = 0x28
34+
SPI_W0_OFFS = 0x58
2735

2836
UART_DATE_REG_ADDR = 0x60000000 + 0x7C
2937

0 commit comments

Comments
 (0)