esp8266 save() wrong js code, auto reset and crash #5611
Replies: 1 comment
-
|
Posted at 2015-10-18 by hygy What is the correct way to clear this part of the flash? Now i successfully cleared. But I think this is not the "beauty" way. I reflashed the original NODEMCU flash bin: ./esptool -bm qio -bz 512K -bf 40 -cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000 -cf nodemcu_float_0.9.6-dev_20150704.bin than flash back the new espruino flash: ./esptool -bm qio -bz 512K -bf 40 -cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000 -cf espruino_esp8266_board_0x00000.bin -ca 0x10000 -cf espruino_esp8266_board_0x10000.bin Posted at 2015-10-18 by Kolban Howdy @HyGy. See issue #661. (espruino/Espruino#661). Any thoughts and comments in that issue are very welcome. Posted at 2015-10-18 by tve So you don't have to read through that issue: flash blank.bin to 0x7C000. Posted at 2015-11-05 by hygy Maybe it will be good, if I can clear the flash from the espruino ide somehow. Posted at 2016-11-07 by user67974 I am also having trouble with resets. I have cleared 0x00000, through 0x300000. Posted at 2016-11-07 by @gfwilliams Moving this one to the ESP8266 section of the forum - I believe this kind if problem is relatively common... Posted at 2016-11-07 by Ollie You don't say how you flashed the board but would recommend esptool - helpful when you want to completely wipe flash.
Posted at 2016-11-08 by user67974 Hello Ollie, }); // End of one new browser request } // End of beServer var ssid = "COZYPINES"; // Connect to the access point Posted at 2016-11-08 by user67974 I tried this using the Arduino Ide. "Connected to COZYPINES Exception (0): ctx: sys
ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1264, room 16 .... Posted at 2016-11-08 by Ollie Your example does not seem very complex, and you've obtained an IP address. The only thing I typically would not have in my code is changing the clock speed. I don't know the implications of that - maybe none. Why do you do that out of interest? But if this reboots after a set period, the first thing I'd check would be power. The NodeMCU should not need capacitors - at least I've never needed anything other than the board, but are you confident that the USB supply is providing enough power? Maybe try a wall mounted USB supply, and connect to the board over Telnet to upload the code. You are probably aware you can permanently save wifi settings with Posted at 2016-11-24 by user67974 I changed the clock code on spec that it may be running too fast. saw somewhere the clock was set higher by Espruino. I have another issue now. Using esptool.py to erase flash, everything is fine but it says this may take a while but ends immediately after. I tried loading the latest 1_89 and get this error. I'm just spinning my wheels now. I've attached a picture of the Espruino IDE reset o/p and my flash program batch file. Any suggestions gratefully appreciated. Attachments: Posted at 2016-11-24 by user67974 Hm 1 file per post. Here is the reset o/p from the Espruino IDE. Attachments: Posted at 2016-11-24 by user67974 And just like that it's working. Left it running. Came back for the college try and it works without rebooting. Still have issue with PinState #defines changed error. Posted at 2016-11-24 by @MaBecker @user67974 - there is an open issue 929 not sure if this a flash problem |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-10-18 by hygy
Hi,
I have a nodemcu board (esp8266-esp12). I saved a wrong js code into. Now I can't save a new working code.
I got this from the chrome ide:
I reflashed with this command (as i flashed first time the espruino firmware):
I installed arduino dev. env. And successfully uploaded wifi and blink code to it, so the board is working. After that I re flashed the espruino binaries, but it's is wrong.
What can I do to continue develop js code, and can save a new working code?
regards
HyGy
Beta Was this translation helpful? Give feedback.
All reactions