Page 2 of 2

Re: main.py don't start after poweron

Posted: Thu Oct 06, 2016 3:27 am
by poduris
Hi Robert,

Please find the O/P of port_diag ... I see 4 MB

>>> import port_diag
FlashROM:
Flash ID: 1640e0 (Vendor: e0 Device: 4016)
Flash bootloader data:
Byte @2: 00
Byte @3: 40 (Flash size: 4MB Flash freq: 40MHZ)
Firmware checksum:
size: 530896
md5: d5b8fdbc4aca895baf9581d3a961dd73
True

Networking:
STA ifconfig: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
AP ifconfig: ('192.168.4.1', '255.255.255.0', '192.168.4.1', '208.67.222.222')
Free WiFi driver buffers of type:
0: 8
1: 0
2: 8
3: 4
4: 7
lwIP PCBs:
Active PCB states:
Listen PCB states:
TIME-WAIT PCB states:
>>>



I've flashed using esptool.py after erase flash ...but no luck



supoduri@SUPODURI-K85W1 MINGW64 ~/esp8266-micropython-vagrant (master)
$ esptool.py -p COM4 erase_flash
esptool.py v1.2-dev
Connecting...
Erasing flash (this may take a while)...

supoduri@SUPODURI-K85W1 MINGW64 ~/esp8266-micropython-vagrant (master)
$ esptool.py -p COM4 --baud 460800 write_flash --flash_size=8m 0 firmware-combined.bin
esptool.py v1.2-dev
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0020
Writing 532480 @ 0x0... 532480 (100 %)
Wrote 532480 bytes at 0x0 in 12.0 seconds (356.4 kbit/s)...
Leaving...

supoduri@SUPODURI-K85W1 MINGW64 ~/esp8266-micropython-vagrant (master)
$

Re: main.py don't start after poweron

Posted: Sun Oct 09, 2016 5:45 pm
by poduris
Thanks Everyone !
its working now... I was putting on main.py @ /home/vagrant/micropython/esp8266/scripts/ on ubuntu virtual machine (on the same VM where firmware is compiled) ......it didn't work.

Now I'm using mpfshell to put main.py file through serial port. Its working now.