ESP32 - Determine "flash_user_start" from build outputs #10197
Unanswered
git-n-pissed
asked this question in
ESP32
Replies: 1 comment 7 replies
-
@git-n-pissed On ESP32 the value of flash_user_start is hard coded to exactly that value. See https://github.com/micropython/micropython/blob/master/ports/esp32/modesp.c#L96 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When building for the ESP8266 I'm able to read the ELF output and determine the value that would be returned by
esp.flash_user_start()
, but the ELF file for an ESP32 build does not contain that information. I've grep'ed the other build outputs for the decimal and hex value I'm expecting (2097152 bytes for an 8MB ESP32-S3), but I'm not finding it. Is there someway I can glean the flash user start value after a build so I can use it in my build scripts instead of having to hard code a value per board being targeted?Beta Was this translation helpful? Give feedback.
All reactions