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

Question about app image format and bootloader #806

Closed
coolwanglu opened this issue Mar 7, 2025 · 2 comments
Closed

Question about app image format and bootloader #806

coolwanglu opened this issue Mar 7, 2025 · 2 comments

Comments

@coolwanglu
Copy link

I'm using ESP32S3. I enabled Flash Encryption using a hello world ESP-IDF project. Then I flashed my esp-rs project (without bootloader), but it stopped working. The bootloader complained someting about "efuse blk revision", but I think it's just bad image data.

I compared the image of the ESP-IDF project and the esp-rs project. Both have the esp_image_header_t header, but the esp-rs binary does not have the app description header.

Image

It works if I use the bootloader from esp-rs, (generate a merged image, encrypt and flash).

Is this expected? I thought the bootloader is generic, but maybe something changed between v5.1 and v5.4?

Not sure if this is related to #745

@jessebraham
Copy link
Member

I'm not sure what you're referring to by esp-rs exactly (this is just the name of the organization), but I'm assuming you mean a project using esp-hal?

We just recently merged a PR adding support for the ESP-IDF application descriptor (esp-rs/esp-hal#3124), so using the main branch should resolve the problem when using the latest ESP-IDF bootloader.

Alternatively, using an older version of the bootloader, such as the one currently bundled with espflash, should work as well. IIRC this descriptor was added in ESP-IDF 5.3 (plus or minus a release).

@coolwanglu
Copy link
Author

coolwanglu commented Mar 7, 2025

Yeah, I meant an esp-hal project.
Thank a lot for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants