Add memory regions for M0 code to live. In the "rom_to_ram" (SPIFI) version, put M0 binary in ROM. In the RAM version, put M0 code in the destination RAM region.

This commit is contained in:
Jared Boone
2013-11-20 15:14:13 -08:00
parent 31a55d0e9b
commit c365d0a37e
2 changed files with 20 additions and 0 deletions

View File

@ -40,3 +40,13 @@ MEMORY
/* Include the common ld script. */
INCLUDE libopencm3_lpc43xx.ld
SECTIONS
{
.m0 0x10090000 : {
PROVIDE(__m0_start__ = .);
KEEP(*(.m0_bin*));
. = ALIGN(4);
PROVIDE(__m0_end__ = .);
} >ram_m0
}

View File

@ -42,3 +42,13 @@ MEMORY
/* Include the common ld script. */
INCLUDE libopencm3_lpc43xx_rom_to_ram.ld
SECTIONS
{
.text : {
PROVIDE(__m0_start__ = .);
KEEP(*(.m0_bin*));
. = ALIGN(4);
PROVIDE(__m0_end__ = .);
} >rom
}