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.
This would be the linkers job, and you would do this by shrinking the size in the target options pane or a scatter file if you use one.
Many thanks