Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Add support for modifying Flash command with custom NVS bin (VSC-1503) #1327

Closed
granolocks opened this issue Oct 10, 2024 · 2 comments
Labels
Feature / Enhancement Request Request for Feature/ Enhancement

Comments

@granolocks
Copy link

Is your feature request related to a problem? Please describe.

I have used the NVS Partition editor to embed certs for HTTPS and MQTT rather than embedding them directly in the firmware. This is a great feature but once the nvs_data.bin file (and keys/keyfile.bin) have been generated there doesn't seem to be a way to actually flash them to the esp32 directly from within the sdk extension. I am able to get around this by manually running esptool.py however this breaks my use of the extension for flashing and so I'm going back and forth to the terminal each time I need to modify what i'm puttin in the NVS at flash time.

Describe the solution you'd like

I'd love to be able to add additional args to the flash command from within the extension itself and tell it to flash the additional files to the appropriate partitions.

Describe alternatives you've considered

I dont have any brilliant ideas except just manually scripting things. I hope I am just missing something and there is a good way to do this directly through the extension itself.

@granolocks granolocks added the Feature / Enhancement Request Request for Feature/ Enhancement label Oct 10, 2024
@github-actions github-actions bot changed the title [Feature Request]: Add support for modifying Flash command with custom NVS bin [Feature Request]: Add support for modifying Flash command with custom NVS bin (VSC-1503) Oct 10, 2024
@igrr
Copy link
Member

igrr commented Oct 10, 2024

Could you please take a look at https://github.com/espressif/esp-idf/tree/master/examples/storage/nvsgen example and see if it meets your needs?
You only need to add one line to your component CMakeLists file:

https://github.com/espressif/esp-idf/blob/6e5a178b3120dced7fa5c29c655cc22ea182df3d/examples/storage/nvsgen/main/CMakeLists.txt#L8

@granolocks
Copy link
Author

@igrr Wow, yes this is exactly what I was looking for. I had to get a little creative as I was embedding files but I think this allows me to still keep using the extension based workflow I've been doing.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature / Enhancement Request Request for Feature/ Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants