Skip to content

Conversation

@gibbz00
Copy link
Contributor

@gibbz00 gibbz00 commented Jun 30, 2025

Builds upon:

Remaining

  • I'm a bit lost on how to deal with LMA/VMA. esp-hal seems to just work
    without specifying any AT > REGION_TEXT, nor any loading from LMA to VMA in
    the init assembly. Does anyone know how come? @MabezDev? (Apologies for the ping.)
  • Use a specific region, i.e. REGION_TRAP, or a more general one, ex. REGION_TEXT_FAST?
  • Bike-shed feature flag and region names.

@MabezDev
Copy link
Member

MabezDev commented Jul 2, 2025

I'm a bit lost on how to deal with LMA/VMA. esp-hal seems to just work
without specifying any AT > REGION_TEXT, nor any loading from LMA to VMA in

It works in esp-hal because the elf isn't directly loadable/executable, we use a tool (espflash/probe-rs) to convert the elf to a format the ROM boot loader understands (https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/app_image_format.html), and fills in the load addresses for the various sections. At least, that's my recollection, I haven't touched these parts in a while 😅.

@gibbz00
Copy link
Contributor Author

gibbz00 commented Jul 3, 2025

Ok, thanks for pointing me in the right direction 😊 Closing this for now as I've realised that I want to explore some alternative ways forward.

@gibbz00 gibbz00 closed this Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants