-
Notifications
You must be signed in to change notification settings - Fork 33
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
Allow user app to signal need to enter an OTA bootloader #10
Comments
This is actually soft-blocked on micropython/micropython#2779 |
Isn't it possible to write a magic word with I can set and re-read (after reset) the memory successfully from the RTC-mem in micropython, however I am kind of pulling my hair, how to get the user-memory contents from boot8266.c. I have printed all the memory (512 bytes) starting from http://www.esp8266.com/viewtopic.php?f=8&t=3505 mentions to use Any idea or advice, how I can get the RTC-memory-content and any suggestions for magic words ("YAOTAOTA","MPOTAOTA")? Then I will happily fork and patch. |
Ah, just saw that the memory start seems to be 0x60001200 and I found the contents there too. |
Working and implemented in ulno@566a292 You can now trigger the OTA mode via the following: import machine
machine.RTC().memory("yaotaota")
machine.reset() After such a reset, the memory will show import machine
machine.RTC().memory()
machine.RTC().memory()
b'zaotaota' |
Hi @ all, |
What I described, works pretty well, and is just a small patch to yaota - just check out my fork. Though recently I have trouble compiling it against head (compare #19) - does the normal yaota still compile against micropython head? |
Allow user app to call some function which cause a reboot with unconditional start of ota-server part. (E.g., to implement MicroPython's
pyb.bootloader()
).The text was updated successfully, but these errors were encountered: