Flashing Wemos D1 Min and Node MCU with esptool.

31 views
Skip to first unread message

Jim Ford

unread,
Mar 17, 2025, 1:08:32 PMMar 17
to TasmotaUsers
I've flashed these devices in the past using Tasmotizer, but am having problems now. I'm using Linux with esptool from the Xubuntu repository.

I check the chip <esptool --port /dev/ttyUSB0 chip_id> and the device is detected.

I then erase the device <esptool --port /dev/ttyUSB0 erase_flash> and flash it
<esptool --port /dev/ttyUSB0 --baud 115200  write_flash 0x00000 /home/jim/Downloads/tasmota.bin>
Everything appears to  proceed OK without errors being reported, but on power cycling te devices are not detected by my router and not assigned an IP address.

I'd be grateful for some help, please.

Jim

Justin Adie

unread,
Mar 17, 2025, 2:09:44 PMMar 17
to Jim Ford, TasmotaUsers
Tasmota devices don't automatically connect to a WiFi AP unless they are told to in the config or the binary.  By default a newly flashed tasmota device will go into ap mode and wait for a connection from a client.  You then provide the WiFi details you want.

Do you hard code your WiFi credentials in the compiled binary?



--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/sonoffusers/c28263e8-016b-4fe3-8bc5-b5707542698fn%40googlegroups.com.

Jim Ford

unread,
Mar 17, 2025, 3:18:55 PMMar 17
to TasmotaUsers
Thanks  for the reply Justin.

I just flashed the 'as is' binary from the Tasmota site. I'll get up to speed on compiling a binary for my system (or can I simply patch the standard binary?.)

Jim

Justin Adie

unread,
Mar 17, 2025, 4:00:50 PMMar 17
to Jim Ford, TasmotaUsers
You can just attach to the tasmota device's WiFi.  That will pop up a dialog allowing you to provide WiFi credentials for your network.  Easier than hard coding.

The web installer also has a function to allow you to do this for esp82xx from memory



Jim Ford

unread,
Mar 18, 2025, 8:13:22 AMMar 18
to TasmotaUsers
Many thanks again Justin.
Accessing it as an access point worked fine.

As I mentioned in my initial post, I've used the Tasmotize GUI in the past but am now find it unusable - both with the stand alone app and the web installer. Neither of them find the port, though esptool has no problems.

Jim

Justin Adie

unread,
Mar 18, 2025, 8:28:51 AMMar 18
to Jim Ford, TasmotaUsers
I wonder whether there is something in your browser security settings preventing port access?  I did some early development on the grbl software chilipepper and recall that back then some settings deep inside Firefox and chrome needed changing to allow serial port access.  I thought that was all default nowadays. 

Anyway, glad you're up and running!

Justin


Reply all
Reply to author
Forward
0 new messages