Page 1 of 1

[SOLVED]D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sat Mar 24, 2018 5:25 pm
by Henrique Miranda
Hi guys,

I used Micropython in my module before, but now i cant flash a working micropython firmware, while flashing ends the blue led show up and if i connect by serial i get a lot of garbage code.
The module works fine with NodeMCU, AT and Arduino Firmwares.
i just tried erase flash using esptool.
i just tried flash v1.8.7 an 1.9.3 versions of micropython

I only get this issue flashin Micropython firmware, please some one give me the way of light :)

The garbage that i get on serial look like this: https://ghostbin.com/paste/tesse
UPDATE: While i connect using picocom at baud 78400 i got this errors in serial:

Code: Select all

Fatal exception (0): 
epc1=0x4020e754, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
UPDATE:
SOLUTION:

After a long time i discovered the solution fallowing a friend instructions, to solve this problem i have to compile the micropython firmware.
My module still don't work using pre compiled firmwares but when i compile using this tutorial from adafruit(https://learn.adafruit.com/building-and ... d-firmware) he come back to life again. Some one Know why its happen?

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sat Mar 24, 2018 8:54 pm
by OutoftheBOTS_
R u connecting at baud rate of 115200??

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Mar 25, 2018 2:56 am
by Henrique Miranda
OutoftheBOTS_ wrote:
Sat Mar 24, 2018 8:54 pm
R u connecting at baud rate of 115200??
Yes, and i tried 9600 too but remain the garbage code on serial

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Mar 25, 2018 3:48 am
by shaoziyang
You don't flash firmware correctly.

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Mar 25, 2018 3:57 am
by Henrique Miranda
shaoziyang wrote:
Sun Mar 25, 2018 3:48 am
You don't flash firmware correctly.
Im flashing using normal parameters: esptool.py --baud 115200 --port /dev/ttyUSB0 write_flash -fm dio -fs 4MB -ff 40m 0x00000 esp8266-20180325-v1.9.3-477-g7b0a020a.bin

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Mar 25, 2018 12:13 pm
by deshipu
Are you sure dio is the correct flash mode for that board? Have you tried other modes?

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Mar 25, 2018 12:41 pm
by Henrique Miranda
deshipu wrote:
Sun Mar 25, 2018 12:13 pm
Are you sure dio is the correct flash mode for that board? Have you tried other modes?
Hi, i just tried now with -dout and still in the same mode. I think its a hardware problem:(

Re: D1 mini 4MB - loads a lot of garbage after micropython firmware flash

Posted: Sun Aug 05, 2018 11:40 am
by Henrique Miranda
Hi guys,
After a long time i discovered the solution fallowing a friend instructions, to solve this problem i have to compile the micropython firmware.
My module still don't work using pre compiled firmwares but when i compile using this tutorial from adafruit(https://learn.adafruit.com/building-and ... d-firmware) and flash firmware-combined.bin the module D1 mini come back to life again. Some one Know why its happen?