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

Creating esp32 image failes since compiler update? (IDFGH-7593) #9148

Closed
0xFEEDC0DE64 opened this issue Jun 13, 2022 · 3 comments
Closed

Creating esp32 image failes since compiler update? (IDFGH-7593) #9148

0xFEEDC0DE64 opened this issue Jun 13, 2022 · 3 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@0xFEEDC0DE64
Copy link
Contributor

I'm compiling our existing firmware repo and after switching to the newest esp-idf version I got thousands of compiler errors, seems like gcc was finally updated from 8.4.0 to 11.2 (yea!).

But now after fixing all my compiler errors and linker errors I fail at the last step?

Creating esp32 image...
Merged 25 ELF sections

A fatal error occurred: secure_pad only applies if a SHA-256 digest is also appended to the image
ninja: build stopped: subcommand failed.

We are using secure boot and flash encryption

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 13, 2022
@github-actions github-actions bot changed the title Creating esp32 image failes since compiler update? Creating esp32 image failes since compiler update? (IDFGH-7593) Jun 13, 2022
@boarchuz
Copy link
Contributor

Check that ESPTOOLPY_FLASHSIZE_DETECT ("Detect flash size when flashing bootloader") is disabled.

There was a recent change to the default value for this (y->n), and --dont-append-digest is now passed to elf2image when set.

This means that most existing projects will now rebuild without appending a SHA256 to the image after updating IDF as their sdkconfig will have ESPTOOLPY_FLASHSIZE_DETECT set by default.

@0xFEEDC0DE64
Copy link
Contributor Author

thanks, that fixed it.

@espressif-bot espressif-bot added Resolution: Won't Do This will not be worked on Status: Done Issue is done internally and removed Status: Opened Issue is new labels Jun 14, 2022
@igrr igrr reopened this Jun 14, 2022
@igrr
Copy link
Member

igrr commented Jun 14, 2022

Thanks for confirming this is indeed the case. Will keep this issue open until the fix is released.

@espressif-bot espressif-bot added Status: Opened Issue is new and removed Resolution: Won't Do This will not be worked on Status: Done Issue is done internally labels Jun 14, 2022
@espressif-bot espressif-bot added Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Opened Issue is new Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants