@ajb2k3 I found a script in
M5Burner-MacOScan/firmwares/UIFlow-v1.2.3/UIFlow-Firmware-1.2.3/firmware_StickC/flash.sh
I had to edit it in several places.
-
my M5Stick-C uses a different USB-serial chip? it shows up as /dev/tty.usbserial-9952009445 instead of /dev/tty.SLAB_USBtoUART.
-
The script didn't have the same filenames as the binaries in the directory, so I appended the addresses in the last line.
There is a copy of esptool.py in the tools folder.
Hope this helps any other MacOS users that cannot get their M5Burner.app to work...
cheers
-chris
Here is my version of flash.sh bash script:
#!/bin/bash
machine=""
port=""
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=MacOS;;
CYGWIN*) machine=Win;;
MINGW*) machine=Win;;
*) machine=UNKNOWN
esac
echo ${machine}
if [ "${machine}" == "Linux" ]; then
echo "linux"
port="ttyUSB0"
fi
if [ "${machine}" == "MacOS" ]; then
echo "MacOS"
#port="tty.SLAB_USBtoUART"
port="tty.usbserial-9952009445"
fi
echo ${port}
esptool.py --chip esp32 --port /dev/${port} --baud 750000 --before default_reset --after no_reset write_flash -z
--flash_mode dio --flash_freq 80m --flash_size detect
0x1000 bootloader_0x1000.bin
0xf000 phy_init_data_0xf000.bin
0x10000 MicroPython_0x10000.bin
0x8000 partitions_mpy_0x8000.bin
0x170000 spiffs_image_0x170000.img