Skip to main content
lgacnik97
Associate II
May 25, 2023
Question

Linker Command-line Options not recognized with

  • May 25, 2023
  • 2 replies
  • 2435 views

I'm migrating from Keil uVision to VS Code, where I provide my own set-up of build flags for ARMCC toolchain. The version of tools I'm using for building my application are the following:


_legacyfs_online_stmicro_images_0693W00000bkpuy.pngI'm trying to use certain linker options that would allow me to use GCC-based linker file .ld. Otherwise by default a .sct or .**** file is used to define application memory layout.

For example, both Keil and my VS Code setup use this version of ARM toolchain. However, Keil is allowed to use linker options like "--scatter", "--list", "--info". Whereas when using ARMCC and ARMLINK from VS Code, I get error:

Fatal error: C3900U: Unrecognized option '--scatter sct_file_name.stc'

And for a reference, I'm using this documentation from ARM to identify and properly use compiler/assembler/linker options. So my question would be, why I cannot use these options although ARMLINK documentation (of the ARMLINK version I use) provides syntax for them? 

This topic has been closed for replies.

2 replies

Pavel A.
Super User
May 25, 2023
lgacnik97
lgacnik97Author
Associate II
May 25, 2023

I have already found the solution to this problem. Thank you for the information.