Search found 49 matches

by ESP_jakob
Mon May 06, 2024 1:24 pm
Forum: ESP-IDF
Topic: encrypt and store wifi credentials received at run time
Replies: 1
Views: 1001

Re: encrypt and store wifi credentials received at run time

You can enable flash encryption and NVS encryption, then use NVS to store WiFi credentials. NVS encryption works with a separate encryption key that is encrypted using flash encryption. I.e., you don't need to store any key outside the device. Once you enable flash encryption, any partition marked a...
by ESP_jakob
Tue Apr 23, 2024 2:19 pm
Forum: ESP-IDF
Topic: Why doesn't NVS Encryption use the standard Flash Encryption mechanism?
Replies: 12
Views: 16868

Re: Why doesn't NVS Encryption use the standard Flash Encryption mechanism?

Hi, I'm the author of https://github.com/espressif/esp-idf/commit/aca9ec28b3d091a73605ee89ab63f8f76a996491. Back in the day when I was working on NVS, we also thought about allowing NVS to use the generic flash encryption scheme. In the end, however, we figured that it would have required a bunch of...
by ESP_jakob
Wed Mar 13, 2024 7:28 am
Forum: ESP-IDF
Topic: ESP32-C6 linking failed
Replies: 3
Views: 1501

Re: ESP32-C6 linking failed

One more question: which IDF version - specifically, which commit - are you using?
by ESP_jakob
Tue Mar 12, 2024 7:40 am
Forum: ESP-IDF
Topic: ESP32-C6 linking failed
Replies: 3
Views: 1501

Re: ESP32-C6 linking failed

Hi!

To debug these type of linker issues, it would be easiest for us if you can provide a minimal reproducing example. Would that be possible?
by ESP_jakob
Thu Jan 25, 2024 7:55 am
Forum: ESP-IDF
Topic: Best library/API to use for custom nonvolatile database
Replies: 4
Views: 1590

Re: Best library/API to use for custom nonvolatile database

If you want to have low-level access to the flash, it's probably best to use the ESP-Partition (https://docs.espressif.com/projects/esp ... ition.html) API. But then you really need to take care of proper wear leveling yourself.
by ESP_jakob
Wed Oct 25, 2023 2:44 am
Forum: ESP-IDF
Topic: Runnable component template
Replies: 2
Views: 1650

Re: Runnable component template

For testing and example applications, you could simply add a project inside your component. This is done for many IDF components which have a "test_apps" directory containing test apps. Similarly, you can add examples like this. You need to make sure to correctly use the enclosing component then, e....
by ESP_jakob
Mon Oct 23, 2023 6:41 am
Forum: ESP-IDF
Topic: Using idf.cmake in a custom CMake project with multiple executables
Replies: 7
Views: 6347

Re: Using idf.cmake in a custom CMake project with multiple executables

Hello, we're sorry you had a tough time with the IDF build system. It shouldn't be difficult for users to use it. I have a few questions, maybe just to better understand the issue here: IDF projects usually build one executable. An IDF project basically bundles configurations, sources and other thin...
by ESP_jakob
Thu Oct 19, 2023 4:01 am
Forum: ESP-IDF
Topic: Setting up firmware for production
Replies: 3
Views: 4795

Re: Setting up firmware for production

Hi, I found this guide which focuses on WiFi testing, but also mentions some of the flashing tools: https://www.espressif.com/sites/default/files/documentation/production_testing_guide_en.pdf Regarding the "device key", there is some information how to write it into NVS here: https://docs.espressif....
by ESP_jakob
Wed Oct 18, 2023 10:30 am
Forum: ESP-IDF
Topic: Largest contiguous RAM for HEAP
Replies: 16
Views: 9000

Re: Largest contiguous RAM for HEAP

If you really don't want allocations to happen in a certain area, have you tried "reserving" it by doing the allocation before the other (smaller) allocations? If you need that space temporarily, you can still try to assign memory from the "reserved" space temporarily, effectively implementing your ...
by ESP_jakob
Sat Oct 07, 2023 3:45 am
Forum: ESP-IDF
Topic: ESP32 issue when updating ESP-iDF to version 4.4.5 and higher
Replies: 2
Views: 1825

Re: ESP32 issue when updating ESP-iDF to version 4.4.5 and higher

Hello, what might be the issue here is a C++ object declared static which is doing some initialization in its constructor before the necessary components are initialized. Is there something like this in the code? Do you have a complete reproducing example? This would help us a lot with debugging. Ki...