Search found 106 matches

by imtiaz
Fri Feb 24, 2017 2:27 am
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

You can override components on a per-project basis. In your project directory, make a PROJECT_DIR/components/bootloader directory and copy the contents of IDF_PATH/components/bootloader to here. This bootloader component will be used in preference to the IDF one. Thats a brilliant feature - well done
by imtiaz
Fri Feb 24, 2017 12:30 am
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

Hi Angus, Even if the ota image is not present at all and you set the OTA data to say boot from that OTA image - the bootloader will attempt to boot from it and then fail verify and then do nothing. As long as the partition table has the OTA partitions that is... if (err != ESP_OK) { ESP_LOGE(TAG, "...
by imtiaz
Thu Feb 23, 2017 9:50 pm
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

Hi ,

You can ignore the last request. Ive modified teh 2nd stage bootloader to jump to factory app if the OTA image fails verify.

Thanks
Imtiaz
by imtiaz
Thu Feb 23, 2017 8:50 pm
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

Hi Guys, @ ESP_igrr @WiFive, Thanks for the help so far . I got OTA working quite painlessly so great job there Espressif. Can you tell me how I can jump from my OTA image to my factory image without setting the boot partition to factory and resetting. This will be really handy for the way I am desi...
by imtiaz
Thu Feb 23, 2017 12:46 am
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

Hi @WiFive,

I need a form of timer to run in the 2nd stage bootloader - blocking is fine. Since I cant use the free rtos vTaskDelay (as far as I can tell) - what are my options?

Thanks
Imtiaz
by imtiaz
Thu Feb 16, 2017 7:20 pm
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

Hi WiFive, Thank you for the reply. We dont have a button on our esp32 module that can be used to have a failsafe boot to factory option. Is there any other way you can think of that we can have a failsafe OTA mechanism - that is in case you load an application that has the updating ability broken ....
by imtiaz
Thu Feb 16, 2017 5:09 am
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

Re: OTA clarification

can anyone shed some light ? @ESP_igrr
by imtiaz
Tue Feb 14, 2017 11:42 pm
Forum: ESP-IDF
Topic: OTA clarification
Replies: 32
Views: 44856

OTA clarification

Hi Espressif, I am trying to get my head around the OTA procedure so I can implement it for our product . I have looked at the example readme file. The OTA as it is, is not really suitable for us as our product will be the AP rather than a station. This is my understanding of how the example works, ...
by imtiaz
Wed Feb 08, 2017 11:25 pm
Forum: ESP-IDF
Topic: Software reset
Replies: 2
Views: 9402

Re: Software reset

Works like a charm - thank you for the quick response
by imtiaz
Wed Feb 08, 2017 11:15 pm
Forum: ESP-IDF
Topic: Software reset
Replies: 2
Views: 9402

Software reset

Hi,

How do I perform a sofware reset on esp32 ? I tried REG_WRITE(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_SW_SYS_RST); But after reset it doesnt run again?