Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic vMicro and eps32 Secure Boot (Read 109 times)
kondratevAd
Newbies
*
Offline


Posts: 1
Joined: Oct 27th, 2025
vMicro and eps32 Secure Boot
Oct 27th, 2025 at 12:06pm
Print Post  
Hi. How can I flash an esp32 with the "Secure Boot" feature enabled?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2812
Joined: Feb 13th, 2019
Re: vMicro and eps32 Secure Boot
Reply #1 - Oct 27th, 2025 at 12:32pm
Print Post  
To my knowledge there is no Arduino compatible way to use the Secure boot feature currently which is fully supported (and the IDF Bootloader is generally reccomended for Secure Boot as well).  It also requires modification of partitions.csv as well as efuse bits (one way once burned), so it can easily brick a device).

It may be possible by using IDF to generate the encryption key, and then encrypt your Arduino compiled firmware, then upload both to the board.
(e.g. This guide shows using PIO Binaries and IDF, but its the same process in Arduino IDE/Visual Micro instead of PIO).

It can also theoretically be done without IDF, but you are highly liker to run into serious issues with the bootloader from Arduino (as it is not aware of the encryption features and cannot be recompiled in the Arduino IDE).

Generally it may be better to use ESP-IDF along with Arduino as a component (essentially the reverse of the Arduino Board Package which has IDF as a component), however most code can remain the same.

If we find a way to implement this in Visual Micro safely and reliably we will update this thread.
« Last Edit: Oct 27th, 2025 at 12:54pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint