-
Notifications
You must be signed in to change notification settings - Fork 49
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
[DOC]Unable to boot firmware with the Secure Boot enabled bootloader #118
Comments
Can you please provide more logs and the steps you followed? |
HI @GASEN1216, Best, |
Hi @rawalexe , Step 1: I have successfully run the example without secure mode Step 2: I turned on the two options mentioned in the document Step 3: I turned on the flash encrypted project Step 4: I burned the encrypted certificate as the document said Step 5: I generated the certificate and set up secure boot Step 6: I built and burned the project Is it because I did not build the bootloader with the certificate and secure boot set up in step 5, and the bootloader burned was the bootloader before the secure boot was built, which caused my error? Thanks, |
Hi @jasonpcarroll , |
So first you need to run idf.py menuconfig and set the appropriate flags for secure boot to be enabled. THEN, you need to build the bootloader with idf.py bootloader. After running idf.py bootloader you need to run the command it prints out with (PORT) and (BAUD) replaced with your port and baud rate. In our example, it shows the command below, but it will probably print out a slightly different command for you since you are on an s3. When you use secure boot - idf.py flash will not flash the bootloader. You need to manually do it using the command like the one below that it prints out when you run idf.py bootloader. At least that is my understanding. I hope this helps.
|
@dhavalgujar - would you mind taking a look here? |
Hi @GASEN1216,
It should be possible to recover the device by re-flashing all the binaries with the But, in order to better assess the situation, can you please provide the following:
|
Hi @jasonpcarroll , |
Awesome! Just to be clear, was there any discrepancy in the documentation? |
The documentation is correct. I don't know if I misunderstood it, but when I first read it I thought it was only the second block that needed to be run. It would be nice if you could add a reminder to the documentation to remind people not to miss the first block. |
I followed the steps in the document(https://github.com/FreeRTOS/iot-reference-esp32/blob/main/UseSecurityFeatures.md), but when I got to step 6, something went wrong. After burning it in, it prompted the following error message. I don't know why? Can anyone help me?
The text was updated successfully, but these errors were encountered: