Skip to content

Commit 90a9631

Browse files
committed
Initial toolchain class for ARMC6
While ARMC6 does use the same linker (armlink) as ARM Compiler 5, it is not compatible. The reason for this incompatibility are twofold: * armlink may invoke the C preprocessor by adding a shebang (`#!`) to the top of their input files. * ARMC6 and ARMC5 differ in how you invoke the preprocessor: * ARMC5: `#! armcc -E` * ARMC6: `#! armclang -E` This does not yet handle dependencies properly
1 parent 99a8467 commit 90a9631

File tree

55 files changed

+152
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+152
-267
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MK66FN2M0VLQ18

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/device/TOOLCHAIN_ARM_STD/MK82FN256xxx15.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MK82FN256CAx15

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/device/TOOLCHAIN_ARM_STD/MKL27Z64xxx4.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MKL27Z64VDA4

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/device/TOOLCHAIN_ARM_STD/MKL43Z256xxx4.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MKL43Z256VLH4

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/device/TOOLCHAIN_ARM_STD/MKL82Z128xxx7.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MKL82Z128VLH7

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/device/TOOLCHAIN_ARM_STD/MKW24D512xxx5.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processor: MKW24D512VHA5

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/device/TOOLCHAIN_ARM_STD/MKW41Z512xxx4.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processor: MKW41Z512VHT4

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/device/TOOLCHAIN_ARM_STD/MK22FN512xxx12.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MK22FN512CAP12

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K24F/TARGET_MCU_K24F1M/device/TOOLCHAIN_ARM_STD/MK24FN1M0xxx12.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MK24FN1M0CAJ12

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: MK64FN1M0CAJ12

targets/TARGET_NUVOTON/TARGET_M451/device/TOOLCHAIN_ARM_MICRO/M453.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_M451/device/TOOLCHAIN_ARM_STD/M453.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_ARM_MICRO/M487.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_ARM_STD/M487.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_MICRO/TARGET_NU_XRAM_SUPPORTED/NUC472.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_MICRO/TARGET_NU_XRAM_UNSUPPORTED/NUC472.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_STD/TARGET_NU_XRAM_SUPPORTED/NUC472.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_STD/TARGET_NU_XRAM_UNSUPPORTED/NUC472.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
#if !defined(MBED_APP_START)
44
#define MBED_APP_START 0x00000000

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/device/TARGET_LPC54114_M4/TOOLCHAIN_ARM_STD/LPC54114J256_cm4.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: LPC54114J256BD64_cm4

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54608/device/TOOLCHAIN_ARM_STD/LPC54608J512.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
/*
33
** ###################################################################
44
** Processors: LPC54608J512BD208

targets/TARGET_ONSEMI/TARGET_NCS36510/device/TOOLCHAIN_ARM/NCS36510.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22

33
LR_IROM1 0x00003000 0x0004F000 { ; load region size_region
44
ER_IROM1 0x00003000 0x0004F000 { ; load address = execution address

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_ARM_MICRO/stm32f412xg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2017, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/TOOLCHAIN_ARM_STD/stm32f412xg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2017, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/TOOLCHAIN_ARM_STD/stm32f429xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/TOOLCHAIN_ARM_STD/stm32f437xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/TOOLCHAIN_ARM_MICRO/stm32f439xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/TOOLCHAIN_ARM_STD/stm32f439xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_ARM_STD/stm32l151rc.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_ARM_MICRO/stm32l475xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_ARM_STD/stm32l475xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_ARM_STD/stm32l476xx.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; Scatter-Loading Description File
33
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
44
; Copyright (c) 2015, STMicroelectronics

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/device/TARGET_1024K/TOOLCHAIN_ARM_MICRO/efm32gg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/device/TARGET_1024K/TOOLCHAIN_ARM_STD/efm32gg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/device/TARGET_64K/TOOLCHAIN_ARM_MICRO/efm32hg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/device/TARGET_256K/TOOLCHAIN_ARM_MICRO/efm32lg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/device/TARGET_256K/TOOLCHAIN_ARM_STD/efm32lg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG/device/TARGET_256K/TOOLCHAIN_ARM_MICRO/efm32pg1b.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG/device/TARGET_256K/TOOLCHAIN_ARM_STD/efm32pg1b.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/TOOLCHAIN_ARM_STD/efr32pg12b.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG/device/TARGET_256K/TOOLCHAIN_ARM_MICRO/efm32wg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG/device/TARGET_256K/TOOLCHAIN_ARM_STD/efm32wg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG/device/TARGET_32K/TOOLCHAIN_ARM_MICRO/efm32zg.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG1/device/TOOLCHAIN_ARM_STD/efr32mg1p.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/TOOLCHAIN_ARM_STD/efr32mg12p.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! armcc -E
1+
#! armclang -E --target=arm-arm-none-eabi -x c
22
; *************************************************************
33
; *** Scatter-Loading Description File generated by uVision ***
44
; *************************************************************

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
"K64F": {
601601
"supported_form_factors": ["ARDUINO"],
602602
"core": "Cortex-M4F",
603-
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
603+
"supported_toolchains": ["ARM", "GCC_ARM", "IAR", "ARMC6"],
604604
"extra_labels": ["Freescale", "MCUXpresso_MCUS", "KSDK2_MCUS", "FRDM", "KPSDK_MCUS", "KPSDK_CODE", "MCU_K64F"],
605605
"is_disk_virtual": true,
606606
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"],

tools/memap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,7 @@ def parse(self, mapfile, toolchain):
769769
# Common to all toolchains: first search for objects in BUILD
770770
self.list_dir_obj(os.path.abspath(mapfile))
771771

772-
if toolchain == "ARM" or toolchain == "ARM_STD" or\
773-
toolchain == "ARM_MICRO":
772+
if toolchain in ("ARM", "ARM_STD", "ARM_MICRO", "ARMC6"):
774773
self.parse_map_file_armcc(file_input)
775774
elif toolchain == "GCC_ARM" or toolchain == "GCC_CR":
776775
self.parse_map_file_gcc(file_input)

tools/profiles/debug.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,11 @@
1616
"-Wl,-n"]
1717
},
1818
"ARM": {
19-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
20-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
21-
"--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG",
22-
"-DMBED_TRAP_ERRORS_ENABLED=1"],
23-
"asm": [],
24-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
25-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
26-
"ld": []
27-
},
28-
"uARM": {
29-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
30-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
31-
"--multibyte_chars", "-O0", "-D__MICROLIB", "-g",
32-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG",
33-
"-DMBED_TRAP_ERRORS_ENABLED=1"],
19+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O0"],
3420
"asm": [],
35-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
36-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
37-
"ld": ["--library_type=microlib"]
21+
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
22+
"cxx": ["-fno-rtti", "-std=gnu++98"],
23+
"ld": ["--verbose", "--remove"]
3824
},
3925
"IAR": {
4026
"common": [

tools/profiles/develop.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,11 @@
1515
"-Wl,-n"]
1616
},
1717
"ARM": {
18-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
19-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
20-
"--multibyte_chars", "-O3"],
18+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os", "-flto"],
2119
"asm": [],
22-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
23-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
24-
"ld": []
25-
},
26-
"uARM": {
27-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
28-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
29-
"--multibyte_chars", "-O3", "-D__MICROLIB",
30-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD"],
31-
"asm": [],
32-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
33-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
34-
"ld": ["--library_type=microlib"]
20+
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
21+
"cxx": ["-fno-rtti", "-std=gnu++98"],
22+
"ld": ["--lto", "--lto_level=Os"]
3523
},
3624
"IAR": {
3725
"common": [

tools/profiles/release.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,11 @@
1515
"-Wl,-n"]
1616
},
1717
"ARM": {
18-
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
19-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
20-
"--multibyte_chars", "-O3", "-DNDEBUG"],
18+
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz", "-DNDEBUG", "-flto"],
2119
"asm": [],
22-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
23-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
24-
"ld": []
25-
},
26-
"uARM": {
27-
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
28-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
29-
"--multibyte_chars", "-O3", "-D__MICROLIB",
30-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DNDEBUG"],
31-
"asm": [],
32-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
33-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
34-
"ld": ["--library_type=microlib"]
20+
"c": ["-D__ASSERT_MSG", "-std=gnu99"],
21+
"cxx": ["-fno-rtti", "-std=gnu++98"],
22+
"ld": ["--lto", "--lto_level=Oz"]
3523
},
3624
"IAR": {
3725
"common": [

0 commit comments

Comments
 (0)