3.5.1 Linker File Modifications

  1. Assign a text section to serial Flash memory and a data section to the relocate section. The data section is copied from the serial Flash memory to SRAM during runtime.
  2. Remove cache aligned sections and assign _ramcode_lma and _ramdata_lma to SRAM.

An example linker file of SAMA7G54-EK is given in the screenshots below.

Note: The text section load address should match the serial Flash jump address configured in the at91bootstrap.