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

Declaring a constant structure in flash memory without initialization

Hello everyone!

I am using Keil uVision 5.28 with Compiler V6.12.

How to declare a constant structure in flash memory so that it is not initialized by programmer / debugger and functions from scatterloader?

I'm looking at document https://static.docs.arm.com/100748/0609/compiler_user_guide_100748_0609_00_en.pdf.

There is an example on page 120 for peripheral registers, but it does not quite suit me, since there can be many such structures, and I do not want to make many files for each structure.

Now I have limited the size of the flash memory in the scatter file and refer to the structure at an absolute address.
Maybe there is some other, more correct solution?

Parents Reply Children
No data