Associate III
February 7, 2022
Question
Allocate user defined section on FLASH with constant value
- February 7, 2022
- 3 replies
- 4940 views
I'm using STM32F427.
I want to declare the variable as a custom section and use it in a specific address area on the MCU FLASH.
I change the *.ld file, declare that the variables are assigned to the designated section, so the compile becomes normal, and when I check the *.lst file and *.map file, I can confirm that they are assigned normally.
However, in the Memory Regions window of Build Analyzer on CubeIDE, the usage of the custom section is displayed as 0%.
(In the attached image CCMRAM and FLSHOPT region)
And it is not possible to check the variable value of the designated area during the actual Debug.
How can I solve this problem?
Please give me some advice.
Thank you.
Best regards.
