Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.26k stars 109 forks source link

[FEATURE REQUEST] Please unveil correct paramters to flash FW via esptool.py #303

Closed Grothesk242 closed 1 year ago

Grothesk242 commented 1 year ago

I tried to flash my clock using this command but the flash failed:

esptool --port /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 --chip esp32 --no-stub --before default_reset --after hard_reset write_flash --flash_mode dout --flash_freq 40m --flash_size detect 0x0 ulanzi_TC001_0.84.bin

Can you please tell what parameters need to be adjusted? Thx!

Blueforcer commented 1 year ago

esptool.py" --chip esp32 --port "COM7" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 ulanzi_TC001_0.84.bin

Its easier to use the webflasher. https://blueforcer.github.io/awtrix-light/#/flasher

Grothesk242 commented 1 year ago

Thx! Will try it. The webflasher is not working for me, Datatransfer via USB is not permitted by my companies security policy. So I have to switch to a headless machine that I have access to.

zzarne commented 1 year ago

May be unrelated, but I could't use the webflasher when the original firmware was installed. Device was detected fine but it always timed out before writing anything. esptool from Ubuntu didn't work either. pip(3) install esptool and then using esptool.py did something - I didn't know the correct way so i softbricked it. But it was erased and from then on, the webflasher worked fine. If I'm not the only one affected by this, maybe this should go in a FAQ.

Grothesk242 commented 1 year ago

Just one more thing: Where to get the bootloader.bin partitions.bin boot_app0.bin files? :-)

Blueforcer commented 1 year ago

https://github.com/Blueforcer/awtrix-light/tree/main/docs/ulanzi_flasher/firmware

Grothesk242 commented 1 year ago

Thx! Worked like a charm. I only had to add --no-stub option because my Debian is missing the stubs.