Search found 3 matches
- Mon Apr 18, 2022 7:52 am
- Forum: General Discussion
- Topic: Reading initialization data (in flash) for variables
- Replies: 6
- Views: 2823
Re: Reading initialization data (in flash) for variables
And if you declare a section in an ld script, and declare variables in this section. Is there an example of a section declaration and how to declare variables?
- Mon Apr 18, 2022 7:36 am
- Forum: General Discussion
- Topic: Reading initialization data (in flash) for variables
- Replies: 6
- Views: 2823
Re: Reading initialization data (in flash) for variables
Thanks for reply!
I have a lot of variables. Lots of code from code generator. This may increase read-only data and searches are needed!
Would like to be able to access the data section in flash.
I have a lot of variables. Lots of code from code generator. This may increase read-only data and searches are needed!
Would like to be able to access the data section in flash.
- Mon Apr 18, 2022 5:39 am
- Forum: General Discussion
- Topic: Reading initialization data (in flash) for variables
- Replies: 6
- Views: 2823
Reading initialization data (in flash) for variables
How to read initialization data values for variables? I want to know if the value of a variable has changed, compared to the initialization value. Global var: int abc = 124; In stm32: address VAR in data (flash) = "start section of data in flash" + ("address VAR in ram" - "start data section in ram"...