Hello AjRj14,
You need modify the *.prm file for this MCU – select such FLASH space for this variable:

In “SEGMENTS” define “ROM_VAR_SPACE” (I selected small part of FLASH);
Then in “PLACEMENT” tell linker ROM_VAR data must be placed to ROM_VAR_SPACE.
Then in main.c use:

The ROM_Variable is the variable saved in defined FLASH position.
I hope it could help you.
Best Regards,
Stano.