Code: Untitled.c Select all
void bootloader_before_init(void) {
/* Keep in my mind that a lot of functions cannot be called from here
* as system initialization has not been performed yet, including
* BSS, SPI flash, or memory protection. */
char *p = (char *)0x400A0000;
char first_byte = p[0];
ESP_LOGI("HOOK", "This hook is called BEFORE bootloader initialization");
}