Skip to content
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

Can this codebase be used with ESP8266_NON_OS SDK for OTA ? #58

Open
dipendra77 opened this issue Mar 4, 2020 · 4 comments
Open

Can this codebase be used with ESP8266_NON_OS SDK for OTA ? #58

dipendra77 opened this issue Mar 4, 2020 · 4 comments

Comments

@dipendra77
Copy link

dipendra77 commented Mar 4, 2020

Hi,
Can this codebase be used for OTA with ESP8266_NON_OS SDK ?
I am using a 16Mbits flash version of ESP8266 , with two OTA partitions. OTA1 at address 0x1000 and OTA2 at address 0x81000. Both partitions have a size of 0x6A000 ( 434.176 KB ). I am not using rboot bootloader. I have already done a lot of work for my product and only stuck with OTA. I tried this code base , but it is failing at the writing to the flash part, probably fetching wrong address when i call the function rboot_get_config() . Can anyone help me out with this ?

@dipendra77 dipendra77 changed the title Can this codebase be used with ESP8266_NON_OS SDK for OTA ? I am using 16 MBits flash and have two OTA partitions , Can this codebase be used with ESP8266_NON_OS SDK for OTA ? Mar 4, 2020
@raburton
Copy link
Owner

raburton commented Mar 4, 2020

Yes, it can be used for nonos, in fact when it was first written that's all there was. rBoot itself does not need the sdk to compile or the use any sdk code to run. Code that runs in you rom (e.g. downloads and writes to flash) will need to use SDK code. An example application that includes sample OTA code can be found here: https://github.com/raburton/rboot-sample-bigflash
If you are not actually using rBoot bootloader, but trying to use rBoot OTA code (sounds a bit like that from your question) then that won't work. As you say there will be no rBoot config to read and without bootloader there will be no way to start the second rom after an OTA update.

@dipendra77
Copy link
Author

dipendra77 commented Mar 8, 2020

Is there any way to make OTA work with rboot and ESP8266 NON OS SDK v3.0.3?

@raburton
Copy link
Owner

raburton commented Mar 8, 2020

I haven't tested with that specific version of the SDK, but rBoot should be able to boot any rom regardless of what SDK (or otherwise) it was built with.

@fvpalha
Copy link

fvpalha commented Mar 9, 2020

I use rboot with ESP8266 NONOS SDK v3.1.0-dev
commit: 3783b9d1 (Dec 4, 2019)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants