Martin Johnson / STM32F3-Discovery-minimal

Dependents:   accelerometer_test neopixel_square accelerometer_test_minimal Colour_Video_Demo

Committer:
MartinJohnson
Date:
Thu May 10 03:56:43 2018 +0000
Revision:
1:c9c63b2b1b24
Parent:
0:c65854d98061
Update startup to define the Heap correctly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MartinJohnson 0:c65854d98061 1 ; Scatter-Loading Description File
MartinJohnson 0:c65854d98061 2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MartinJohnson 0:c65854d98061 3 ; Copyright (c) 2014, STMicroelectronics
MartinJohnson 0:c65854d98061 4 ; All rights reserved.
MartinJohnson 0:c65854d98061 5 ;
MartinJohnson 0:c65854d98061 6 ; Redistribution and use in source and binary forms, with or without
MartinJohnson 0:c65854d98061 7 ; modification, are permitted provided that the following conditions are met:
MartinJohnson 0:c65854d98061 8 ;
MartinJohnson 0:c65854d98061 9 ; 1. Redistributions of source code must retain the above copyright notice,
MartinJohnson 0:c65854d98061 10 ; this list of conditions and the following disclaimer.
MartinJohnson 0:c65854d98061 11 ; 2. Redistributions in binary form must reproduce the above copyright notice,
MartinJohnson 0:c65854d98061 12 ; this list of conditions and the following disclaimer in the documentation
MartinJohnson 0:c65854d98061 13 ; and/or other materials provided with the distribution.
MartinJohnson 0:c65854d98061 14 ; 3. Neither the name of STMicroelectronics nor the names of its contributors
MartinJohnson 0:c65854d98061 15 ; may be used to endorse or promote products derived from this software
MartinJohnson 0:c65854d98061 16 ; without specific prior written permission.
MartinJohnson 0:c65854d98061 17 ;
MartinJohnson 0:c65854d98061 18 ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
MartinJohnson 0:c65854d98061 19 ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
MartinJohnson 0:c65854d98061 20 ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
MartinJohnson 0:c65854d98061 21 ; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
MartinJohnson 0:c65854d98061 22 ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
MartinJohnson 0:c65854d98061 23 ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
MartinJohnson 0:c65854d98061 24 ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
MartinJohnson 0:c65854d98061 25 ; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
MartinJohnson 0:c65854d98061 26 ; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
MartinJohnson 0:c65854d98061 27 ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
MartinJohnson 0:c65854d98061 28 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MartinJohnson 0:c65854d98061 29
MartinJohnson 0:c65854d98061 30 ; STM32F303VC: 256KB FLASH (0x80000) + 40KB SRAM (0x10000) + 8KB CCMRAM (0x2000)
MartinJohnson 0:c65854d98061 31 LR_IROM1 0x08000000 0x40000 { ; load region size_region
MartinJohnson 0:c65854d98061 32
MartinJohnson 0:c65854d98061 33 ER_IROM1 0x08000000 0x40000 { ; load address = execution address
MartinJohnson 0:c65854d98061 34 *.o (RESET, +First)
MartinJohnson 0:c65854d98061 35 *(InRoot$$Sections)
MartinJohnson 0:c65854d98061 36 .ANY (+RO)
MartinJohnson 0:c65854d98061 37 }
MartinJohnson 0:c65854d98061 38
MartinJohnson 0:c65854d98061 39 ; 101 vectors = 404 bytes (0x194) to be reserved in RAM
MartinJohnson 0:c65854d98061 40 RW_IRAM1 (0x20000000+0x194) (0xA000-0x194) { ; RW data
MartinJohnson 0:c65854d98061 41 .ANY (+RW +ZI)
MartinJohnson 0:c65854d98061 42 }
MartinJohnson 0:c65854d98061 43
MartinJohnson 0:c65854d98061 44 ER 0x10000000 0x00002000 { ; load address = execution address
MartinJohnson 0:c65854d98061 45 .ANY (ccmram)
MartinJohnson 0:c65854d98061 46 }
MartinJohnson 0:c65854d98061 47
MartinJohnson 0:c65854d98061 48 }
MartinJohnson 0:c65854d98061 49