New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.setBootCode() causes constant reboots on ESP8266 #891
Comments
The reason is that https://github.com/espruino/Espruino/blob/master/src/jswrap_flash.c#L525 passes the flash address to jspEvaluate but what's needed on the esp8266 is the memory address at which flash is mapped. The following line makes it work: The following patch fixes it, but I suspect Gordon may want something prettier. |
Ahh, good spot - thanks :) Well, that is a bit of a hack, but in the scheme of things it's not that bad... Adding some kind of But to be honest it's fine - some kind of comment might be nice though :) |
@ceremcem - can this be closed ? |
@gfwilliams - fix works - please close this issue |
Thanks! |
Reproduce
Load a code (with
function onInit(){...
)into ESP(12)Toggle power
See your code runs as normal.
Run
E.setBootCode("console.log('this is bootcode');", true)
Toggle power
See constant resets:
Reflash firmware
Load an example code
Toggle power
See last code runs as normal at boot.
The text was updated successfully, but these errors were encountered: