Benutzer-Werkzeuge

Webseiten-Werkzeuge


hardware:esp8266

NodeMCU / ESP8266

NodeMCU eBay 12.2016

pd_nodemcu_0.9.jpg

  • Label on PCB: NodeMCU DEVKIT v0.9 05/12/2014
  • Black PCB
  • AI-Thinker ESP-12E Module (with ESP8266 MCU and 4M Flash)
  • 4MBit Flash
  • WCH CH340G USB UART
  • Micro USB Connector
  • Arduino IDE Settings: NodeMCU 1.0 (ESP-12E Module), 80MHz, 256000 Baud, 4M (3M SPIFFS)
  • ESP8266 Firmware UART Setting: 74880 Baud

Arduino TestEspApi

Arduino IDE TestEspApi Sketch Result:

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
ÿ
ESP starting.
system_get_time(): 244418
system_get_rst_info() reset reason: REASON_EXT_SYS_RST
system_get_free_heap_size(): 47688
system_get_os_print(): 0
system_get_os_print(): 1
system_get_chip_id(): 0xD70DBF
system_get_sdk_version(): 1.5.3(aec24ac9)
system_get_boot_version(): 5
system_get_userbin_addr(): 0x1000
system_get_boot_mode(): SYS_BOOT_NORMAL_MODE
system_get_cpu_freq(): 160
system_get_flash_size_map(): FLASH_SIZE_32M_MAP_512_512
wifi_get_opmode(): 1 - STATION_MODE
wifi_get_opmode_default(): 1 - STATION_MODE
wifi_get_broadcast_if(): 1

SoftAP Configuration
--------------------
ssid:            TestAP
password:        testtesttest
ssid_len:        6
channel:         1
authmode:        AUTH_WPA2_PSK
ssid_hidden:     0
max_connection:  4
beacon_interval: 100ms
--------------------

wifi_get_channel(): 11
wifi_get_phy_mode(): PHY_MODE_11N
system_get_time(): 348625
EVENT_STAMODE_CONNECTED ()
system_get_time(): 1349827
EVENT_STAMODE_GOT_IP ()
system_get_time(): 2349949

Arduino CheckFlashConfig

Arduino IDE CheckFlashConfig Sketch Result:

Flash real id:   001640E0
Flash real size: 4194304

Flash ide  size: 4194304
Flash ide speed: 40000000
Flash ide mode:  DIO
Flash Chip configuration ok.

CH340G Driver

Latested CH340G Windows Driver: http://www.wch.cn/downfile/65

Serial Bootlog at 74880 Baud

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld

ESPlorer does not like this Firmware.

Update with nodemcu-flasher

Easy update to nodemcu_integer_0.9.5_20150318.bin with https://github.com/nodemcu/nodemcu-flasher on Windows.

Serial Bootlog at 74880 Baud after Update with nodemcu-flasher

boot mode:(3,7)

load 0x40100000, len 28740, room 16 
tail 4
chksum 0xcd
load 0x3ffe8000, len 2888, room 4 
tail 4
chksum 0xbc
load 0x3ffe8b50, len 15252, room 4 
tail 0
chksum 0x4f
csum 0x4f

Log from NodeMCU Firmware at 9600 Baud

NodeMCU 0.9.5 build 20150318  powered by Lua 5.1.4
lua: cannot open init.lua
> =node.info()
0	9	5	14093759	1458400	4096	2	40000000
> =node.chipid()
14093759
> =node.flashid()
1458400
> 
----------------------------
No files found.
----------------------------
> 
Total : 3441461 bytes
Used  : 5773 bytes
Remain: 3435688 bytes

>
=wifi.ap.getmac()
1A-FE-34-D7-xx-xx
> 

Now we can use ESPlorer with this NodeMCU.

Firmware

Firmware Update Windows

Flash current Firmware from https://nodemcu-build.com/ on Windows with esptool.py.

D:\WinPython\WinPython-64bit-2.7.10.3\python-2.7.10.amd64>python.exe d:\NodeMCU\nodemcu-pyflasher\esptool.py --port COM29 write_flash 0x0000 d:\NodeMCU\nodemcu-master-7-modules-2017-01-19-01-41-08-integer.bin
esptool.py v1.3
Connecting....
Auto-detected Flash size: 32m
Running Cesanta flasher stub...
Flash params set to 0x0040
Wrote 393216 bytes at 0x0 in 34.1 seconds (92.3 kbit/s)...
Leaving...
Formatting file system. Please wait...

NodeMCU custom build by frightanic.com
        branch: master
        commit: 81ec3665cb5fe68eb8596612485cc206b65659c9
        SSL: false
        modules: file,gpio,net,node,tmr,uart,wifi
 build  built on: 2017-01-19 01:40
 powered by Lua 5.1.4 on SDK 1.5.4.1(39cb9a32)
lua: cannot open init.lua
hardware/esp8266.txt · Zuletzt geändert: 2017/01/26 00:18 von pixeldoc