From 1edfae58c8c4de55e8bfbce36ea9eb800a06e6c6 Mon Sep 17 00:00:00 2001 From: Colin O'Flynn Date: Fri, 30 Apr 2021 15:08:01 -0300 Subject: [PATCH] Fix STM32F0 to work with smaller devices --- hardware/victims/firmware/hal/stm32f0/LinkerScript.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hardware/victims/firmware/hal/stm32f0/LinkerScript.ld b/hardware/victims/firmware/hal/stm32f0/LinkerScript.ld index e585f8348..727b6805a 100644 --- a/hardware/victims/firmware/hal/stm32f0/LinkerScript.ld +++ b/hardware/victims/firmware/hal/stm32f0/LinkerScript.ld @@ -53,7 +53,7 @@ ENTRY(Reset_Handler) /* Highest address of the user mode stack */ -_estack = 0x20004000; /* end of RAM */ +_estack = 0x20002000; /* end of RAM */ _Min_Heap_Size = 0; /* required amount of heap */ _Min_Stack_Size = 0x400; /* required amount of stack */ @@ -61,8 +61,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ /* Memories definition */ MEMORY { - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K - ROM (rx) : ORIGIN = 0x8000000, LENGTH = 128K + RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K + ROM (rx) : ORIGIN = 0x8000000, LENGTH = 16K } /* Sections */