esp-hal
esp-hal copied to clipboard
Linker script appears to not match the comments
I am new to linker scripts, but as I was reading through the db-esp32c3-memory.x, I saw line 7 which states in a comment that the DRAM region goes from [0x3FC80000, 0x3FCE0000], However, Line 22 states that the length of the DRAM region is 0x50000, which would mean that dram ends at 0x3FCD0000 instead of 0x3FCE0000.
Which is the intended ending address for the region? Why does it diverge from the comment?
Parts of that upper memory is also used by ROM functions etc. AFAIK. Plus (not really applies here since it's direct-boot) the 2nd stage bootloader uses some memory there that can't be touched before the application starts (i.e. no data should be loaded there by 2nd stage bootloader since it would overwrite its own memory)
I'm not sure there's really anything actionable here so I'm going to close this. Feel free to re-open if you feel otherwise.