I am using the IAR toolset, and the device is MKE02Z64. I have several constant values that I'd like to place in flash memory (if possible) to free up RAM, but I cannot find a way to do this with the IAR tools.
Initially, I just had a fairly standard: const uint16_t foobar;
That still placed foobar in data memory. I next tried (based on something I found online): const volatile uint16_t foobar @ "FLASH";
This did not generate any errors or warnings, but foobar is still in data memory, not code memory.
Can this be done? If so, how?