Did you have a look at
Code: Select all
esp_flash_encryption_set_release_mode()
You can call this to switch from development to release encryption.
It will burn the corresponding efuses for release encryption
Code: Select all
esp_flash_encryption_set_release_mode()