How to use all of SRAM?

I have an RCM4010, which has 512k of SRAM.
However, I can’t use more than about 16k of it… when I declare
static protected char data[1024*20]; //20k
I get an “out of variable data space” error, yet this is far less than 512k.

How can one use ALL 512k of SRAM?

Thanks,
-Dave

Lookup the keyword xmem is how the 3000 series do it; not sure on 4000 series.

Yeah, but this doesn’t allow you to store stuff there between power cycles & resets.
xalloc() just grabs a chunk of memory from the pool, there’s no way to spec the address.