HOWTO: Place custom data into flash memory

cancel
Showing results for 
Search instead for 
Did you mean: 

HOWTO: Place custom data into flash memory

No ratings

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

Version history
Revision #:
1 of 1
Last update:
‎11-12-2018 02:57 AM
Updated by: