Skip to content

Instantly share code, notes, and snippets.

@Reiss-Cashmore
Created February 5, 2023 01:06
Show Gist options
  • Save Reiss-Cashmore/b8cca1cda1f85ef51d0aca238650bfea to your computer and use it in GitHub Desktop.
Save Reiss-Cashmore/b8cca1cda1f85ef51d0aca238650bfea to your computer and use it in GitHub Desktop.
Adafruit Feather Micropython on Mac OS

Trying to install Micropython on an Adafruit ESP32 Based Feather on Macos / OSX ?

Hitting the following error using esptool.py? :

esptool.py --chip esp32 --port /dev/tty.usbmodem54B00098311 erase_flash
esptool.py v4.4
Serial port /dev/tty.usbmodem54B00098311
Connecting.....
Chip is ESP32-PICO-V3-02 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Embedded PSRAM, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e8:9f:6d:22:02:b8
Uploading stub...

A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out)

The problem is USB driver support for this chipset. The USB Modem is not the type of device we want to be able to flash the firmware

Install the following driver (At your own risk, it is produced by a chinese company with no source provided)

https://github.com/WCHSoftGroup/ch34xser_macos

Hooray you can now flash your device Instead of seeing: /dev/tty.usbmodem54B00098311

You should now see: /dev/tty.wchusbserial0000XXXXYYYZZ1111

Use that and all should be well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment