How to place a variable at a specific address

2021-02-10
Normally, the placement of variables is decided by the compiler, but if it is a global variable, it is possible to specify the placement order and address for each section. Edit the linker script as shown below and adapt the source code to this linker script.
For example, if you want to assign an array called unsigned char test [16] to address 0x100, make the linker script and source code as follows.

EPSON

More

More

FAQ

More

More

Please see the document for details

More

More

English Chinese Chinese and English Japanese

2021/01/25

327 KB

- The full preview is over. If you want to read the whole 3 page document,please Sign in/Register -
  • +1 Like
  • Add to Favorites

Recommend

All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.

Contact Us

Email: