From 64a460e8ae94a815d1dc15ebd82519315d23c1b5 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Tue, 25 Jun 2019 17:58:58 +0200 Subject: [PATCH] hack(bootloader): Adapt scripts to allow compilation for old bootloader --- bootloader/build_multi_image.sh | 2 +- .../CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core0.ld | 2 +- .../CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootloader/build_multi_image.sh b/bootloader/build_multi_image.sh index 94a3b46b..ca5a2ca5 100755 --- a/bootloader/build_multi_image.sh +++ b/bootloader/build_multi_image.sh @@ -6,7 +6,7 @@ BIN1="$2" BIN2="$3" BINOUT="$4" -dd if=/dev/zero ibs=1k count=448 2>/dev/null | tr "\000" "\377" > "$BINOUT" +dd if=/dev/zero ibs=1k count=192 2>/dev/null | tr "\000" "\377" > "$BINOUT" dd if="$BIN1" of="$BINOUT" conv=notrunc 2>/dev/null dd if="$BIN2" of="$BINOUT" conv=notrunc oflag=append 2>/dev/null diff --git a/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core0.ld b/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core0.ld index 9895c9a3..7301f9fe 100644 --- a/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core0.ld +++ b/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core0.ld @@ -38,7 +38,7 @@ /* If used, they should be adjusted for the external Flash/RAM size */ MEMORY { SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M - FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 448k + FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 192k SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M } diff --git a/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld b/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld index 7612a258..37b8afba 100644 --- a/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld +++ b/lib/sdk/Libraries/CMSIS/Device/Maxim/MAX32665/Source/GCC/max32665_core1.ld @@ -38,7 +38,7 @@ /* If used, they should be adjusted for the external Flash/RAM size */ MEMORY { SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M - FLASH (rx) : ORIGIN = 0x10080000, LENGTH = 512k + FLASH (rx) : ORIGIN = 0x10040000, LENGTH = 512k SRAM (rwx) : ORIGIN = 0x20040000, LENGTH = 256k SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M } -- GitLab