This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Data in flash memory

Good morning, I'm working on a project with a STM32L476RGT6.
I need to save data in the internal flash memory, I just have to memorize some words and I would use one of the last sectors of memory.
What I want to know is how can I be sure that location is not occupied by the code? is there a way to set the compiler to not use certain memory locations for code and reserve it for the data? there are locations dedicated to data in which the compiler will never put code?
Thanks in advance.
Federico.