HOWTO: Place custom data into flash memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HOWTO: Place custom data into flash memory

HOWTO: Place custom data into flash memory

This document describes a way, how to place custom constant data into specific flash memory area.

  • Create a custom linker section in the linker file (.ld), where custom data should be placed into. pastedImage_3.png

    pastedImage_4.png

  • Use the KEEP keyword in case you would like to avoid dead stripping if and object is not referenced.

  • add the __attribute__ section statements to the custom data definition.pastedImage_5.png

  • Map file should looks like this way
  • pastedImage_7.png

Hope it helps.

Martin

无评分
版本历史
最后更新:
‎11-12-2018 02:57 AM
更新人: