-->
Page 1 of 2

kinda messy - problems with esplorer and/or nodemcu esp-12e

PostPosted: Thu Mar 09, 2017 6:53 pm
by yamhill
I'm trying to get up to speed with nodemcu, and I'm encountering some problems.

My boards are Amica v2 esp-12e.

First the good news. Flashing seems to work okay, with either the nodemcu-flasher or pyflasher 0.2 minding that the connection speeds are properly set on the driver and flasher with what my board wants -- at least they don't throw any errors. Getting the firmware files is okay I guess, at least I don't know of any problems that come from the firmware. These boards hold a lot of promise, and I'm excited to see if I can get the tools to work together with the boards to realize some of their potential.

Some of the problems.
I'm having a bunch of problems with Esplorer. I'm sure I'd be lost without it, but I'm really confused with it.
Working with LUA, "save to Esp" button won't work. It throws different errors with the same file that works with upload and executes without error. Some files will work with "send to esp", fail with "save to esp", and upload and execute without error.

Bunches of lua example code doesn't work -- including examples on nodemcu.com, in the esplorer examples, and stuff from other locations.

Oh, and where is it written that you need to hit the reset button on the board or with esplorer software after a start or restart to get things going.

I can't get AT commands to work.

I can't get any Micropython examples to work. (Yes, I'm selecting the options in esplorer for this.)

I'd appreciate any guidance that would help me navigate a smoother path through all this. Right now, things don't work - or at least don't work as I expect them to.

Re: kinda messy - problems with esplorer and/or nodemcu esp-

PostPosted: Fri Mar 10, 2017 7:17 am
by jwmeyer
I would need more information to help.
1. Post the code that is not saving to the esp with the save button so I can test it.
2. What is the firmware that is loaded on the ESP?
3. Are using Windows or Mac or Linux? I use Linux and haven't seen these problems.

Re: kinda messy - problems with esplorer and/or nodemcu esp-

PostPosted: Fri Mar 10, 2017 8:34 am
by jwmeyer
Also which version of the esplorer are you using? I tried the latest and started having com problems so I went back to v0.2.0-rc2 which is working.

Re: kinda messy - problems with esplorer and/or nodemcu esp-

PostPosted: Fri Mar 10, 2017 1:32 pm
by yamhill
Here's code that won't save, will send (sometimes), will upload and run:
timerId = 0
dly = 1000
-- use D4
ledPin = 4
-- set mode to output
gpio.mode(ledPin,gpio.OUTPUT)
ledState = 0
-- timer loop
tmr.alarm( timerId, dly, 1, function()
ledState = 1 - ledState;
-- write state to D4
gpio.write(ledPin, ledState)
end)

Here's info on the firmware:
NodeMCU custom build by frightanic.com
branch: master
commit: b96e31477ca1e207aa1c0cdc334539b1f7d3a7f0
SSL: false
modules: file,gpio,net,node,tmr,uart,wifi
build built on: 2017-03-08 23:17
powered by Lua 5.1.4 on SDK 2.0.0(656edbf)

I'm using esplorer v0.2.0-rc5 on windows 7. I'll try older versions to see if I have better success.

jwmeyer wrote:I would need more information to help.
1. Post the code that is not saving to the esp with the save button so I can test it.
2. What is the firmware that is loaded on the ESP?
3. Are using Windows or Mac or Linux? I use Linux and haven't seen these problems.