HOWTO: Place custom data into flash memory

Document created by Martin Kovar Employee on Nov 12, 2018Last modified by Jiri Kral on Nov 12, 2018
Version 2Show Document
  • View in full screen mode

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.

  • 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.

 

  • Map file should looks like this way

 

Hope it helps.

Martin

Attachments

    Outcomes