We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a2047 commit 8bc2c50Copy full SHA for 8bc2c50
esptool/targets/esp32c3.py
@@ -73,7 +73,16 @@ class ESP32C3ROM(ESP32ROM):
73
74
FLASH_ENCRYPTED_WRITE_ALIGN = 16
75
76
- UARTDEV_BUF_NO = 0x3FCDF07C # Variable in ROM .bss which indicates the port in use
+ # Variable in ROM .bss which indicates the port in use
77
+ @property
78
+ def UARTDEV_BUF_NO(self):
79
+ """Variable .bss.UartDev.buff_uart_no in ROM .bss
80
+ which indicates the port in use.
81
+ """
82
+ BUF_UART_NO_OFFSET = 24
83
+ BSS_UART_DEV_ADDR = 0x3FCDF064 if self.get_chip_revision() < 101 else 0x3FCDF060
84
+ return BSS_UART_DEV_ADDR + BUF_UART_NO_OFFSET
85
+
86
UARTDEV_BUF_NO_USB_JTAG_SERIAL = 3 # The above var when USB-JTAG/Serial is used
87
88
RTCCNTL_BASE_REG = 0x60008000
0 commit comments