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

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

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

Post by Henrique Miranda » Sat Mar 24, 2018 5:25 pm

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?
Last edited by Henrique Miranda on Sun Aug 05, 2018 11:50 am, edited 4 times in total.

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

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

Post by OutoftheBOTS_ » Sat Mar 24, 2018 8:54 pm

R u connecting at baud rate of 115200??

Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

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

Post by Henrique Miranda » Sun Mar 25, 2018 2:56 am

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

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

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

Post by shaoziyang » Sun Mar 25, 2018 3:48 am

You don't flash firmware correctly.

Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

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

Post by Henrique Miranda » Sun Mar 25, 2018 3:57 am

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

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

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

Post by deshipu » Sun Mar 25, 2018 12:13 pm

Are you sure dio is the correct flash mode for that board? Have you tried other modes?

Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

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

Post by Henrique Miranda » Sun Mar 25, 2018 12:41 pm

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:(

Henrique Miranda
Posts: 9
Joined: Sun Mar 18, 2018 3:05 pm

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

Post by Henrique Miranda » Sun Aug 05, 2018 11:40 am

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?

Post Reply