0

So I recently bought two Xiao ESP32-C6 from SeeedStudio; they work with Arduino code out of the box. Now I want to flash the CircuitPython bootloader from herehttps://circuitpython.org/board/espressif_esp32c6_devkitm_1_n4/ to see if it works.

The "canonical" way of entering the ESP32 in flashing mode (at least the ESP32-S2 I own) to change its bootloader is to press and hold the BOOT and then press RESET. This procedure does not work in the Xiao ESP32-C6, the board just resets (I was expecting Windows to show it as a mass storage device). How to make it work?

jsotola's user avatar
jsotola
1,5532 gold badges13 silver badges22 bronze badges
askedJul 16, 2024 at 13:58
Clóvis Fritzen's user avatar

1 Answer1

1

EDIT: as of today (08/22/2024) there is official support from Adafruit for Xiao ESP32-C6 CircuitPython:https://circuitpython.org/board/seeed_xiao_esp32c6/ .

I made it work, flashed the CircuitPython firmware to the ESP32-C6. Turns out you have to use the "Flash download tool" from Espressifhttps://www.esp32.com/viewtopic.php?t=60&start=20 . I downloaded the bin file for the "ESP32-C6-DevKitC-1-N8" from herehttps://circuitpython.org/board/espressif_esp32c6_devkitc_1_n8/ , which I do not know to be exactly compatible with the Xiao ESP32-C6, have not tested it fully.

Tools like the "Web serial ESPtool" did not work for mehttps://learn.adafruit.com/circuitpython-with-esp32-quick-start/web-serial-esptool

Tested my flashing with the LED blink in Thonny IDE:

# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries# SPDX-License-Identifier: MIT"""CircuitPython CPU temperature example in Celsius"""import timeimport microcontrollerimport boardimport digitalioled = digitalio.DigitalInOut(board.IO18)led.direction = digitalio.Direction.OUTPUTwhile True:    print(microcontroller.cpu.temperature)    print("On!")    led.value = True    time.sleep(0.5)      print("Off!")    led.value = False    time.sleep(0.5)

Here I document my experience:https://fritzenlab.net/2024/07/16/using-the-esp32-c6-with-circuitpython-flashing-the-bin-file/

answeredJul 17, 2024 at 1:06
Clóvis Fritzen's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.