Chat freely about anything...

User avatar
By cswiger
#14045 Hmm, interesting - just bought two modules from sparkfun (now they're sold out!) - got the AT commands to work, could chat from netcat to a serial terminal via wifi just fine.

Moved on to programming with the Arduino - I can flash the examples all night but I get nothing but this from the serial port anymore:

Terminal ready
rl��r��#�n��
�

Have tried a multitude of options - all w/o luck. Using an ftdi usb/serial - 3.3 power from a seperate 1.5A bench supply, all lines tied high, only CH_PD high, consistently get the same results. It's labled ESP8266EX / 302014 / POVVOO

Tried programming from command line sdk - no luck

source-code-examples/blinky# make ESPPORT=/dev/ttyUSB1 flash
esptool.py --port /dev/ttyUSB1 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
Connecting...
Erasing flash...
Writing at 0x00007400... (100 %)
Erasing flash...
Writing at 0x00065800... (100 %)

Leaving...

Ok - yeah, checking on Windows/Realterm 76800 baud:

load 0x40100000, len 30984, room 16
tail 8
chksum 0x33
load 0x3ffe8000, len 2556, room 0
tail 12
chksum 0xf7
ho 0 tail 12 room 4
load 0x3ffe8a00, len 2312, room 12
tail 12
chksum 0xf6
csum 0xf6

Ok, I'll search around for that tomorrow - have seen that before in other's posts.

Thanks!
User avatar
By CheapB
#14050
cswiger wrote:Hmm, interesting - just bought two modules from sparkfun (now they're sold out!) - got the AT commands to work, could chat from netcat to a serial terminal via wifi just fine.

Moved on to programming with the Arduino - I can flash the examples all night but I get nothing but this from the serial port anymore:

Terminal ready
rl��r��#�n��
�

Have tried a multitude of options - all w/o luck. Using an ftdi usb/serial - 3.3 power from a seperate 1.5A bench supply, all lines tied high, only CH_PD high, consistently get the same results. It's labled ESP8266EX / 302014 / POVVOO

Tried programming from command line sdk - no luck

source-code-examples/blinky# make ESPPORT=/dev/ttyUSB1 flash
esptool.py --port /dev/ttyUSB1 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
Connecting...
Erasing flash...
Writing at 0x00007400... (100 %)
Erasing flash...
Writing at 0x00065800... (100 %)

Leaving...

Ok - yeah, checking on Windows/Realterm 76800 baud:

load 0x40100000, len 30984, room 16
tail 8
chksum 0x33
load 0x3ffe8000, len 2556, room 0
tail 12
chksum 0xf7
ho 0 tail 12 room 4
load 0x3ffe8a00, len 2312, room 12
tail 12
chksum 0xf6
csum 0xf6

Ok, I'll search around for that tomorrow - have seen that before in other's posts.

Thanks!


Try to reflash with a standard AT firmware and then try the arduino sketch again. The firmware appears to get corrupted sometimes and the only way I have found to fix it is to flash with a standard firmware.
User avatar
By cswiger
#14125 Ok - here's is how I brought it back from odd-baud hell - may not be optimum as I'm a total n00b - and thot I'd try out the node firmware - git clone https://github.com/nodemcu/nodemcu-firmware to get the blank512k.bin - and use the esptool.py from the sdk setup (as root for /dev/ttyUSB1 permission - yeah, I'll fix that)

# /opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB1 erase_flash

# /opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB1 write_flash 0x00000 nodemcu_512k_latest.bin
Connecting...
Erasing flash...
Writing at 0x0004d000... (60 %)^C
< here it HUNG and had to ctrl-c>

# /opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB1 write_flash 0x00000 blank512k.bin
Connecting...
Erasing flash...
Writing at 0x0007fc00... (100 %)

Leaving...

Lastly
# /opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB1 write_flash 0x00000 nodemcu_512k_latest.bin
Connecting...
Erasing flash...
Writing at 0x0007ec00... (100 %)

Leaving...

and now I get at 9600 baud:
Terminal ready
<���������������C�NodeMcu 0.9.4 build 20141230 powered by Lua 5.1.4
lua: cannot open init.lua
> ip = wifi.sta.getip()

> print(ip)

nil

Happy :lol: