mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-05 14:08:11 +00:00
32 lines
930 B
Plaintext
32 lines
930 B
Plaintext
|
/*
|
||
|
* libmaple linker script for RAM builds.
|
||
|
*
|
||
|
* A Flash build puts .text, .rodata, and .data/.bss/heap (of course)
|
||
|
* in SRAM, but offsets the sections by enough space to store the
|
||
|
* Maple bootloader, which uses low memory.
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* This pulls in the appropriate MEMORY declaration from the right
|
||
|
* subdirectory of stm32/mem/ (the environment must call ld with the
|
||
|
* right include directory flags to make this happen). Boards can also
|
||
|
* use this file to use any of libmaple's memory-related hooks (like
|
||
|
* where the heap should live).
|
||
|
*/
|
||
|
/*INCLUDE mem-ram.inc*/
|
||
|
MEMORY
|
||
|
{
|
||
|
ram (rwx) : ORIGIN = 0x20000C00, LENGTH = 17K
|
||
|
rom (rx) : ORIGIN = 0x08005000, LENGTH = 0
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Provide memory region aliases for common.inc */
|
||
|
REGION_ALIAS("REGION_TEXT", ram);
|
||
|
REGION_ALIAS("REGION_DATA", ram);
|
||
|
REGION_ALIAS("REGION_BSS", ram);
|
||
|
REGION_ALIAS("REGION_RODATA", ram);
|
||
|
|
||
|
/* Let common.inc handle the real work. */
|
||
|
INCLUDE common.inc
|