diff --git a/firmware/common/LPC4330_M4.ld b/firmware/common/LPC4330_M4.ld index f2663957..d449566e 100644 --- a/firmware/common/LPC4330_M4.ld +++ b/firmware/common/LPC4330_M4.ld @@ -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 +} diff --git a/firmware/common/LPC4330_M4_rom_to_ram.ld b/firmware/common/LPC4330_M4_rom_to_ram.ld index a50ba638..febce4e9 100644 --- a/firmware/common/LPC4330_M4_rom_to_ram.ld +++ b/firmware/common/LPC4330_M4_rom_to_ram.ld @@ -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 +}