From 57f9ba96e022dd2617d35b4e6e323628b300e623 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Fri, 18 Nov 2022 13:42:48 +0800 Subject: [PATCH] esp32c6: update esp32c6 magic value and spi reg offset --- esptool/targets/esp32c6.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/esptool/targets/esp32c6.py b/esptool/targets/esp32c6.py index 789f45f38..3cc9d4fdd 100644 --- a/esptool/targets/esp32c6.py +++ b/esptool/targets/esp32c6.py @@ -23,7 +23,15 @@ class ESP32C6ROM(ESP32ROM): BOOTLOADER_FLASH_OFFSET = 0x0 # Magic value for ESP32C6 - CHIP_DETECT_MAGIC_VALUE = [0x1EA0206F] + CHIP_DETECT_MAGIC_VALUE = [0x2CE0806F] + + SPI_REG_BASE = 0x60003000 + SPI_USR_OFFS = 0x18 + SPI_USR1_OFFS = 0x1C + SPI_USR2_OFFS = 0x20 + SPI_MOSI_DLEN_OFFS = 0x24 + SPI_MISO_DLEN_OFFS = 0x28 + SPI_W0_OFFS = 0x58 UART_DATE_REG_ADDR = 0x60000000 + 0x7C