aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lpc176x
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-21 21:02:48 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-09-06 13:49:16 -0400
commit97af0b3cb052651f200f79add9ef822ded7c5ba2 (patch)
tree17a89bfe0de090cbe633f4e3b21c4e0f20eb003a /lib/lpc176x
parenta344f6d2ad5258e1e58722bd6b63d8f993e36548 (diff)
downloadkutter-97af0b3cb052651f200f79add9ef822ded7c5ba2.tar.gz
kutter-97af0b3cb052651f200f79add9ef822ded7c5ba2.tar.xz
kutter-97af0b3cb052651f200f79add9ef822ded7c5ba2.zip
lib: Remove now unused ARM Cortex-M linker scripts and boot assembly
Remove the unused files for those boards converted to use the armcm_boot mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/lpc176x')
-rw-r--r--lib/lpc176x/device/TOOLCHAIN_GCC_ARM/LPC1768.ld184
-rw-r--r--lib/lpc176x/device/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S223
2 files changed, 0 insertions, 407 deletions
diff --git a/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/LPC1768.ld b/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/LPC1768.ld
deleted file mode 100644
index a4a05fcb..00000000
--- a/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/LPC1768.ld
+++ /dev/null
@@ -1,184 +0,0 @@
-/* Linker script for mbed LPC1768 */
-#if !defined(MBED_APP_START)
- #define MBED_APP_START 0x00000000
-#endif
-
-#if !defined(MBED_APP_SIZE)
- #define MBED_APP_SIZE 512K
-#endif
-/* Linker script to configure memory regions. */
-MEMORY
-{
- FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
- RAM (rwx) : ORIGIN = 0x100000C8, LENGTH = (32K - 0xC8 - 32) /* topmost 32 bytes used by IAP functions */
-
- USB_RAM(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
- ETH_RAM(rwx) : ORIGIN = 0x20080000, LENGTH = 16K
-}
-
-/* Linker script to place sections and symbol values. Should be used together
- * with other linker script that defines memory regions FLASH and RAM.
- * It references following symbols, which must be defined in code:
- * Reset_Handler : Entry of reset handler
- *
- * It defines following symbols, which code can use without definition:
- * __exidx_start
- * __exidx_end
- * __etext
- * __data_start__
- * __preinit_array_start
- * __preinit_array_end
- * __init_array_start
- * __init_array_end
- * __fini_array_start
- * __fini_array_end
- * __data_end__
- * __bss_start__
- * __bss_end__
- * __end__
- * end
- * __HeapLimit
- * __StackLimit
- * __StackTop
- * __stack
- */
-ENTRY(Reset_Handler)
-
-SECTIONS
-{
- .text :
- {
- KEEP(*(.isr_vector))
- /* Code Read Protect data */
- . = 0x000002FC ;
- KEEP(*(.CRPSection))
- /* End of Code Read Protect */
- *(.text*)
-
- KEEP(*(.init))
- KEEP(*(.fini))
-
- /* .ctors */
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
- *(SORT(.ctors.*))
- *(.ctors)
-
- /* .dtors */
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
- *(SORT(.dtors.*))
- *(.dtors)
-
- *(.rodata*)
-
- KEEP(*(.eh_frame*))
-
-
- } > FLASH
-
- .ARM.extab :
- {
- *(.ARM.extab* .gnu.linkonce.armextab.*)
- } > FLASH
-
- __exidx_start = .;
- .ARM.exidx :
- {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- } > FLASH
- __exidx_end = .;
-
- __etext = .;
-
- .data : AT (__etext)
- {
- __data_start__ = .;
- Image$$RW_IRAM1$$Base = .;
- *(vtable)
- *(.data*)
-
- . = ALIGN(4);
- /* preinit data */
- PROVIDE (__preinit_array_start = .);
- KEEP(*(.preinit_array))
- PROVIDE (__preinit_array_end = .);
-
- . = ALIGN(4);
- /* init data */
- PROVIDE (__init_array_start = .);
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- PROVIDE (__init_array_end = .);
-
-
- . = ALIGN(4);
- /* finit data */
- PROVIDE (__fini_array_start = .);
- KEEP(*(SORT(.fini_array.*)))
- KEEP(*(.fini_array))
- PROVIDE (__fini_array_end = .);
-
- . = ALIGN(4);
- /* All data end */
- __data_end__ = .;
-
- } > RAM
-
-
- .bss :
- {
- __bss_start__ = .;
- *(.bss*)
- *(COMMON)
- __bss_end__ = .;
- Image$$RW_IRAM1$$ZI$$Limit = . ;
- } > RAM
-
-
- .heap :
- {
- __end__ = .;
- end = __end__;
- *(.heap*)
- __HeapLimit = .;
- } > RAM
-
- /* .stack_dummy section doesn't contains any symbols. It is only
- * used for linker to calculate size of stack sections, and assign
- * values to stack symbols later */
- .stack_dummy :
- {
- *(.stack)
- } > RAM
-
- /* Set stack top to end of RAM, and stack limit move down by
- * size of stack_dummy section */
- __StackTop = ORIGIN(RAM) + LENGTH(RAM);
- __StackLimit = __StackTop - SIZEOF(.stack_dummy);
- PROVIDE(__stack = __StackTop);
-
- /* Check if data + heap + stack exceeds RAM limit */
- ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
-
-
- /* Code can explicitly ask for data to be
- placed in these higher RAM banks where
- they will be left uninitialized.
- */
- .AHBSRAM0 (NOLOAD):
- {
- Image$$RW_IRAM2$$Base = . ;
- *(AHBSRAM0)
- Image$$RW_IRAM2$$ZI$$Limit = .;
- } > USB_RAM
-
- .AHBSRAM1 (NOLOAD):
- {
- Image$$RW_IRAM3$$Base = . ;
- *(AHBSRAM1)
- Image$$RW_IRAM3$$ZI$$Limit = .;
- } > ETH_RAM
-}
diff --git a/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S b/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S
deleted file mode 100644
index 4a8e973a..00000000
--- a/lib/lpc176x/device/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S
+++ /dev/null
@@ -1,223 +0,0 @@
-/* File: startup_ARMCM3.s
- * Purpose: startup file for Cortex-M3/M4 devices. Should use with
- * GNU Tools for ARM Embedded Processors
- * Version: V1.1
- * Date: 17 June 2011
- *
- * Copyright (C) 2011 ARM Limited. All rights reserved.
- * ARM Limited (ARM) is supplying this software for use with Cortex-M3/M4
- * processor based microcontrollers. This file can be freely distributed
- * within development tools that are supporting such ARM based processors.
- *
- * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
- * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
- * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
- * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
- */
- .syntax unified
- .arch armv7-m
-
-/* Memory Model
- The HEAP starts at the end of the DATA section and grows upward.
-
- The STACK starts at the end of the RAM and grows downward.
-
- The HEAP and stack STACK are only checked at compile time:
- (DATA_SIZE + HEAP_SIZE + STACK_SIZE) < RAM_SIZE
-
- This is just a check for the bare minimum for the Heap+Stack area before
- aborting compilation, it is not the run time limit:
- Heap_Size + Stack_Size = 0x80 + 0x80 = 0x100
- */
- .section .stack
- .align 3
-#ifdef __STACK_SIZE
- .equ Stack_Size, __STACK_SIZE
-#else
- .equ Stack_Size, 0xc00
-#endif
- .globl __StackTop
- .globl __StackLimit
-__StackLimit:
- .space Stack_Size
- .size __StackLimit, . - __StackLimit
-__StackTop:
- .size __StackTop, . - __StackTop
-
- .section .heap
- .align 3
-#ifdef __HEAP_SIZE
- .equ Heap_Size, __HEAP_SIZE
-#else
- .equ Heap_Size, 0x800
-#endif
- .globl __HeapBase
- .globl __HeapLimit
-__HeapBase:
- .space Heap_Size
- .size __HeapBase, . - __HeapBase
-__HeapLimit:
- .size __HeapLimit, . - __HeapLimit
-
- .section .isr_vector
- .align 2
- .globl __isr_vector
-__isr_vector:
- .long __StackTop /* Top of Stack */
- .long Reset_Handler /* Reset Handler */
- .long NMI_Handler /* NMI Handler */
- .long HardFault_Handler /* Hard Fault Handler */
- .long MemManage_Handler /* MPU Fault Handler */
- .long BusFault_Handler /* Bus Fault Handler */
- .long UsageFault_Handler /* Usage Fault Handler */
- .long 0 /* Reserved */
- .long 0 /* Reserved */
- .long 0 /* Reserved */
- .long 0 /* Reserved */
- .long SVC_Handler /* SVCall Handler */
- .long DebugMon_Handler /* Debug Monitor Handler */
- .long 0 /* Reserved */
- .long PendSV_Handler /* PendSV Handler */
- .long SysTick_Handler /* SysTick Handler */
-
- /* External interrupts */
- .long WDT_IRQHandler /* 16: Watchdog Timer */
- .long TIMER0_IRQHandler /* 17: Timer0 */
- .long TIMER1_IRQHandler /* 18: Timer1 */
- .long TIMER2_IRQHandler /* 19: Timer2 */
- .long TIMER3_IRQHandler /* 20: Timer3 */
- .long UART0_IRQHandler /* 21: UART0 */
- .long UART1_IRQHandler /* 22: UART1 */
- .long UART2_IRQHandler /* 23: UART2 */
- .long UART3_IRQHandler /* 24: UART3 */
- .long PWM1_IRQHandler /* 25: PWM1 */
- .long I2C0_IRQHandler /* 26: I2C0 */
- .long I2C1_IRQHandler /* 27: I2C1 */
- .long I2C2_IRQHandler /* 28: I2C2 */
- .long SPI_IRQHandler /* 29: SPI */
- .long SSP0_IRQHandler /* 30: SSP0 */
- .long SSP1_IRQHandler /* 31: SSP1 */
- .long PLL0_IRQHandler /* 32: PLL0 Lock (Main PLL) */
- .long RTC_IRQHandler /* 33: Real Time Clock */
- .long EINT0_IRQHandler /* 34: External Interrupt 0 */
- .long EINT1_IRQHandler /* 35: External Interrupt 1 */
- .long EINT2_IRQHandler /* 36: External Interrupt 2 */
- .long EINT3_IRQHandler /* 37: External Interrupt 3 */
- .long ADC_IRQHandler /* 38: A/D Converter */
- .long BOD_IRQHandler /* 39: Brown-Out Detect */
- .long USB_IRQHandler /* 40: USB */
- .long CAN_IRQHandler /* 41: CAN */
- .long DMA_IRQHandler /* 42: General Purpose DMA */
- .long I2S_IRQHandler /* 43: I2S */
- .long ENET_IRQHandler /* 44: Ethernet */
- .long RIT_IRQHandler /* 45: Repetitive Interrupt Timer */
- .long MCPWM_IRQHandler /* 46: Motor Control PWM */
- .long QEI_IRQHandler /* 47: Quadrature Encoder Interface */
- .long PLL1_IRQHandler /* 48: PLL1 Lock (USB PLL) */
- .long USBActivity_IRQHandler /* 49: USB Activity */
- .long CANActivity_IRQHandler /* 50: CAN Activity */
-
- .size __isr_vector, . - __isr_vector
-
- .text
- .thumb
- .thumb_func
- .align 2
- .globl Reset_Handler
- .type Reset_Handler, %function
-Reset_Handler:
-/* Loop to copy data from read only memory to RAM. The ranges
- * of copy from/to are specified by following symbols evaluated in
- * linker script.
- * _etext: End of code section, i.e., begin of data sections to copy from.
- * __data_start__/__data_end__: RAM address range that data should be
- * copied to. Both must be aligned to 4 bytes boundary. */
-
- ldr r1, =__etext
- ldr r2, =__data_start__
- ldr r3, =__data_end__
-
-.Lflash_to_ram_loop:
- cmp r2, r3
- ittt lt
- ldrlt r0, [r1], #4
- strlt r0, [r2], #4
- blt .Lflash_to_ram_loop
-
- ldr r0, =SystemInit
- blx r0
- ldr r0, =_start
- bx r0
- .pool
- .size Reset_Handler, . - Reset_Handler
-
- .text
-/* Macro to define default handlers. Default handler
- * will be weak symbol and just dead loops. They can be
- * overwritten by other handlers */
- .macro def_default_handler handler_name
- .align 1
- .thumb_func
- .weak \handler_name
- .type \handler_name, %function
-\handler_name :
- b .
- .size \handler_name, . - \handler_name
- .endm
-
- def_default_handler NMI_Handler
- def_default_handler HardFault_Handler
- def_default_handler MemManage_Handler
- def_default_handler BusFault_Handler
- def_default_handler UsageFault_Handler
- def_default_handler SVC_Handler
- def_default_handler DebugMon_Handler
- def_default_handler PendSV_Handler
- def_default_handler SysTick_Handler
- def_default_handler Default_Handler
-
- .macro def_irq_default_handler handler_name
- .weak \handler_name
- .set \handler_name, Default_Handler
- .endm
-
- def_irq_default_handler WDT_IRQHandler
- def_irq_default_handler TIMER0_IRQHandler
- def_irq_default_handler TIMER1_IRQHandler
- def_irq_default_handler TIMER2_IRQHandler
- def_irq_default_handler TIMER3_IRQHandler
- def_irq_default_handler UART0_IRQHandler
- def_irq_default_handler UART1_IRQHandler
- def_irq_default_handler UART2_IRQHandler
- def_irq_default_handler UART3_IRQHandler
- def_irq_default_handler PWM1_IRQHandler
- def_irq_default_handler I2C0_IRQHandler
- def_irq_default_handler I2C1_IRQHandler
- def_irq_default_handler I2C2_IRQHandler
- def_irq_default_handler SPI_IRQHandler
- def_irq_default_handler SSP0_IRQHandler
- def_irq_default_handler SSP1_IRQHandler
- def_irq_default_handler PLL0_IRQHandler
- def_irq_default_handler RTC_IRQHandler
- def_irq_default_handler EINT0_IRQHandler
- def_irq_default_handler EINT1_IRQHandler
- def_irq_default_handler EINT2_IRQHandler
- def_irq_default_handler EINT3_IRQHandler
- def_irq_default_handler ADC_IRQHandler
- def_irq_default_handler BOD_IRQHandler
- def_irq_default_handler USB_IRQHandler
- def_irq_default_handler CAN_IRQHandler
- def_irq_default_handler DMA_IRQHandler
- def_irq_default_handler I2S_IRQHandler
- def_irq_default_handler ENET_IRQHandler
- def_irq_default_handler RIT_IRQHandler
- def_irq_default_handler MCPWM_IRQHandler
- def_irq_default_handler QEI_IRQHandler
- def_irq_default_handler PLL1_IRQHandler
- def_irq_default_handler USBActivity_IRQHandler
- def_irq_default_handler CANActivity_IRQHandler
- def_irq_default_handler DEF_IRQHandler
-
- .end
-