| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #! armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m33 -xc
- ; command above MUST be in first line (no comment above!)
- /*
- ;-------- <<< Use Configuration Wizard in Context Menu >>> -------------------
- */
- #include "mem_ARMv81MML.h"
- /*--------------------- Flash Configuration ----------------------------------
- ; <h> Flash Configuration
- ; <o0> Flash Base Address <0x0-0xFFFFFFFF:8>
- ; <o1> Flash Size (in Bytes) <0x0-0xFFFFFFFF:8>
- ; </h>
- *----------------------------------------------------------------------------*/
- #define __ROM_BASE 0x10000000
- #define __ROM_SIZE 0x00300000
- /*--------------------- Embedded RAM Configuration ---------------------------
- ; <h> RAM Configuration
- ; <o0> RAM1 Base Address <0x0-0xFFFFFFFF:8>
- ; <o1> RAM1 Size (in Bytes) <0x0-0xFFFFFFFF:8>
- ; </h>
- *----------------------------------------------------------------------------*/
- #define __RAM1_BASE 0x30000000
- #define __RAM1_SIZE 0x00400000
- /*--------------------- Stack / Heap Configuration ---------------------------
- ; <h> Stack / Heap Configuration
- ; <o0> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
- ; <o1> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
- ; </h>
- *----------------------------------------------------------------------------*/
- #define __STACK_SIZE STACK_SIZE
- #define __HEAP_SIZE HEAP_SIZE
- #define __RAM2_RW_SIZE (__RAM1_SIZE - __STACK_SIZE - __HEAP_SIZE)
- LR_ROM __ROM_BASE __ROM_SIZE { ; load region size_region
- ER_ROM +0 { ; load address = execution address
- *.o (RESET, +First)
- * (InRoot$$Sections)
- ; *(Veneer$$CMSE) ; uncomment for secure applications
- * (+RO-CODE)
- ; * (+XO)
- }
- /* make sure stack-overflow will cause bus-fault (which might be escalated to hardfault) */
- ARM_LIB_STACK __RAM1_BASE ALIGN 8 EMPTY __STACK_SIZE { ; Reserve empty region for stack
- }
-
- RW_RAM1 +0 __RAM2_RW_SIZE {
- * (+RO-DATA)
- .ANY (+RW +ZI)
- }
- ARM_LIB_HEAP +0 ALIGN 8 EMPTY __HEAP_SIZE { ; Reserve empty region for heap
- }
- }
|