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

Linker Script and Assigning a value to a specific address

Hello,
I want to keep some variables in my code at certain addresses. For this, I created a new section in the LD file to reserve a certain area from the existing FLASH memory. I wait for the variable I created by typing __attribute__((section(".flash_rw.__at_0x000...))) to write to the address I specified. However, it writes the value to a completely different address in the section I created. I use arm-none-eabi-. GNU Arm Embedded Toolchain version 10 2021.10.

The output of the code is as follows;

Top replies

0