Is the first 32KB of flash before the partition table safe to use?
And if not, whats stored there?, whats it's purpose? I can't find anything documented about it so any pointers would be appreciated.
Whats in the Flash first 32KB before partition table.
Re: Whats in the Flash first 32KB before partition table.
There's a software bootloader at offset 0x1000. This is the first non-ROM program that the ESP32 runs after reset.
The first 4096 byte sector at 0x0 is used if the secure boot feature is enabled. If you don't need secure boot, you can safely use this sector for another purpose.
The first 4096 byte sector at 0x0 is used if the secure boot feature is enabled. If you don't need secure boot, you can safely use this sector for another purpose.
Re: Whats in the Flash first 32KB before partition table.
Ok, so this is it?ESP_Angus wrote:There's a software bootloader at offset 0x1000. This is the first non-ROM program that the ESP32 runs after reset.
https://github.com/espressif/esp-idf/bl ... er_start.c
So, it can in theory be customized, provided it does not exceed its 28K of available space?
-
- Posts: 9711
- Joined: Thu Nov 26, 2015 4:08 am
Re: Whats in the Flash first 32KB before partition table.
Yes, you're free to modify it however you want (but if it breaks, you get to keep both pieces).
Re: Whats in the Flash first 32KB before partition table.
I was pretty sure that was correct, however the confirmation is helpful. Thank you. [Breaking it, That's the fun part ]ESP_Sprite wrote:Yes, you're free to modify it however you want (but if it breaks, you get to keep both pieces).
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 68 guests