Esp8266 tutorial #5489
Replies: 1 comment
-
Posted at 2015-12-23 by @allObjects Great, I like it very much... with all the background info provided. Posted at 2015-12-23 by DrAzzy Thanks - you mention how to flash on linux, but it doesn't look like you cover flashing on windows? If the procedure is the same, that should be clarified, and if not, it should be covered for windows. There are lots of windows users out there... Posted at 2015-12-23 by tve Agreed on windows and that's why I mentioned that at the beginning of the tutorial. I use Windows as desktop but not to do any IoT stuff. The only real difference is how to flash the esp8266. I can point to a version of esptool.py or the official espressif flashing tool, those are known to work... But it would be better for someone who actually uses Windows for this stuff to write up what works for them. Posted at 2015-12-26 by AkosLukacs Hi! Flashing on windows with esptool and the same command works just fine. Sent a pull-request to update the flashing docs. Thanks for your work! Posted at 2015-12-26 by tve Thanks for the info! Posted at 2015-12-30 by Arman happy gasp Posted at 2015-12-30 by DrAzzy There's a typo in the sample command - a stray quote, that results in the following error:
Posted at 2015-12-30 by tve Thanks! fixed. Posted at 2015-12-30 by DrAzzy Also, note this thread: I guess it's wifi.getIP() not wifi.getIPInfo() now? And getIPInfo() force-reboots the ESP8266? Posted at 2015-12-30 by tve yes to #1; the second issue is a bug I just fixed, testing the new version now... Posted at 2016-03-14 by user63099 Any idea why the ESP8266 12 keeps restarting after flashing when I check via picocom/screen? It keeps showing this over and over:
Could that be the power supply? Posted at 2016-03-14 by DrAzzy That's an old version of the FW - since it's now been officially released, it's part of the download package. I'd atleast step up to using the v85 release http://www.espruino.com/Download That said - wdt reset generally means you did something that kept it busy for too long without returning to idle loop, which causes the ESP8266 to assume your code is hung and reboot itself. You need to make sure you don't do anything that prevents it from coming back to the idle loop every so often (at which point it yields to the RTOS, which pets the dog as well as performing required, time sensitive network related tasks). Could this be explaining it? What were you doing at the time? I think power supply problems generally manifest as a different sort of reset (I always use my ESP8266-Espruinii via the network after the initial flashing, so I don't see what kind of reset it was usually). I've been impressed at how stable they are. Even without save()ing my code, I've had two devices running continuously since thursday evening, at near maxed CPU use. Posted at 2016-03-15 by Wilberforce @drazzy. How do you measure the cpu use on the esp8266? Posted at 2016-03-15 by DrAzzy I don't. There was some other thread here where I was hand-profiling my code to try to figure out how to make it run faster, so I could get more frames per second of animation. At this point, it's safe to say that it's at near full utilization. The console also lags badly, further supporting the theory that the processor is pinned. Posted at 2016-03-16 by tve If you haven't entered any JS code, try a full flash erase (erase_flash option, I believe in esptool.py). Posted at 2016-05-25 by user64975
Connected
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-12-23 by tve
I started a tutorial on how to flash the esp8266 with Espruino and, more importantly, how to use it without wires: connecting with the IDE over Wifi and updating the firmware over Wifi. Unless Gordon is willing to update the site soon, you will have to look at it on github:
I tested the various commands, but I'm sure I made mistakes and I'm also sure there are portions that are not understandable as written. Please let me know here (or in github issues) so I can improve the tutorial!
Beta Was this translation helpful? Give feedback.
All reactions