From my limited knowledge I think you'd have to use a linker script
There's a ...linker?
That seems overly complected. In the memory examples we have this really useful function.
void bankfill(void)
{
uint8_t *addr;
uint8_t val;
uint16_t count;
for (addr=STARTADDR, count=COUNT; count; addr++, count--) {
val = (uint8_t)random(256);
*addr = val;
if ((count & 0xFFFU) == 0) blinkfast();
}
}
that plugs data directly into the memory by way of *addr. I'm willing to use that, but I also want to let the system "know" not to write there.
Is it OK to assume that because the bank is so low, using up the bottom 32k of memory, that nothing will overwrite because any program will assume only 8k memory space (The default for a 250 mega). I'm only using a maximum of < 50 bytes for my "normal" variables, so I would think that those should stay near the "top" of memory and nothing would ever get down to the 32k mark.