-
• #2
This is the setup dumped onto an outdoor table so the GPS module could see the sky :D
-
• #3
Hi @Programbo,
Some hints:
replace
save();
at the end of upload code withsetTimeout("save();",1000);
switching between release have to include erase flash, check README_flash.txt.
soft serial is not part of 2v00 release, you have to get a cutting edge build.
use 4MB build for 4MB boards, check build content
-
• #4
Thanks @MaBe! Functionally, what does delaying the save do?
Regarding software serial, it seems to work! I got the info from here: https://www.espruino.com/USART#software-serial
As of Espruino v2.00 you can set up 'software serial'...
That said, I am using Flasher.js to flash my boards, so maybe that is getting the cutting edge build! I'll check...
-
• #5
@MaBe Firmware version seems to be ESP8266 stable rather than cutting edge. This is the Flasher.js manifest for the firmware I am using:
When I have this trouble again (probably tomorrow ;) I will try running
esptool.py --port /dev/tty.whatever --baud 115200 erase_flash
to see if I can avoid doing the firmware version dance. -
• #6
Functionally, what does delaying the save do?
give the interpreter more time to finish loading the code before it is saved ;-)
-
• #8
Any idea what the stuff being dumped into the console is all about?
it is not possible to load code save with older or new Espruino version with other versions, that's why erase flash is needed.
-
• #9
That was happening when trying to upload modified code to the same firmware! Espruino already explicitly prevents running code uploaded on a different firmware version. I used that feature to save me because switching firmware would stop my software serial code from automatically running so I could upload safe code before bringing it back to v2.00 :D
-
• #10
Ok, so i would guess that save started before code was fully interpreted and this causes the issues during loading.
I made a simple setup with a 16x4 LCD screen (HD44780) outputting the data from a serial GPS module. I used software serial on v2.00 because hardware serial on NodeMCU confused me.
Pushing up the code works, but if I need to change it, pushing up the code the next time results in a
New interpreter error: FIFO_FULL
, followed by the NodeMCU spewing the following into the console forever:...and the onboard LED to flicker continuously. The is NOT fixed by reflashing with v2.00! Here's how I am currently working around it:
If anyone has a tip on preventing this error from happening I would really appreciate it!
Also, when the ESP8266 gets into this sort of continual error state, is there an easier way to clear saved code aside from changing the firmware version and pushing up some new code?