I did a test where I wrote 0xDEADBEEF to the end of my .text and then looked for the same value in data memory, and there it was.
I guess this is just me misunderstanding how the memory is represented but it feels like the documentation could've done a better job.
Thank you all for your help, this ...
Search found 7 matches
- Tue Jul 22, 2025 3:55 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
- Tue Jul 22, 2025 3:04 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
Re: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
SRAM1 is accessed over the data bus at 0x3fc88000 or the instruction bus at 0x40378000. It's the same physical memory. When you clear 0x3fc88000 you are also clearing 0x40378000.
That doesn't make any sense. If the case is it's the same physical memory but accessed differently by the ...
- Tue Jul 22, 2025 12:11 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
Re: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
Have you tried debugging this using the JTAG port (embedded in the USB-serial-JTAG device)? I'd try using that to set a breakpoint on that address, see if anything else reads it.
All right, after looking into this with JTAG I found out interesting details I was not expecting. Thank you again ...
- Mon Jul 21, 2025 1:45 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
Re: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
Did not think of that...Have you tried debugging this using the JTAG port (embedded in the USB-serial-JTAG device)? I'd try using that to set a breakpoint on that address, see if anything else reads it.
I will come back after I do that, thank you for the suggestion!
- Mon Jul 21, 2025 12:24 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
Re: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
I do not mean to bump up my own post, but I do have some news in the event someone else runs into the same issue.
I discovered that if I simply write the same exact memory to itself nothing happens, which indicates that the memory area itself is accessible both in read and write. Then I also tried ...
I discovered that if I simply write the same exact memory to itself nothing happens, which indicates that the memory area itself is accessible both in read and write. Then I also tried ...
- Thu Jul 17, 2025 6:13 pm
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
Re: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
No, I have it residing in instruction memory, 0x40378000.The vector table doesn't reside in the SRAM1 you're overwriting, right?Also, I have my vector table in place and interrupts working,
- Thu Jul 17, 2025 12:45 am
- Forum: General Discussion
- Topic: ESP32S3 Bare-Metal Hang on Data SRAM1 Write
- Replies: 10
- Views: 472
ESP32S3 Bare-Metal Hang on Data SRAM1 Write
Hello there!
I'm doing a project with my ESP32S3 that is bare-metal, and so as a result I have to develop the bootloader and kernel (or otherwise however I want to use the resources) myself.
In my bootloader I want to zero out sections of SRAM1 Data memory, but if I do this at around >1024 bytes ...
I'm doing a project with my ESP32S3 that is bare-metal, and so as a result I have to develop the bootloader and kernel (or otherwise however I want to use the resources) myself.
In my bootloader I want to zero out sections of SRAM1 Data memory, but if I do this at around >1024 bytes ...