Search found 12 matches

by erikha
Wed Apr 16, 2025 1:44 pm
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 13
Views: 4386

Re: NVS erased after OTA

I've found a solution that works for me.

Since v4.3 the function nvs_flash_init() does use the function nvs_flash_secure_init_partition() when nvs encryption is enabled via menuconfig. When this nvs encryption isn't enabled via menuconfig, the function nvs_flash_init() just returns nvs_flash_init ...
by erikha
Wed Apr 16, 2025 7:37 am
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 13
Views: 4386

Re: NVS erased after OTA

Follow-up on the breaking change in v4.3: when I do a read_flash with the esptool of a device that has flash encryption enabled in v4.2, only the partitions labeled "encrypted" are indeed encrypted and the partition labeled "nvs" is not. I expect the breaking change to be that v4.3 will encrypt the ...
by erikha
Wed Apr 16, 2025 6:19 am
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 13
Views: 4386

Re: NVS erased after OTA

martins I've seen that in the changelog of v4.3 as breaking change, but as I interpret that is: it is now enabled by default, but we already enabled that option manually before v4.3 (Component config -> NVS -> Enable NVS encryption). But to be sure, I will investigate this further.

ESP_rrtandler ...
by erikha
Tue Apr 15, 2025 11:49 am
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 13
Views: 4386

Re: NVS erased after OTA

I think you are talking about another issue. My issue is closer to what OP describes.

I created a minimal working example to prove my point with an explanation how to reproduce the issue: https://github.com/hardeman/esp32-nvs-e ... e_issue.md
by erikha
Tue Apr 15, 2025 7:57 am
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 13
Views: 4386

Re: NVS erased after OTA

I ran into pretty much the same issue. We've updated the framework from v4.2 to v4.4.8 and the partition labeled as "nvs" gets erased. We have some other custom partitions that are not affected by this issue. Did someone find a solution yet?
by erikha
Mon Oct 24, 2022 2:18 pm
Forum: ESP-IDF
Topic: I2C Slave address masking
Replies: 3
Views: 4509

Re: I2C Slave address masking

Hello,

I want to use the two i2c peripherals on the same set of pins, but that doesn't seems to work. Is there any other way to 'listen' to two slave addresses on one set of pins?

Thank you in advance.
by erikha
Fri Feb 25, 2022 6:11 pm
Forum: ESP-IDF
Topic: Partition table update on secure device
Replies: 10
Views: 8639

Re: Partition table update on secure device

And another question: is it possible to save the device that suffers the bootloop? or is it bricked?
by erikha
Fri Feb 25, 2022 6:08 pm
Forum: ESP-IDF
Topic: Partition table update on secure device
Replies: 10
Views: 8639

Re: Partition table update on secure device

Okay, thank you!

Is it also possible to use the esp_write_partition() function? If I understand the docs correctly, this function allows to write to both encrypted and unencrypted partitions.
by erikha
Fri Feb 25, 2022 12:59 pm
Forum: ESP-IDF
Topic: Partition table update on secure device
Replies: 10
Views: 8639

Re: Partition table update on secure device

The binairy of the partion table is embedded in the application binairy that's doing the partion table update. The code:

extern const unsigned char partition_table_bin_start[] asm("_binary_partition_table_bin_start");
extern const unsigned char partition_table_bin_end[] asm("_binary_partition ...
by erikha
Thu Feb 24, 2022 4:07 pm
Forum: ESP-IDF
Topic: Partition table update on secure device
Replies: 10
Views: 8639

Re: Partition table update on secure device

Okay, good to know the digest is fine.

Yes, I have flash encryption enabled.

I don't write a new bootloader. The process:

- Flash device with secure bootloader A, partion table A and application A
- Boot device for first time and flash gets encrypted
- Device shipped to customer
- I want to ...

Go to advanced search