mirror of https://github.com/ARMmbed/mbed-os.git
One section for vectors and flash protection bits. The unused space is filled with 0xff
parent
82c5d7f317
commit
5747a4502d
|
@ -4,8 +4,7 @@
|
|||
|
||||
MEMORY
|
||||
{
|
||||
VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000400
|
||||
FLASH_PROTECTION (rx) : ORIGIN = 0x00000400, LENGTH = 0x00000010
|
||||
VECTORS (rx) : ORIGIN = 0x00000000, LENGTH = 0x00000410
|
||||
FLASH (rx) : ORIGIN = 0x00000410, LENGTH = 32K - 0x00000410
|
||||
RAM (rwx) : ORIGIN = 0x1FFFFC00, LENGTH = 4K - 0xC0
|
||||
}
|
||||
|
@ -44,17 +43,9 @@ SECTIONS
|
|||
{
|
||||
__vector_table = .;
|
||||
KEEP(*(.vector_table))
|
||||
*(.text.Reset_Handler)
|
||||
*(.text.System_Init)
|
||||
. = ALIGN(4);
|
||||
} > VECTORS
|
||||
|
||||
.flash_protect :
|
||||
{
|
||||
KEEP(*(.kinetis_flash_config_field))
|
||||
. = ALIGN(4);
|
||||
} > FLASH_PROTECTION
|
||||
|
||||
.text :
|
||||
{
|
||||
*(.text*)
|
||||
|
|
|
@ -130,6 +130,12 @@ __isr_vector:
|
|||
.long PORTB_IRQHandler /* Port B interrupt */
|
||||
|
||||
.size __isr_vector, . - __isr_vector
|
||||
.org 0x400, 0xff
|
||||
|
||||
.long 0xffffffff
|
||||
.long 0xffffffff
|
||||
.long 0xffffffff
|
||||
.long 0xfffffffe
|
||||
|
||||
.section .text.Reset_Handler
|
||||
.thumb
|
||||
|
@ -216,15 +222,4 @@ Reset_Handler:
|
|||
.weak DEF_IRQHandler
|
||||
.set DEF_IRQHandler, Default_Handler
|
||||
|
||||
/* Flash protection region, placed at 0x400 */
|
||||
.text
|
||||
.thumb
|
||||
.align 2
|
||||
.section .kinetis_flash_config_field,"a",%progbits
|
||||
kinetis_flash_config:
|
||||
.long 0xffffffff
|
||||
.long 0xffffffff
|
||||
.long 0xffffffff
|
||||
.long 0xfffffffe
|
||||
|
||||
.end
|
||||
|
|
Loading…
Reference in New Issue