ESP-WROVER-KIT V4.1 Custom bootloader hooks read memory

satsok_n
Posts: 2
Joined: Tue Jun 21, 2022 1:38 pm

ESP-WROVER-KIT V4.1 Custom bootloader hooks read memory

Postby satsok_n » Fri Feb 10, 2023 11:17 am

I am using the ESP-WROVER-KIT V4.1. I am running the bootloader_hooks example. I am trying to read SRAM within the 'bootloader_before_init' function.
  1. void bootloader_before_init(void) {
  2.     /* Keep in my mind that a lot of functions cannot be called from here
  3.      * as system initialization has not been performed yet, including
  4.      * BSS, SPI flash, or memory protection. */
  5.  
  6.     char *p = (char *)0x400A0000;
  7.     char first_byte = p[0];
  8.    
  9.     ESP_LOGI("HOOK", "This hook is called BEFORE bootloader initialization");
  10. }
Is there any way of reading memory at that point?

Who is online

Users browsing this forum: impishbynature and 106 guests