For all of these scenarios, I am able to upload the firmware and monitor via serial usb. But after creating my first firmware, for all new firmware, I can't upload Lua scripts using the nodemcu-tool without getting the following:
Error Message
F:\Development\NodeMCU\helloworld>nodemcu-tool -p COM3 upload init.lua
[NodeMCU-Tool]~ Unable to establish connection
[NodeMCU-Tool]~ Invalid node.chipid() Response: 6935962
Observations
- Can reset the board using nodemcu-tool. Leads me to assume the baud rate is fine.
- Can see the file system being created from PuTTy after loading any of the firmware. Leads me to assume the firmware is OK.
- Have tried multiple dev boards, same results
- Found the source of the error message device-info.js. either line 45 or 49
- I have no idea what "Response: 6935962" means. Is that my chip id or an error code?
- A new commit was made to the firmware source during the last couple of days. No idea if this is relevant.
- Was hoping to get this resolved before I go down the Docker rabbit hole. Lazy. I know.
9/6/2019 - created first firmware to start development
- Built a firmware using https://nodemcu-build.com/ with these modules (cron, file, gpio, i2c, mdns, mqtt, net, node, sjson, tmr, uart, wifi)
- Uploaded the firmare using NodeMCU-PyFlasher-4.0
- No issues with this firmware. I've been able to upload lua scripts and test them successfully. Even now, I can revert back to this firmware and use it without issues. I've even redownloaded this firmware from the original link, and it works fine.
9/7/2019 - created a new firmware to use adc and other goodies
- Built a firmware using https://nodemcu-build.com/ with these modules (adc, cron, file, gpio, i2c, mdns, mqtt, net, node, rtctime, sjson, tmr, uart, wifi)
- Uploaded the firmare using NodeMCU-PyFlasher-4.0
- Having the problem described above.
9/8/2019 - built firmware with minimal modules
- Built a firmware using https://nodemcu-build.com/ with these modules (file, gpio, net, node, tmr, uart, wifi)
- Uploaded the firmare using NodeMCU-PyFlasher-4.0
- Having the problem described above.
Platform & Tools
- Windows 10
- Development board: HiLetgo ESP8266 NodeMCU LUA CP2102 ESP-12E Internet WiFi Development Board Open Source Serial Wireless Module
- Firmware builder: https://nodemcu-build.com/
- Serial Monitor: PuTTy 0.72
- Firmware Loader: NodeMCUPyFlasher 4.0
- Lua script loader: nodemcu-tool 3.0.2