From 56dbe2ad30ba50fe07d363e749a956c5abc79c0b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 3 Apr 2023 15:47:41 -0700 Subject: [PATCH] arm-picolibc-eabi: Specify default linker memory layout Picolibc now lets you configure the default memory layout used in the default linker script. Add values to the sample arm-picolibc-eabi configuration that sets values appropriate for typical cortex m processors run under qemu. Signed-off-by: Keith Packard --- samples/arm-picolibc-eabi/crosstool.config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/arm-picolibc-eabi/crosstool.config b/samples/arm-picolibc-eabi/crosstool.config index 72dcb07b..d08c882f 100644 --- a/samples/arm-picolibc-eabi/crosstool.config +++ b/samples/arm-picolibc-eabi/crosstool.config @@ -8,3 +8,7 @@ CT_LIBC_PICOLIBC=y CT_CC_GCC_MULTILIB_LIST="rmprofile" CT_CC_GCC_CONFIG_TLS=y CT_CC_LANG_CXX=y +CT_LIBC_PICOLIBC_DEFAULT_FLASH_ADDR="0x00000000" +CT_LIBC_PICOLIBC_DEFAULT_FLASH_SIZE="0x00400000" +CT_LIBC_PICOLIBC_DEFAULT_RAM_ADDR="0x20000000" +CT_LIBC_PICOLIBC_DEFAULT_RAM_SIZE="0x00200000"