Search found 123 matches

by Ritu21
Sat Jun 08, 2019 8:06 am
Forum: ESP-IDF
Topic: Macro Based Logging
Replies: 3
Views: 1016

Macro Based Logging

Hi, In my project, there are several components & I want to enable macro based logging in all the components. What is the best way to do this? I have tried enabling it through below method & it works: At component scope, define it in the component makefile: CFLAGS += -D LOG_LOCAL_LEVEL=ESP_LOG_DEBUG...
by Ritu21
Tue Jun 04, 2019 9:25 am
Forum: ESP-IDF
Topic: GPIO Based Factory Reset
Replies: 12
Views: 2956

Re: GPIO Based Factory Reset

Thank you Ritesh.
I will try this and will let you know.
by Ritu21
Tue Jun 04, 2019 5:31 am
Forum: ESP-IDF
Topic: GPIO Based Factory Reset
Replies: 12
Views: 2956

Re: GPIO Based Factory Reset

In your code, you are first checking the present partition and accordingly changing the other partition, But I want to change to factory app, be it any partition. So, my code would be something like below: esp_partition_t partition; memset(&partition, 0, sizeof(esp_partition_t)); const esp_partition...
by Ritu21
Tue Jun 04, 2019 4:58 am
Forum: ESP-IDF
Topic: OTA upgrade is aborting
Replies: 21
Views: 6027

Re: OTA upgrade is aborting

Hi,

Calling ESP32 restart api just after the completion of firmware update. No delay has been added. Should I put delay before restart???

What standard API's are you using for the same.

Thanks
Ritu.
by Ritu21
Mon Jun 03, 2019 1:21 pm
Forum: ESP-IDF
Topic: GPIO Based Factory Reset
Replies: 12
Views: 2956

Re: GPIO Based Factory Reset

Yes, I am using Factory, OTA_0, OTA_1 partitions for image update. How do we do that??
by Ritu21
Mon Jun 03, 2019 1:14 pm
Forum: ESP-IDF
Topic: OTA upgrade is aborting
Replies: 21
Views: 6027

Re: OTA upgrade is aborting

I haven't put any delay before rebooting the device. Do I need to add delay?? Actual application is server dependent, we get the time from server fro image update, then start rtos timer like this: imageDownloadTimerHandle = xTimerCreate("imageDownloadTimer",pdMS_TO_TICKS(difference_in_time*1000),pdF...
by Ritu21
Mon Jun 03, 2019 12:57 pm
Forum: ESP-IDF
Topic: OTA upgrade is aborting
Replies: 21
Views: 6027

Re: OTA upgrade is aborting

Hi, How do I check this?? Address on which esp is writing ota update seems to be correct. It gets stuck after writing new image to ota app. Below is the current partiion table: I (53) boot: ## Label Usage Type ST Offset Length I (61) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (68) boot: 1 otada...
by Ritu21
Mon Jun 03, 2019 8:34 am
Forum: ESP-IDF
Topic: OTA upgrade is aborting
Replies: 21
Views: 6027

Re: OTA upgrade is aborting

I have only added spiffs and changed the partition table and for now commented that part and checked, yet getting the same error. Tried the solution given by @boarchuz, the frequency of getting error has reduced but not gone.
by Ritu21
Mon Jun 03, 2019 8:24 am
Forum: ESP-IDF
Topic: GPIO Based Factory Reset
Replies: 12
Views: 2956

Re: GPIO Based Factory Reset

Yes, something like when we give input from GPIO, device should restart from factory app.
by Ritu21
Mon Jun 03, 2019 6:04 am
Forum: ESP-IDF
Topic: GPIO Based Factory Reset
Replies: 12
Views: 2956

Re: GPIO Based Factory Reset

Hi Ritesh,

I want to move back to factory app if required.

Thanks
Ritu

Go to advanced search