Search found 52 matches

by eradicatore
Fri Jun 23, 2017 11:21 am
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 8
Views: 5581

Re: A way to catch any exception?

Ok, thanks! Yea, I was mainly asking about your comment "if it stops for any reason". I should have mentioned I'm already familiar with the try/except format, but was looking for a "global" version to do something if my board dies this way and I didn't have the try/except around the culprit
by eradicatore
Fri Jun 23, 2017 11:18 am
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 1873

Re: nodemcu starting to act funny...

I'm using this command to flash (which by they way I did try to totally wipe and start over):

esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20170108-v1.8.7.bin
by eradicatore
Fri Jun 23, 2017 6:34 am
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 1873

nodemcu starting to act funny...

So not sure what changed, but up till now I've been doing the following to "watch" the board running and whatever print statements I have with a serial terminal based on the following steps: 1) plug in the board usb to PC 2) start up termite serial terminal 3) connect to com12 at 115200 bps 4) hit t...
by eradicatore
Fri Jun 23, 2017 5:56 am
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 8
Views: 5581

A way to catch any exception?

I notice that when my python has an error, I get the REPL prompt on serial. Is there a way to do something in code when this exception happens, like blink an LED for example? Where is this REPL prompt coming from? Is it embedded in the micropython binary to go to that for unhandled exceptions? Justin
by eradicatore
Fri Jun 23, 2017 5:45 am
Forum: ESP8266 boards
Topic: How to tell ram/rom usage?
Replies: 4
Views: 2975

How to tell ram/rom usage?

Hi,
I must not be searching for the right wording, because I can't find a good way to determine the ram/rom left on a nodeMCU. I looked at the os and machine imports but don't see anything there that looks right. Anyone know a good way?

Justin
by eradicatore
Mon Jun 19, 2017 4:03 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 29298

Re: uPyLoader - simple file transfer and communication

Dave Hylands' rshell is so good I've long believed it should be recommended in the official documentation. The proliferation of utilities of varying quality is potentially confusing. I use rshell exclusively on ESP8266 and Pyboards. Fair enough. I lived with the frustration that is Ampy (from adafr...
by eradicatore
Mon Jun 19, 2017 1:13 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 54
Views: 29298

Re: uPyLoader - simple file transfer and communication

...Just have one line in main.py: "import main_too" and put my old main.py into main_too.py (and compile to main_too.mpy) That is generally the best way to work (whether or not you cross-compile). You debug your module at the REPL and then amend the one-line main.py when you want it to auto-run. If...
by eradicatore
Sun Jun 18, 2017 2:12 pm
Forum: ESP8266 boards
Topic: NodeMCU prompt on windows 7
Replies: 2
Views: 1122

Re: NodeMCU prompt on windows 7

Well I actually went to using Termite 3.3. Still not all that happy with it, but it's been the one I stuck with. Teraterm kept having the wrong encoding. Termite doesn't seem to support paste mode (control-e) and it's history is annoying.
by eradicatore
Sun Jun 18, 2017 2:10 pm
Forum: ESP8266 boards
Topic: problems entering raw repl (needs 2 Ctrl-A's?)
Replies: 10
Views: 6795

Re: problems entering raw repl (needs 2 Ctrl-A's?)

Just a quick update, not sure if you've ever tried uPyLoader but if not it's WAY better than ampy.

viewtopic.php?f=16&t=2245
by eradicatore
Sun Jun 18, 2017 2:09 pm
Forum: ESP8266 boards
Topic: Am I running out of RAM in this example?
Replies: 5
Views: 2210

Re: Am I running out of RAM in this example?

Well I've been doing a different projects, and have been using ampy as it was the best thing I could find to quickly and easily upload files, but now I just found upyloader! https://forum.micropython.org/viewtopic.php?f=16&t=2245 I can't tell you how much happier I am with that! It allows you to com...