-
Notifications
You must be signed in to change notification settings - Fork 118
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
Question | Is there are something similar for setting/getting efuses? (ESF-12) #44
Comments
Hi, I am afraid there is no such project. Probably the simplest way to achieve this, would be to follow |
esp_loader_write_register and esp_loader_read_register is for internal reading of eFuses so it is not a solution for me. I am developing testing environment where FW is flashed over other MCU and I want to manually set eFuses to speed encryption process. But thanks for advice :) |
The function of configuring efuses is really important, such as when flash encryption is enabled. |
What do you mean by that? The question is if there is a library that can set eFuses from, for example, stm32 MCU. |
stm32 encrypted flash does not need to be configured with a eFuses (and there is no eFuses ),However, to enable flash encryption on esp32, eFuses must be configured for it to work. If you download the program through esp-serial-flasher, then you have to take it to your computer to configure eFuses https://docs.espressif.com/projects/esp-idf/en/v5.0.1/esp32/security/flash-encryption.html |
The problem is that self flash encryption takes to much time to complete in mass production. So I am exploring an idea to encrypt firmware partitions, that has to be encrypted, then flash that image, then set encryption bits and security bits and in the end run ESP32 FW. This could save plenty of time in mass production. The device that controls flashing is STM32F407. Device with ESP32 is connected to STM32 and STM32 is connected to local network with ethernet. |
Write fuses directly would be a blessing. I can leave a simple esp32 wroom board with production without the need for a PC. A kind of temporary solution is to flash a "pre-program" into the target device and make him write the adequate fuses and the "writer" would then write the correct program. |
bullshit... @MaValki is right. it's actualy easy:
A simple write function would be like this: `
} |
I am looking for library to set ant read efuses. Is there something like this project to control efuses?
The text was updated successfully, but these errors were encountered: