+++ /dev/null
-/*
- * Copyright © 2012 Keith Packard <keithp@keithp.com>
- *
- * This program 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; version 2 of the License.
- *
- * 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.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-MEMORY {
- ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K
-}
-
-C_STACK_SIZE = 512;
-
-INCLUDE registers.ld
-
-SECTIONS {
- . = ORIGIN(ram);
-
- /*
- * Rom contents
- */
-
- __text_start__ = .;
-
- .text : {
- *(.interrupt) /* Interrupt vectors */
- *(.text) /* Executable code */
- *(.rodata) /* Constants */
- } > ram
-
- .ARM.exidx : {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- __text_end__ = .;
- } > ram
-
- __data_start__ = .;
-
- /* Data -- relocated to RAM, but written to ROM
- */
- .data : AT (ADDR(.ARM.exidx) + SIZEOF (.ARM.exidx)) {
- *(.data) /* initialized data */
- __data_end__ = .;
- __bss_start__ = .;
- } >ram
-
- .bss : {
- *(.bss)
- *(COMMON)
- __bss_end__ = .;
- } >ram
-
- PROVIDE(__stack__ = . + C_STACK_SIZE);
- PROVIDE(end = .);
-
-}
-
-ENTRY(start);
-
-
+++ /dev/null
-/*
- * Copyright © 2012 Keith Packard <keithp@keithp.com>
- *
- * This program 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; version 2 of the License.
- *
- * 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.,
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-
-MEMORY {
- rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K
- ram (!w) : ORIGIN = 0x20000000, LENGTH = 16K
-}
-
-INCLUDE registers.ld
-
-C_STACK_SIZE = 512;
-
-SECTIONS {
- . = ORIGIN(rom);
-
- /*
- * Rom contents
- */
-
- __text_start__ = .;
-
- .text : {
- *(.interrupt) /* Interrupt vectors */
- *(.text) /* Executable code */
- *(.rodata) /* Constants */
- } > rom
-
- .ARM.exidx : {
- *(.ARM.exidx* .gnu.linkonce.armexidx.*)
- __text_end__ = .;
- } > rom
-
- . = ORIGIN(ram);
- __data_start__ = .;
-
- /* Data -- relocated to RAM, but written to ROM
- */
- .data : AT (ADDR(.ARM.exidx) + SIZEOF (.ARM.exidx)) {
- *(.data) /* initialized data */
- __data_end__ = .;
- __bss_start__ = .;
- } >ram
-
- .bss : {
- *(.bss)
- *(COMMON)
- __bss_end__ = .;
- } >ram
-
- PROVIDE(__stack__ = . + C_STACK_SIZE);
- PROVIDE(end = .);
-
-}
-
-ENTRY(start);
-
-
+++ /dev/null
-stm_fsmc = 0xa0000000;
-stm_aes = 0x50060000;
-stm_dma = 0x40026000;
-stm_flash = 0x40023c00;
-stm_rcc = 0x40023800;
-stm_crc = 0x40023000;
-stm_gpioh = 0x40021400;
-stm_gpioe = 0x40021000;
-stm_gpiod = 0x40020c00;
-stm_gpioc = 0x40020800;
-stm_gpiob = 0x40020400;
-stm_gpioa = 0x40020000;
-stm_usart1 = 0x40013800;
-stm_spi1 = 0x40013000;
-stm_sdio = 0x40012c00;
-stm_adc = 0x40012400;
-stm_tim11 = 0x40011000;
-stm_tim10 = 0x40010c00;
-stm_tim9 = 0x40010800;
-stm_exti = 0x40010400;
-stm_syscfg = 0x40010000;
-stm_comp = 0x40007c00;
-stm_ri = 0x40007c04;
-stm_dac = 0x40007400;
-stm_pwr = 0x40007000;
-stm_usb_sram = 0x40006000;
-stm_usb = 0x40005c00;
-stm_i2c2 = 0x40005800;
-stm_i2c1 = 0x40005400;
-stm_usart5 = 0x40005000;
-stm_usart4 = 0x40004c00;
-stm_usart3 = 0x40004800;
-stm_usart2 = 0x40004400;
-stm_spi3 = 0x40003c00; /* docs are broken here */
-stm_spi2 = 0x40003800; /* docs are broken here */
-stm_iwdg = 0x40003000;
-stm_wwdg = 0x40002c00;
-stm_rtc = 0x40002800;
-stm_lcd = 0x40002400;
-stm_tim7 = 0x40001400;
-stm_tim6 = 0x40001000;
-stm_tim5 = 0x40000c00;
-stm_tim4 = 0x40000800;
-stm_tim3 = 0x40000400;
-stm_tim2 = 0x40000000;
-