Skip to content

Commit

Permalink
esptool: Fix Makefile for ESP32C3
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKondrashov committed Oct 6, 2020
1 parent 3bba49f commit 104dc5d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
64 changes: 32 additions & 32 deletions esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ class ESP32C3ROM(ESP32ROM):

UART_DATE_REG_ADDR = 0x60000000 + 0x7c

EFUSE_BASE = 0x3f408800
EFUSE_BASE = 0x60008800
MAC_EFUSE_REG = EFUSE_BASE + 0x044

GPIO_STRAP_REG = 0x3f404038
Expand Down Expand Up @@ -3923,37 +3923,37 @@ def __call__(self, parser, namespace, values, option_string=None):
D+rFjfPb+PALWRe9NRLCLWR5tGbUnQPv+19OEWs4+0s+Wdl2RlzLL7pka3nv08iz0pfV/rMR/qDwp99XZgk/K1RxUaRFGReJe9PcrpYfZFDHY5W7wdqszOD3h9Z8tc9vQkJxUpTjMvn0P3ZbiIQ=\
""")))
ESP32C3ROM.STUB_CODE = eval(zlib.decompress(base64.b64decode(b"""
eNrFWml32zYW/SteUrtNlwNQIgmmE1tKZMtLnElz2vokZdqQIJkmk3omjjJ1m+q/D+57DwIoW3LmzIf5IFsCsbz1vgX8uDtrr2a79zbq3fJK6fJKu0+du+/4qJcn5ZU17tugvKqK8srQ6I4brB67P9lT92fohjL3\
v91yf6ysHtLq8qprnuV/uvFi3/1Rj9z+g5kbxeOuvCyvWuV+JaN6su0OMHeYhjo5Lq+aZPLgeMudr9LKHZy4j5trzMj9GZS77kFdYbsPboOUtqNJRT53o27/1pGsC/el63C+m97l5S6R9depm9e4+TWv7bo8X/HA\
nzxmyRCj7tM0OTHK+4H2TESWLGTnPk5yhfvYAf4/nAst5hwsjkD8QThHuf+mGLMEbj602J/L0XzCKKLBnxR+a/sQ8ufd3Xm9rb2ySWf5RDRUDGTrYem0VNhTr1rSONnCY6aldqttfpZvun+O8EbnYEcUT6u1O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YSZHlJm8ozcHdtkDSP1USVYr4d4Q\
GFqpo1lUCwqQP3YXkSpChl3/kmx2zu0HSmXgpO17zkhp70T3ztOuc6Bqu5+T4SXlLatXlSL/1vUJmUnMKuW6G0JfXaGC4Bh6MKJC9sttp+Nz8acgnVBjNL0CIXnbE64qyIw3YtZs5UUlINRZdzvefzHDkmAupGlr\
B1KpwYz1PRQ1a309hCnh4BrJRWbWNdHuEelpHwuONvNuzLFUDv7+TJk1/bPcO1teyIPfsiZyqy9J/KbXn2o1KRv5lqYUu2LeHnF7bWlvFI/w6lTYcM5tOG6Uh0xMu/hxd4JJTuQWvuUs5vrkazTlDqUjJ+bqYa7p\
7nRwIi90sAkFEy2kmyCJn7ZMrH4igV8krptkWRqAzuCCBHAgIRtW4zVcIEBTulQLz9RkHVwgQlAgpXJDLwsSKXhN78UEoYsuBmq8MqAQTi9pELo4BuYmlVY2M/8vWKR0CZy6Y8IBUuLzQmJjJJcsGUtHz2bUX/FL\
PK8RuZHXo/Qxszm+g6cnd71tc6qYb/S6J3L1HkvSQ2hnOBKVZisVw8PP9JHcaNETS1hDvyN9uY+WdIpCAG2RNp21aEqnp8dw/PRsHwVo+pz6Xbhme9X0X9qiz8Efd+iFx5/fLcprvPZoTZbF1uaxCTPNfHH9cTkY\
RXEaButyUer7kbCr4FMHMtzfxdg0dia+/R/imbus\
""")))


Expand Down
2 changes: 1 addition & 1 deletion flasher_stub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ CFLAGS = -std=c99 -Wall -Werror -Os \
-mtext-section-literals -mlongcalls -nostdlib -fno-builtin -flto \
-Wl,-static -g -ffunction-sections -Wl,--gc-sections -Iinclude -Lld
CFLAGS_ESP32C3 = -std=c99 -Wall -Werror -Os \
-march=rv32imc \
-march=rv32imc -msmall-data-limit=0 \
-nostdlib -fno-builtin -flto \
-Wl,-static -g -ffunction-sections -Wl,--gc-sections -Iinclude -Lld
LDLIBS = -lgcc
Expand Down
4 changes: 4 additions & 0 deletions flasher_stub/stub_write_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ static void spi_write_enable(void)
}

#if ESP32_OR_LATER
#ifdef ESP32C3
static esp_rom_spiflash_chip_t *flashchip = (esp_rom_spiflash_chip_t *)0x3fcdfff4;
#else
static esp_rom_spiflash_chip_t *flashchip = (esp_rom_spiflash_chip_t *)0x3ffae270;
#endif

/* Stub version of SPIUnlock() that replaces version in ROM.
Expand Down

0 comments on commit 104dc5d

Please sign in to comment.