[SOLVED] Unable to execute code on an ESP8266 #5895
Replies: 1 comment
-
Posted at 2017-10-07 by stevo I'm on the same path. Trying to figure out to get nodemcu esp8266 running Espruino. I've had no luck. Something I wasn't aware of when I bought mine was that there are many versions of the esp8266. Can you give us some more details of exactly which board you have? Here's what I purchased: In particular, the '12E' part is a different model than many other users on this forum seem to have had success with. Secondly, all of the tutorials I've ran through mentioned needing to set the baud rate to 115200 (my board literally has 'set baud rate to 9600' stamp on the underside), but I believe we're still supposed to set baud rate to 115200 (someone please correct me if this is in error). I've also tried the ThingsSDK tutorial to no avail. My experience: Let me know if you figure it out! Posted at 2017-10-09 by swaroop I've got 2 Node MCU ESP8266's and I believe both of them are a 12E too. I dont have a link to share as i bought them off from a local store. But on one, i have the Amica branded one (the other one was a GPIO chart behind, no brand). which mentions "Use 9600 baud rate" I was able to program these two devices in Arduino IDE and work with various sensors too. About Espruino Web IDE, i have the same behavior as you described above. Not responding. i'll look for the older boot_v1.5.bin. Perhaps these should be a part of the Older Espruino releases v1.87 ? Posted at 2017-10-09 by swaroop I have a new development.. I've kept trying the same steps but for some reason it started working. I will try to re-create the steps and post back with another update. So what i recall to have done was
Important step here is to disconnect and re-connect the ESP8266 from the USB.
and it started working. I am still testing out other APIs.. Another sample that i was able to do was This blinks the onboard LED ON and OFF every 500ms.
Posted at 2017-10-09 by swaroop @stevo Updated with another post below. Hope that gets your work going too! Posted at 2017-10-09 by swaroop Update 1 - I still haven't been able to run this through the ThingsSDK CLI. It still says "Cannot connect" to the same port. Even though i have disconnected that from the Espruino Web IDE Posted at 2017-10-09 by stevo Awesome, can't wait to try this out! Posted at 2017-10-10 by stevo Uhg, no difference for me. Same errors as before. No clue where to go from here. Thanks for your help anyhow @Swaroop Posted at 2017-10-11 by stevo Ah ha the answer for me was changing from 'qio' to 'dio'. Posted at 2017-10-11 by swaroop Woot!.. that is good news. It was documented on the ESPTool page
Posted at 2017-10-13 by stevo Yeah you're right. I was in a hurry or perhaps just frustrated and didn't read it carefully. :D Posted at 2017-10-15 by Polypod Great, thanks. I thought it was a hardware defect (mine has alse the text reversed). Just switched to dio, now it works perfectly. Posted at 2017-10-16 by stevo I'm trying to keep updated nodemcu esp8266 12e documentation - in regards to flashing and other issues specific to that board. Any chance you have a screenshot, error log, or steps to reproduce the 'text reversed' issue you encountered? Those would be useful to add to the document/conversation for others who might be searching for 'reversed text' and whatever errors may be showing up. Posted at 2017-10-17 by Polypod The reversed text is the text printed on the chip, here's a photo comparing to normal text : Attachments: Posted at 2017-10-17 by Ollie @Polypod suspect your circuit isn't reversed just the metal case is rotated 180 degrees Posted at 2017-10-19 by hungryforcodes @Polypod Also the first one has a proper F antenna, which -- unless I am mistaken -- results in better radio performance. https://en.wikipedia.org/wiki/Inverted-F_antenna Posted at 2017-10-20 by DrAzzy One on the right is an ESP12E, one on the left is an ESP12F. The ESP12F has a better antenna as noted above. Does using DIO instead of QIO mode (on boards wired for the former only) mean that we can use GPIO 9 and 10 from within Espruino? Posted at 2017-10-24 by stevo Not tried it out yet, I've been meaning to do a test run off all the pins to get a solid mapping set. Anyone else? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-10-06 by swaroop
I'm new to using Espruino and i am trying out ThingsSDK sample project to run Espruino on a NodeMCU ESP8266.
I have flashed Espruino -1v91 via Flasher.js.app on my Mac and the flash works perfectly on the port /dev/cu.SLAB_USBtoUART and suceeds
But when doing 'node run dev', i encounter the error 'unable to connect'. I've tried both the supported baud rates and still it has the same issue.
I've tried to connect Espruino Web IDE and it shows connected but whenever i send a javascript line to evaluate it sends it but there's no response back displayed. No visual indication if something executed or not.
Has anyone else faced this issue? Any help is appreciated. I just have a Mac machine to experiment on.
Beta Was this translation helpful? Give feedback.
All reactions