Got d1-mini clones and not able to flash them #6441
Replies: 1 comment
-
Posted at 2020-03-28 by @MaBecker Hi, Well this is all about Check this page https://github.com/espressif/esptool/wiki/SPI-Flash-Modes and try to lower the --flash_freq to 40m Try the 4MB file. Posted at 2020-03-28 by opichals @MaBecker I have tried all three of them to no change in behavior. See the outputs I posted above, they prove the different SPI Modes. Can you think of anything else? Is there anything to be learned from the rst cause? Posted at 2020-03-28 by opichals DOUT @ 40MHz
Posted at 2020-03-28 by @MaBecker
Hmm, is this a 2MB board? Try to flash a esp8266 firmware. Posted at 2020-03-28 by opichals Combined 4MB firmware, @ 80MHz (no change for 40MHz).
Posted at 2020-03-28 by opichals
From the output above I believe it is 4MB:
Tried 1MB and 2MB. Still the same issue. Posted at 2020-03-29 by opichals
Here using qio (dio, dout make no difference).
Posted at 2020-03-29 by @MaBecker Wow, what a unfriendly clone! Do you another untouched board? If yes connect via serial and press reset to figure out how it was flashed.
Use this information to tame it . Start with erase_flash and than with write_flash. Posted at 2020-03-29 by @MaBecker set terminal to 74880-8-N-1 and you get something like this (ESP01S with 1MB flash) Attachments: Posted at 2020-03-29 by opichals Untouched board experiments. Connecting to the 76800-8-N-1 i get (raw mode). I don't get any SPI Mode nor info etc.
Connecting to via 9600-8-N-1 I get functional interactive NodeMCU lua firmware (see below).
Posted at 2020-03-29 by opichals perhaps interesting to share that I get the following in the IDE using WebSerial @115200. But gets stuck with Serial connected. Receiving data.... Flashed with DIO.
From the cmd line
And when on 115200 it just gives garbage and sometimes the /dev/tty.wchusbserialfd12240 disappears for a while. Sometimes till I unplug/plug again. Posted at 2020-03-29 by @MaBecker #11, what happens when you press reset, I had to press a couple of times until I got the info Posted at 2020-03-29 by @MaBecker
Any info about flash setting for NodeMCU? Posted at 2020-03-29 by @MaBecker
try 74880 Posted at 2020-03-29 by opichals
The 'SerialTools.app' I used didn't have that baud selection. When using this
Posted at 2020-03-29 by @MaBecker It’s the garbage you have to make visible. On Mac OS X I use CoolTerm. Posted at 2020-03-29 by @MaBecker Wow, check the baud rate https://nodemcu.readthedocs.io/en/master/flash/ and flasher source code Posted at 2020-03-29 by opichals The following makes it work
As I suspected in the http://forum.espruino.com/comments/15179132 it meant that the firmware was actually fine. Just connecting to it has to have the So the following allows me to connect:
Thanks for all your hints @MaBecker Posted at 2020-03-29 by opichals This separate files doesn't seem to work properly in my case. Both with previous flash erasure. What could be the reasons for that?
Both of the flash command lines result in (when connecting on 74880-8-N-1)
Posted at 2020-03-29 by @MaBecker Great job, thanks for sharing the solution! Can you please share the link where you got those boards from. Posted at 2020-03-29 by opichals It is still not usable completely... I get less garbage with 80MHz SPI Speed. But the serial connection drops after a while for no apparent reason... It behaves similarly with 20MHz. wifi.connect() makes it disconnect and not possible to connect anymore. It almost looks like some kind of thermal watchdog resetting after a while. It is fairly warm when I touch it in just a few seconds of plugging in. Posted at 2020-03-29 by opichals The Tasmota MQTT firmware works without any issues on the same board with the following flash command
So it looks like it's not the board part itself. Posted at 2020-04-02 by @MaBecker @opichals can you please share which make entry you used to get this board running Espruino? Posted at 2020-04-03 by opichals It's from here But the boards I got don't seem to be WAVGAT nor AI Thinker modules. Posted at 2020-04-03 by Robin Fri 2020.04.03 @opichals I too have had success with WAVGAT, haven't stumbled across WeMos though, but checking that page, and beneath the Overview tab: Package Included: Maybe there is a subtle difference in board design? Is there underside silkscreen that definitively states it isn't a WeMos brand? You then might consider a refund 'Not as Advertised' request, as title doesn't match what's included doesn't match image. > EDIT: > Oops, didn't really understand the '*Tasmota*' reference, before I posted Posted at 2020-04-03 by opichals The fact that the Tasmota firmware works without any issues makes me think about what Espruino needs changing to support these particular ESP8266s as well. Posted at 2020-04-03 by @MaBecker So it is not running yet - correct? maybe there are some wrong setting in user_rf_cal_sector_set() Posted at 2020-04-03 by opichals No, it is not. I was too optimistic when I was able to connect to it. The @MaBecker I haven't looked into these addressing specifics before. I have tried flashing it as 1MB/2MB and 4MB boards and none of those seemed to help. Any suggestions? Posted at 2020-04-03 by @MaBecker You could try a older firmware, pick one from here Posted at 2020-04-03 by opichals I think I tried 1.99 (for 4MB) and had the same issue. Let me get back to it once I have some time again to spend on this. Perhaps there was something I missed in those tests. It was a lot of combinations in a single weekend. Posted at 2020-04-03 by Robin Fri 2020.04.03 While this is three years old, and on a WAVGAT brand, here is the exact commnd I used for the version specified then. The device worked last time I powered up, over a year ago!! Also check out post #19 as another more recent added content Posted at 2020-04-04 by @MaBecker Did some test with different board
Workaround for 1. is to use a usb to serial adapter directly connected to TX, RX and GND to use higher baud rates. Posted at 2021-08-24 by user133547 I used
to flash the files to my LoLin NodeMCU with a esp8266, but when I connect to espruino web IDE, it always just spams
what does that mean? I've tried a ton of different commands to flash it, erasing flash afterwards, but it didn't work once. Posted at 2021-08-24 by @fanoush wrong baud rate in Espruino IDE settings? default is 9600, you need 115200 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-28 by opichals
Hi!
I wonder what should I do to fix this. I have got a few d1-mini clones with:
Connecting with
espruino --no-ble -b 115200
I get gibberish and similarly as http://forum.espruino.com/comments/14147154/ I cannot connect properly.Hinted from the linked thread I tried all of the FLASH_MODEs and tried to connect to freshly flashed boards at 75600 bauds only to get the outputs below. Changing flash_freq, unplugging or anything else has no effect from what can I say.
Anybody dealt with this?
Thanks!
Standa
DOUT
DIO
QIO
Beta Was this translation helpful? Give feedback.
All reactions