ESP-Wrover-Kit V4.1 reading internal SRAM
Posted: Mon Nov 07, 2022 12:01 am
I am trying to read the internal SRAM of ESP-Wrover-Kit V4.1. I must read SRAM on its power on before being writen by any other code. I am using the example ''bootloader_override'' . I inserted the following C code in call_start_cpu0.
but when I run my code I am getting the following error
entry 0x400806a4
start1 /nc Fatal exception (28): LoadProhibited
epc1=0x40008044, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000b, depc=0x00000000
Is there any way to read SRAM at this point ?
Code: Select all
char *p = (char *)0x3FFE0000;
void __attribute__((noreturn)) call_start_cpu0(void)
{
esp_rom_printf("start1 /n");
char first_byte = p[0];
esp_rom_printf("c %s",first_byte);
}
entry 0x400806a4
start1 /nc Fatal exception (28): LoadProhibited
epc1=0x40008044, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000b, depc=0x00000000
Is there any way to read SRAM at this point ?