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:
@ -40,3 +40,13 @@ MEMORY
|
|||||||
|
|
||||||
/* Include the common ld script. */
|
/* Include the common ld script. */
|
||||||
INCLUDE libopencm3_lpc43xx.ld
|
INCLUDE libopencm3_lpc43xx.ld
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.m0 0x10090000 : {
|
||||||
|
PROVIDE(__m0_start__ = .);
|
||||||
|
KEEP(*(.m0_bin*));
|
||||||
|
. = ALIGN(4);
|
||||||
|
PROVIDE(__m0_end__ = .);
|
||||||
|
} >ram_m0
|
||||||
|
}
|
||||||
|
@ -42,3 +42,13 @@ MEMORY
|
|||||||
|
|
||||||
/* Include the common ld script. */
|
/* Include the common ld script. */
|
||||||
INCLUDE libopencm3_lpc43xx_rom_to_ram.ld
|
INCLUDE libopencm3_lpc43xx_rom_to_ram.ld
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text : {
|
||||||
|
PROVIDE(__m0_start__ = .);
|
||||||
|
KEEP(*(.m0_bin*));
|
||||||
|
. = ALIGN(4);
|
||||||
|
PROVIDE(__m0_end__ = .);
|
||||||
|
} >rom
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user