Skip to content

Commit

Permalink
fix(esp32h2beta2): Flasher stub
Browse files Browse the repository at this point in the history
  • Loading branch information
radimkarnis committed Jun 23, 2022
1 parent 6488ebb commit 65f8614
Show file tree
Hide file tree
Showing 6 changed files with 1,584 additions and 778 deletions.
63 changes: 32 additions & 31 deletions esptool/stub_flasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,37 +346,38 @@
tkhMuNJcTK8+zQf7/V4RButyWuq7oQBVcKZtGe7OYmyWOJPM/gf0hhEn\
""")))
ESP32H2BETA2StubCode = eval(zlib.decompress(base64.b64decode(b"""
eNrNWmtb20YW/isECLTZ24yt26QbsFMbY0iyaTcpSx/TVhpJbLotz0JMQ3br/77znoskG+zk434w2KPRmTNn3vOei/Tf/Xl1N99/ulXsz+6Mnd3Z8CnS8B0f89PJ7M5n4Vt/dpe72V1Go3thMH8V/iTfhj9RGErC\
/2o7/PFyd0R3z+7q8jwlGYfhj3kR5PfnYTQ6nN3M7ioTvvYGxWgnSM92WYGiN53dlb3R8+l2uNHEeVi1Fz5hbpYNwp/+bH92BfEQdhskxOFHzbNcugijYfEqKGxd+FKHKz5oXtTpbJ+U+v00zCvD/ILvres0XXNB\
lx6yXWib4VOWKW2T5UH5RAzWaywXPsFuLnx8H/+/Xogu2Rn2OIDy43YdE/5nbsgmeHhRd7iQpXmFQUcHXan9bf3XsD5LD+vdF43jitIRzBMOx/VZbjjOcEDOn+rKOOxwUx5u9vVFatmcts+HzNNtdhwWKSdBth0F\
CJThzkrNEI1wDafHqxQRH5ExL7FufAhlR13DWZbvsD6NBZFp2EaV8ARCWMKYwG/nGEs6zkLUFq/5CLAk/hfpXmOy53Qow6C3syzCxBNMxXZywAm6McaxSFaJnIxsuh125nqjJdOKaXQrHrYchr82gKqKeTSzbJ4M\
iznIt4/gAUCSYSxgWu3ODjCpFR208+yEat3MHWEkmLeUkbo844OHNWBvm4pI2+pWGPiftyKsz1CDfnUFoRN1mg4wwi3YRyIeZwRztp2iO65tuzrOo6TVSDFa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mHdwivSP0HeitnU6SeUHUx49wp\
wg4dXqRWcJnlNKNU4WU8VFX5cYTwz8lUzwRHparx1QWbD9HOlHaZx+aJ6mwVWFXmn1T0L5+0ivw71+flSECsknN8CH15hsqCe567Iyrsv1zPQGu+lZcnQiHX9lo02fueiFVHZrwOdx8svYuFQPr46lsuUkaRhE6k\
y23Jni/YmGt5o0mNu+bCfFdwhXKCRA5ji9hjvFm2D+N+SrO3aubbfYa/2t9cb6jKgbJoCyBthfnqOPV+Ug7//CbI73qQq0aU8ysRazp18sZOtyfnP/okZf4o7APBs8Xx5Dmhu558pHEFkx3KCwYdZ2Hnhw/QmbzL\
LDLLX0MLm5PBobyywrZUZn9KbSoArq0kq59EABiRfJXQDUykHJzQ5nclv4DpeI0dlKcNOdbTfpFD1YMTxAg6+qSyTc9XMjmXNr33LXwMWYR78qoCvXlCGFNxeGpzafirpvDbDKR14tQ1JeegsEJwQS1XPTgo4iGP\
KRbxZNlBKV4PpKpXlNMn16Xo+XWfW2GjK+38bf6JVU8JeEu2QaGoXLs05id/yT2wRe3mp9J+orL4efcCxvriUYgAdf5q5zUC2mvYzr9w+3GH+j1/8ugpbj+dznpNeyJodr/aoPc5f/wwq87xVqc1RZFaW6Ym3GnP\
ZuefFoNJMijDYFPNKn39ExYVPGlXhvtUjM1TZ9L5/wAWyAcZ\
""")))
ESP32C2StubCode = eval(zlib.decompress(base64.b64decode(b"""
eNq1Wmt7E8cV/iuObXBC8/SZ0V4HgpFARrbBFFKCCxVNdmd2XUhwYyMH00b/vfOei3YlWyb90A+WpdmZM2fO5T2X2f/szJrL2c7djXpnemns9NLGv7qI3/FnfjqcXvoyfkuml5WbXpY0ejsOVs/iR/59/EjjUB7/\
Expand Down
10 changes: 10 additions & 0 deletions esptool/targets/esp32h2beta2.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ class ESP32H2BETA2ROM(ESP32H2BETA1ROM):

STUB_CODE = ESP32H2BETA2StubCode

CHIP_DETECT_MAGIC_VALUE = [0x6881B06F]

def get_chip_description(self):
chip_name = {
1: "ESP32-H2(beta2)",
}.get(self.get_pkg_version(), "unknown ESP32-H2")
chip_revision = self.get_chip_revision()

return "{} (revision {})".format(chip_name, chip_revision)


class ESP32H2BETA2StubLoader(ESP32H2BETA2ROM):
"""Access class for ESP32H2BETA2 stub loader, runs on top of ROM.
Expand Down
2 changes: 1 addition & 1 deletion flasher_stub/include/stub_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ esp_rom_spiflash_result_t SPIRead4B(int spi_num, SpiFlashRdMode mode, uint32_t f
#endif // ESP32S3

/* Get security info command only on ESP32S2 and later */
#if ESP32S2_OR_LATER && !ESP32H2BETA2 // TODO: ESPTOOL-350
#if ESP32S2_OR_LATER
esp_command_error handle_get_security_info(void);
#endif // ESP32S2_OR_LATER
Loading

0 comments on commit 65f8614

Please sign in to comment.