This PR uses the linker to allocate a portion of memory for SramPtr instead of relying on operator new.
It also uniformises the approach we take with SDRAM.
Finally it corrects a problem where for real, not the full 512KB section of SRAM was available, as around 2% was already taken. It makes sure that the linker would catch section overflow errors early.
This PR is preparation work for the upcoming semihosting support, for which operator new doesn't seem to be supported for some reason.
This PR uses the linker to allocate a portion of memory for
SramPtr
instead of relying onoperator new
.It also uniformises the approach we take with SDRAM. Finally it corrects a problem where for real, not the full 512KB section of SRAM was available, as around 2% was already taken. It makes sure that the linker would catch section overflow errors early.
This PR is preparation work for the upcoming semihosting support, for which
operator new
doesn't seem to be supported for some reason.