Search found 8 matches

by MaxVapor
Tue Dec 10, 2019 2:44 am
Forum: General Discussion
Topic: ESP32 in Commercial Products
Replies: 3
Views: 6001

Re: ESP32 in Commercial Products

We have a commercial product in a very niche market, but I don't know that it could be considered "consumer friendly" to everyone so I won't share any links. I am very satisfied with Espressif and esp-idf as a platform and happy we went this route. Did you have any particular questions about bringin...
by MaxVapor
Mon Dec 09, 2019 12:27 am
Forum: ESP-IDF
Topic: Change Partition Subtype during runtime
Replies: 10
Views: 14484

Re: Change Partition Subtype during runtime

"repartition.c" #include <stdio.h> #include "freertos/FreeRTOS.h" #include "esp_ota_ops.h" #include "esp_err.h" #include "nvs_flash.h" #include "nvs.h" #include <esp_log.h> #include "modes.h" extern int current_mode; static const char no_factory[] = { 0xAA, 0x50, 0x01, 0x02, 0x00, 0x90, 0x00, 0x00, ...
by MaxVapor
Fri Aug 30, 2019 2:03 pm
Forum: General Discussion
Topic: ESP32: Partition Table Update through OTA
Replies: 13
Views: 33866

Re: ESP32: Partition Table Update through OTA

We just did something similar, but relied on the existing OTA mechanism to shift the application for us.

I posted about it here:
viewtopic.php?f=13&t=12004
by MaxVapor
Fri Aug 30, 2019 2:44 am
Forum: ESP-IDF
Topic: Change Partition Subtype during runtime
Replies: 10
Views: 14484

Re: Change Partition Subtype during runtime

We managed to successfuly update our partition table on deployed devices. The end goal was to remove the default factory partition to allow us to increase the size of the OTA partitions as our application is nearing the 1MB limit. This was facilitated by our application and supporting infrastructure...
by MaxVapor
Tue Aug 27, 2019 9:40 pm
Forum: ESP-IDF
Topic: read file on SD with big size
Replies: 2
Views: 5989

Re: read file on SD with big size

You have a limited amount of memory to work with so you cannot load the whole file into a string, you need to read the file in chunks and upload to the server. See an example from the SDK here: https://github.com/espressif/esp-idf/blob/master/examples/protocols/http_server/file_serving/main/file_ser...
by MaxVapor
Tue Aug 27, 2019 9:36 pm
Forum: ESP-IDF
Topic: IDF Update 3.2.2 on 3.1.1 product via OTA
Replies: 2
Views: 3623

Re: IDF Update 3.2.2 on 3.1.1 product via OTA

Yes but you will lose anything stored in NVS
by MaxVapor
Sat Aug 24, 2019 10:52 pm
Forum: ESP-IDF
Topic: Change Partition Subtype during runtime
Replies: 10
Views: 14484

Re: Change Partition Subtype during runtime

Is there a reason I would need to erase the existing partition table?

Assuming SPI_FLASH_DANGEROUS_WRITE is enabled, could I not use esp_flash_write or something similar to write a single byte in the flash to change the subtype if I knew the correct offset? (and perhaps a new CRC).
by MaxVapor
Fri Aug 23, 2019 5:02 pm
Forum: ESP-IDF
Topic: Change Partition Subtype during runtime
Replies: 10
Views: 14484

Change Partition Subtype during runtime

Apologies if this has been asked elsewhere, I tried to use the search function but did not seem to yield any results. I have an application which is currently using the standard 1 Factory Partition / 2 OTA layout. I would like to push a new OTA update out to users which changes the Partition Subtype...