6.4 Adding Custom Linker Script to MPLAB Harmony v3 Project

The MPLAB Harmony v3 project uses a default linker script that comes with MPLAB X IDE installation. A few projects might need custom linker scripts. The MPLAB Harmony v3 supports adding custom linker scripts to a project. Use the following steps to include the correct linker script in the project:

  1. Right-click on the Linker Files folder in project > Add Existing item > select specific linker script which needs to be linked.
  2. Project Properties > XC32 global options > xc32-ld > Additional options > add linker switch to use the following linker file for linking, [-T ..\..\..\yy\xxxx.ld].