You copied the Doc URL to your clipboard.

--device=name linker option

Selects a specific microcontroller or System-on-Chip (SoC) device.

--device= name where name is a specific device name.

To get a full list of the available devices, use the --device=list option.


The link phase fails if any of the component object files rely on features that are incompatible with the selected processor. The linker also uses this option to optimize the choice of system libraries and any veneers that need to be generated when building the final image. The default is to select a device that is compatible with all of the component object files.


This option is deprecated.

Was this page helpful? Yes No