mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-19 03:49:26 -04:00
Working
This commit is contained in:
commit
c898b090dd
1049 changed files with 288572 additions and 0 deletions
106
bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld
Normal file
106
bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld
Normal file
|
@ -0,0 +1,106 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2008 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Manuele Fanelli <qwert@develer.com>
|
||||
*
|
||||
* \brief Script for Cortex M3 family processors.
|
||||
*
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
OUTPUT_ARCH(arm)
|
||||
|
||||
|
||||
/*
|
||||
* Allocate section memory
|
||||
*/
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
KEEP(*(.vectors));
|
||||
. = ALIGN (4);
|
||||
KEEP(*(.init));
|
||||
. = ALIGN (4);
|
||||
*(.rodata .rodata.*);
|
||||
. = ALIGN (4);
|
||||
*(.text .text.*);
|
||||
. = ALIGN (4);
|
||||
*(.glue_7t);
|
||||
. = ALIGN(4);
|
||||
*(.glue_7);
|
||||
. = ALIGN(4);
|
||||
} > ram
|
||||
|
||||
__text_end = .;
|
||||
PROVIDE (__text_end = .);
|
||||
|
||||
.data : AT (__text_end)
|
||||
{
|
||||
. = ALIGN (0x400);
|
||||
PROVIDE (__data_start = .);
|
||||
*(vtable)
|
||||
*(.data .data.*)
|
||||
. = ALIGN (4);
|
||||
_edata = .;
|
||||
PROVIDE (__data_end = .);
|
||||
} > ram
|
||||
|
||||
.bss :
|
||||
{
|
||||
PROVIDE (__bss_start = .);
|
||||
*(.bss .bss.*)
|
||||
. = ALIGN(4);
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
PROVIDE (__bss_end = .);
|
||||
} > ram
|
||||
|
||||
/*
|
||||
* Allocated stack at the end of bss section.
|
||||
* Data heap is allocate at end of stack.
|
||||
* STACK_SIZE variable is defined in the CPU specific linker script file.
|
||||
*/
|
||||
PROVIDE (__msp_start = .);
|
||||
. = ALIGN(8);
|
||||
. += STACK_SIZE;
|
||||
PROVIDE (__msp_end = .);
|
||||
|
||||
PROVIDE (__psp_start = .);
|
||||
. = ALIGN(8);
|
||||
. += STACK_SIZE;
|
||||
PROVIDE (__psp_end = .);
|
||||
|
||||
PROVIDE (__heap_start = .);
|
||||
. = ALIGN(8);
|
||||
}
|
||||
|
107
bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld
Normal file
107
bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld
Normal file
|
@ -0,0 +1,107 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \brief Script Cortex M3 family processors.
|
||||
*
|
||||
* \author Daniele Basile <asterix@develer.com>
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
|
||||
OUTPUT_ARCH(arm)
|
||||
|
||||
|
||||
/*
|
||||
* Allocate section memory
|
||||
*/
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
KEEP(*(.vectors));
|
||||
. = ALIGN (4);
|
||||
KEEP(*(.init));
|
||||
. = ALIGN (4);
|
||||
*(.rodata .rodata.*);
|
||||
. = ALIGN (4);
|
||||
*(.text .text.*);
|
||||
. = ALIGN (4);
|
||||
*(.glue_7t);
|
||||
. = ALIGN(4);
|
||||
*(.glue_7);
|
||||
. = ALIGN(4);
|
||||
} > rom
|
||||
|
||||
__text_end = .;
|
||||
PROVIDE (__text_end = .);
|
||||
|
||||
.data : AT (__text_end)
|
||||
{
|
||||
. = ALIGN (0x400);
|
||||
PROVIDE (__data_start = .);
|
||||
*(vtable)
|
||||
. = ALIGN (4);
|
||||
*(.ramfunc)
|
||||
. = ALIGN (4);
|
||||
*(.data .data.*)
|
||||
. = ALIGN (4);
|
||||
_edata = .;
|
||||
PROVIDE (__data_end = .);
|
||||
} > ram
|
||||
|
||||
.bss :
|
||||
{
|
||||
PROVIDE (__bss_start = .);
|
||||
*(.bss .bss.*)
|
||||
. = ALIGN(4);
|
||||
*(COMMON)
|
||||
. = ALIGN(4);
|
||||
PROVIDE (__bss_end = .);
|
||||
} > ram
|
||||
|
||||
/*
|
||||
* Allocated stack at the end of bss section.
|
||||
* Data heap is allocate at end of stack.
|
||||
* STACK_SIZE variable is defined in the CPU specific linker script file.
|
||||
*/
|
||||
PROVIDE (__msp_start = .);
|
||||
. = ALIGN(8);
|
||||
. += STACK_SIZE;
|
||||
PROVIDE (__msp_end = .);
|
||||
|
||||
PROVIDE (__psp_start = .);
|
||||
. = ALIGN(8);
|
||||
. += STACK_SIZE;
|
||||
PROVIDE (__psp_end = .);
|
||||
|
||||
PROVIDE (__heap_start = .);
|
||||
. = ALIGN(8);
|
||||
}
|
55
bertos/cpu/cortex-m3/scripts/lm3s1968_ram.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/lm3s1968_ram.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2008 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Manuele Fanelli <qwert@develer.com>
|
||||
*
|
||||
* \brief Script for Luminary Micro LM3S1968 Cortex M3 family processors.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_ram.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Define memory configuration for LM3S1968 board
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2007 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Manuele Fanelli <qwert@develer.com>
|
||||
*
|
||||
* \brief Script for Luminary Micro LM3S1968 Cortex M3 family processors.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Define memory configuration for LM3S1968 board
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/lm3s8962_ram.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/lm3s8962_ram.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \brief Script for Luminary Micro LM3S8962 Cortex M3 family processors.
|
||||
*
|
||||
* \author Andrea Righi <arighi@develer.com>
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_ram.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Define memory configuration for LM3S8962 board
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld"
|
||||
|
53
bertos/cpu/cortex-m3/scripts/lm3s8962_rom.ld
Normal file
53
bertos/cpu/cortex-m3/scripts/lm3s8962_rom.ld
Normal file
|
@ -0,0 +1,53 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \brief Script for Luminary Micro LM3S8962 Cortex M3 family processors.
|
||||
*
|
||||
* \author Andrea Righi <arighi@develer.com>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*/
|
||||
* Define memory configuration for LM3S8962 board
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
55
bertos/cpu/cortex-m3/scripts/sam3n4_ram.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/sam3n4_ram.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Stefano Fedrigo <aleph@develer.com>
|
||||
*
|
||||
* \brief Linker script for Atmel SAM3N4 Cortex M3 processor.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_ram.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Memory configuration for SAM3N4.
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x0, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 24k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/sam3n4_rom.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/sam3n4_rom.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Stefano Fedrigo <aleph@develer.com>
|
||||
*
|
||||
* \brief Linker script for Atmel SAM3N4 Cortex M3 processor.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Memory configuration for SAM3N4.
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x0, len = 256k
|
||||
ram(rwx) : org = 0x20000000, len = 24k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
52
bertos/cpu/cortex-m3/scripts/sam3x8_ram.icf
Normal file
52
bertos/cpu/cortex-m3/scripts/sam3x8_ram.icf
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*- SRAM0 memory region -*/
|
||||
define symbol __region_RAM0_size__ = 0x10000 ;
|
||||
define symbol __region_RAM0_start__ = 0x20000000 ;
|
||||
define symbol __region_RAM0_end__ = __region_RAM0_start__+__region_RAM0_size__-1 ;
|
||||
|
||||
export symbol __region_RAM0_size__ ;
|
||||
export symbol __region_RAM0_start__ ;
|
||||
export symbol __region_RAM0_end__ ;
|
||||
|
||||
/*- SRAM1 memory region -*/
|
||||
define symbol __region_RAM1_size__ = 0x8000 ;
|
||||
define symbol __region_RAM1_start__ = 0x20080000 ;
|
||||
define symbol __region_RAM1_end__ = __region_RAM1_start__+__region_RAM1_size__-1 ;
|
||||
|
||||
export symbol __region_RAM1_size__ ;
|
||||
export symbol __region_RAM1_start__ ;
|
||||
export symbol __region_RAM1_end__ ;
|
||||
|
||||
/*- Continous SRAM region (SRAM0 is mirrored) -*/
|
||||
define symbol __region_RAM_size__ = __region_RAM0_size__+__region_RAM1_size__ ;
|
||||
define symbol __region_RAM_start__ = __region_RAM1_start__-__region_RAM0_size__ ;
|
||||
define symbol __region_RAM_end__ = __region_RAM1_end__ ;
|
||||
|
||||
export symbol __region_RAM_size__ ;
|
||||
export symbol __region_RAM_start__ ;
|
||||
export symbol __region_RAM_end__ ;
|
||||
|
||||
/*- NFC SRAM region -*/
|
||||
define symbol __region_NFC_RAM_start__ = 0x20100000 ;
|
||||
define symbol __region_NFC_RAM_end__ = 0x20100FFF ;
|
||||
|
||||
export symbol __region_NFC_RAM_start__ ;
|
||||
export symbol __region_NFC_RAM_end__ ;
|
||||
|
||||
/*-Vector table start*/
|
||||
define symbol __vector_start__ = __region_RAM_start__ ;
|
||||
|
||||
/*-Sizes-*/
|
||||
define symbol __size_cstack__ = 0x2000 ;
|
||||
define symbol __size_heap__ = 0x2000 ;
|
||||
|
||||
define memory mem with size = 4G ;
|
||||
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
|
||||
|
||||
define block CSTACK with alignment = 8, size = __size_cstack__ { };
|
||||
define block HEAP with alignment = 8, size = __size_heap__ { };
|
||||
|
||||
initialize by copy with packing=none { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
|
||||
place at address mem:__vector_start__ { readonly section .vectors };
|
||||
place in RAM_region { readonly, readwrite, block CSTACK, block HEAP };
|
71
bertos/cpu/cortex-m3/scripts/sam3x8_rom.icf
Normal file
71
bertos/cpu/cortex-m3/scripts/sam3x8_rom.icf
Normal file
|
@ -0,0 +1,71 @@
|
|||
/*- SRAM0 memory region -*/
|
||||
define symbol __region_RAM0_size__ = 0x10000 ;
|
||||
define symbol __region_RAM0_start__ = 0x20000000 ;
|
||||
define symbol __region_RAM0_end__ = __region_RAM0_start__+__region_RAM0_size__-1 ;
|
||||
|
||||
export symbol __region_RAM0_size__ ;
|
||||
export symbol __region_RAM0_start__ ;
|
||||
export symbol __region_RAM0_end__ ;
|
||||
|
||||
/*- SRAM1 memory region -*/
|
||||
define symbol __region_RAM1_size__ = 0x8000 ;
|
||||
define symbol __region_RAM1_start__ = 0x20080000 ;
|
||||
define symbol __region_RAM1_end__ = __region_RAM1_start__+__region_RAM1_size__-1 ;
|
||||
|
||||
export symbol __region_RAM1_size__ ;
|
||||
export symbol __region_RAM1_start__ ;
|
||||
export symbol __region_RAM1_end__ ;
|
||||
|
||||
/*- Continous SRAM region (SRAM0 is mirrored) -*/
|
||||
define symbol __region_RAM_size__ = __region_RAM0_size__+__region_RAM1_size__ ;
|
||||
define symbol __region_RAM_start__ = __region_RAM1_start__-__region_RAM0_size__ ;
|
||||
define symbol __region_RAM_end__ = __region_RAM1_end__ ;
|
||||
|
||||
export symbol __region_RAM_size__ ;
|
||||
export symbol __region_RAM_start__ ;
|
||||
export symbol __region_RAM_end__ ;
|
||||
|
||||
/*- NFC SRAM region -*/
|
||||
define symbol __region_NFC_RAM_start__ = 0x20100000 ;
|
||||
define symbol __region_NFC_RAM_end__ = 0x20100FFF ;
|
||||
|
||||
export symbol __region_NFC_RAM_start__ ;
|
||||
export symbol __region_NFC_RAM_end__ ;
|
||||
|
||||
/*- Flash region -*/
|
||||
define symbol __region_ROM_size__ = 0x00080000 ;
|
||||
define symbol __region_ROM_start__ = 0x00080000 ;
|
||||
define symbol __region_ROM_end__ = __region_ROM_start__+__region_ROM_size__-1 ;
|
||||
|
||||
export symbol __region_ROM_size__ ;
|
||||
export symbol __region_ROM_start__ ;
|
||||
export symbol __region_ROM_end__ ;
|
||||
|
||||
/*-Sizes-*/
|
||||
define symbol __size_cstack__ = 0x1000 ;
|
||||
define symbol __size_heap__ = 0x1000 ;
|
||||
|
||||
/* Size of the IRQ Stack (Main Stack).*/
|
||||
define symbol __ICFEDIT_size_irqstack__ = 0x1000 ;
|
||||
|
||||
define memory mem with size = 4G ;
|
||||
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
|
||||
define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
|
||||
|
||||
define block CSTACK with alignment = 8, size = __size_cstack__ {section CSTACK};
|
||||
define block IRQSTACK with alignment = 8, size = __ICFEDIT_size_irqstack__ {};
|
||||
define block SYSHEAP with alignment = 8 {section SYSHEAP};
|
||||
define block DATABSS with alignment = 8 {readwrite, zeroinit};
|
||||
|
||||
initialize by copy { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
|
||||
keep { section .vtable };
|
||||
|
||||
place at start of ROM_region {section .vtable};
|
||||
place in ROM_region {readonly};
|
||||
place at start of RAM_region {block IRQSTACK};
|
||||
place in RAM_region {block DATABSS};
|
||||
place in RAM_region {block SYSHEAP};
|
||||
place at end of RAM_region {block CSTACK};
|
||||
|
55
bertos/cpu/cortex-m3/scripts/sam3x8_rom.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/sam3x8_rom.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2011 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Stefano Fedrigo <aleph@develer.com>
|
||||
*
|
||||
* \brief Linker script for Atmel SAM3N4 Cortex M3 processor.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Memory configuration for SAM3X8.
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x0, len = 512k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
56
bertos/cpu/cortex-m3/scripts/stm32f100rb_rom.ld
Normal file
56
bertos/cpu/cortex-m3/scripts/stm32f100rb_rom.ld
Normal file
|
@ -0,0 +1,56 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Andrea Scalise <andreascalo@gmail.com>
|
||||
* \Signed-off-by Matteo Silvestri <matteosilv@gmail.com>
|
||||
*
|
||||
* \brief Script for STM32VLDiscovery Cortex-M3 board.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x400;
|
||||
|
||||
/*
|
||||
* Define memory configuration for STM32F100RB
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 128k
|
||||
ram(rwx) : org = 0x20000000, len = 8k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/stm32f101c4_ram.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/stm32f101c4_ram.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Stefano Fedrigo <aleph@develer.com>
|
||||
*
|
||||
* \brief Script for STM32F101C4 cpu.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_ram.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x200;
|
||||
|
||||
/*
|
||||
* Define memory configuration for STM32F101C4
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 16k
|
||||
ram(rwx) : org = 0x20000000, len = 4k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld"
|
||||
|
56
bertos/cpu/cortex-m3/scripts/stm32f101c4_rom.ld
Normal file
56
bertos/cpu/cortex-m3/scripts/stm32f101c4_rom.ld
Normal file
|
@ -0,0 +1,56 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Stefano Fedrigo <aleph@develer.com>
|
||||
*
|
||||
* \brief Script for STM32F101C4 cpu.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x200;
|
||||
|
||||
/*
|
||||
* Define memory configuration for STM32F101C4
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 16k
|
||||
ram(rwx) : org = 0x20000000, len = 4k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2010 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Andrea Righi <arighi@develer.com>
|
||||
*
|
||||
* \brief Script for STM32-P103 Cortex-M3 board.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Define memory configuration for STM32F103R8
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 128k
|
||||
ram(rwx) : org = 0x20000000, len = 20k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
55
bertos/cpu/cortex-m3/scripts/stm32f103re_rom.ld
Normal file
55
bertos/cpu/cortex-m3/scripts/stm32f103re_rom.ld
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* \file
|
||||
* <!--
|
||||
* This file is part of BeRTOS.
|
||||
*
|
||||
* Bertos is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* As a special exception, you may use this file as part of a free software
|
||||
* library without restriction. Specifically, if other files instantiate
|
||||
* templates or use macros or inline functions from this file, or you compile
|
||||
* this file and link it with other files to produce an executable, this
|
||||
* file does not by itself cause the resulting executable to be covered by
|
||||
* the GNU General Public License. This exception does not however
|
||||
* invalidate any other reasons why the executable file might be covered by
|
||||
* the GNU General Public License.
|
||||
*
|
||||
* Copyright 2011 Develer S.r.l. (http://www.develer.com/)
|
||||
*
|
||||
* -->
|
||||
*
|
||||
* \author Luca Ottaviano <lottaviano@develer.com>
|
||||
*
|
||||
* \brief Script for STM32P103RE Cortex-M3 MCU.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Define stack size here
|
||||
* Variable used in the cortex-m3_rom.ld file
|
||||
*/
|
||||
STACK_SIZE = 0x1000;
|
||||
|
||||
/*
|
||||
* Define memory configuration for STM32F103RE
|
||||
*/
|
||||
MEMORY
|
||||
{
|
||||
rom(rx) : org = 0x00000000, len = 512k
|
||||
ram(rwx) : org = 0x20000000, len = 64k
|
||||
}
|
||||
|
||||
INCLUDE "bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue