-->
Page 3 of 4

Re: ESP8266 NONOS 2 RAM

PostPosted: Tue Jan 10, 2017 8:53 am
by berkutta
@gjump
That would be a method to use the premade feature from Espressif. But I'm nearly finished with my own solution. I already have an internal feature which first downloads the Firmware to a second space on the FLASH. The only stumbling block actually is this rewrite thing which should write the newly downloaded firmware from the second space to the "active" space and then reboot.
I've asked Espressif if they know why my thing doesn't really work. I can't see the reason actually. Because the routine is in ram and should be independent of the flash firmware. If even they have no answer I will use the premade thing.

Re: ESP8266 NONOS 2 RAM

PostPosted: Tue Jan 10, 2017 10:00 am
by gjump
So, you don' want to use the bootloader method? Why not?

Re: ESP8266 NONOS 2 RAM

PostPosted: Tue Jan 10, 2017 11:15 am
by berkutta
@gjump
It's not that I don't like the Bootloader method. More that I've planned and worked on an OTA procedure which allows me nearly every case I need. As of it's already developed to a nearly finished state it would be bad to trash this thing. Everything works with except of the final overwrite of the "active" software. So in theory I just need to get the rewrite thing fixed and have my own OTA thing which I can use to automaticly update my ESP to the newest commit in the git master tree :)

Re: ESP8266 NONOS 2 RAM

PostPosted: Tue Jan 10, 2017 1:35 pm
by gjump
OK, but I don't see any problem on that. You can still use your code, you just need to check where you should load the new firmware and after that update the bootloader flag. Because even if you use the NONOS SDK, there's some functions that are executed out of your code, and you can't control then. That's why you can't hold the MCU inside a while(true).