Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programming the Wemos S2 Mini with Tasmota: An Easy Guide for ESP32-S2 Devices | Dialedin #5

Open
utterances-bot opened this issue Jul 24, 2024 · 1 comment

Comments

@utterances-bot
Copy link

Programming the Wemos S2 Mini with Tasmota: An Easy Guide for ESP32-S2 Devices | Dialedin

Get the most out of your Wemos S2 mini by programming it with Tasmota. This ESP32-S2 based device features native USB support and delivers powerful microcontroller capabilities in a compact form factor that's compatible with the D1 mini. With this guide, you'll learn how to program your device without the need for any special hardware, making the process simple and straightforward.

https://dialedin.com.au/blog/wemos-s2-mini-usb-programming

Copy link

dkebler commented Jul 24, 2024

for those finding this blog post the steps to put in programming mode do not work as web install resets the esp which takes it out of programming

I use esptool

see here arendst/Tasmota#19975 (comment)

and with tasmota32s2.factory.bin

this is the script I use. Hold programming down until you see ....

port=$(./port) 
type=$([[ $1 ]] && echo -${1})  
bin=./tasmota32s2$type.factory.bin    
[[ ! $port ]] && echo esp not connected no available tty port && exit
echo flashing $bin to $port
esptool.py  \
         --port $port         \
         --before no_reset               \
         --after hard_reset  \
         --baud 115200                \
         --chip esp32s2                \
         write_flash 0 $bin   

port

for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do
    (
        syspath="${sysdevpath%/dev}"
        devname="$(udevadm info -q name -p $syspath)"
        [[ "$devname" == "bus/"* ]] && exit
        eval "$(udevadm info -q property --export -p $syspath)"
        [[ -z "$ID_SERIAL" ]] && exit
        [[ "$devname" == "tty"* ]] && echo "/dev/$devname"
    )
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants