From 78c4068071eb0f19066de21a97804184d5203782 Mon Sep 17 00:00:00 2001 From: Doug Brown Date: Sun, 6 Aug 2023 20:35:27 -0700 Subject: [PATCH] Update linker scripts with correct RAM/flash sizes Change code style so that it's easy to see the number of kilobytes too. --- hal/m258ke/nuvoton/LDROM.ld | 4 ++-- hal/m258ke/nuvoton/gcc_arm.ld | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/m258ke/nuvoton/LDROM.ld b/hal/m258ke/nuvoton/LDROM.ld index e0c5e44..977097e 100644 --- a/hal/m258ke/nuvoton/LDROM.ld +++ b/hal/m258ke/nuvoton/LDROM.ld @@ -1,8 +1,8 @@ /* Linker script to configure memory regions. */ MEMORY { - FLASH (rx) : ORIGIN = 0x00100000, LENGTH = 0x1000 /* 4K */ - RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x2000 /* 8K */ + FLASH (rx) : ORIGIN = 0x00100000, LENGTH = 4*1024 + RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16*1024 } /* Library configurations */ diff --git a/hal/m258ke/nuvoton/gcc_arm.ld b/hal/m258ke/nuvoton/gcc_arm.ld index 3966b27..0e89af2 100644 --- a/hal/m258ke/nuvoton/gcc_arm.ld +++ b/hal/m258ke/nuvoton/gcc_arm.ld @@ -1,8 +1,8 @@ /* Linker script to configure memory regions. */ MEMORY { - FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x8000 /* 32k */ - RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x2000 /* 8k */ + FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 128*1024 + RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 16*1024 } /* Library configurations */