From 826cfd5621077d3fbd5c017f0d281a64c6b8cc9b Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Fri, 21 Jun 2019 01:26:12 +0200 Subject: [PATCH] fix(core1): Make use of the upper 512k --- lib/card10/card10.c | 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/lib/card10/card10.c b/lib/card10/card10.c index da0a355c..df141a29 100644 --- a/lib/card10/card10.c +++ b/lib/card10/card10.c @@ -174,7 +174,7 @@ void card10_diag(void) void core1_start(void) { //MXC_GCR->gp0 = (uint32_t)(&__isr_vector_core1); - MXC_GCR->gp0 = 0x10040000; + MXC_GCR->gp0 = 0x10080000; MXC_GCR->perckcn1 &= ~MXC_F_GCR_PERCKCN1_CPU1; } 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 7301f9fe..9895c9a3 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 = 192k + FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 448k 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 3978179d..7612a258 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 = 0x10040000, LENGTH = 256k + FLASH (rx) : ORIGIN = 0x10080000, LENGTH = 512k SRAM (rwx) : ORIGIN = 0x20040000, LENGTH = 256k SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M } -- GitLab