🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    MicroPython on M5Stamp-C3

    Micropython
    4
    4
    6.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mlindholm
      last edited by

      No idea why the ESP32-C3 needed to be written starting at 0x0, rather than 0x1000, but sure enough it did. I couldn't figure out why nothing could seem to be written successfully to my STAMP-C3, but basically nothing was working. Now, thanks to a blog post I found, it's successfully running the generic ESP32-C3 MicroPython binary.

      Successful esptool.py commands:

      esptool.py -p COMx -b 1500000 --before default_reset erase_flash
      esptool.py -p COMx -b 1500000 --before default_reset write_flash -z 0x0 esp32c3-20210902-v1.17.bin

      Result on REPL:

      ESP-ROM:esp32c3-api1-20210207
      Build:Feb 7 2021
      rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
      SPIWP:0xee
      mode:DIO, clock div:1
      load:0x3fcd6100,len:0x121c
      load:0x403ce000,len:0x744
      load:0x403d0000,len:0x26c4
      entry 0x403ce000
      MicroPython v1.17 on 2021-09-02; ESP32C3 module with ESP32C3
      Type "help()" for more information.

      B 1 Reply Last reply Reply Quote 1
      • felmueF
        felmue
        last edited by felmue

        Hello @mlindholm

        thank you for sharing. The bootloader address is different between ESP32 and ESP32c3.

        • ESP32: Bootloader is located at the address 0x1000 in the flash. See here.
        • ESP32c3: Bootloader is located at the address 0x0 in the flash. See here.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          The difference is because the C3 uses a RISC V core and not an esp32 core.

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • B
            benalb @mlindholm
            last edited by

            @mlindholm would you share the link to that blog post?. Thanks.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post