Tool/software: Code Composer Studio
I couldn't find this with a bit of digging.
#pragma PERSISTENT puts global variables to FRAM as expected. This is fine and good but if I have a local 256 byte array, it'd be nice to be able to store that to FRAM instead of SRAM as well. 1/8th of 2kB SRAM right there.
As far as I can tell, you can only assign global variables to FRAM, period. Is there a (sane) way around this somehow? Obviously for conventional thinking, using a bunch of global variables is double plus ungood and you have to maintain some kind of naming scheme etc to tie a particular global array to a particular function. This also does mean you're allocating more memory than you really need since you're always keeping "foo[256]" and "bar[256]" allocated in memory although they may not be needed simultaneously.