From 8498e4dc036c41ba4fb8ec6dff12e72af75f9347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sat, 7 Apr 2018 11:13:08 +0200 Subject: [PATCH] bootloader: fix SRAM comment --- bootloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootloader.c b/bootloader.c index e7abd32..d4cfe32 100644 --- a/bootloader.c +++ b/bootloader.c @@ -72,8 +72,8 @@ void main(void) /* the application starts with the vector table * the first entry in the vector table is the initial stack pointer (SP) address * the stack will be placed in RAM - * on STM32F1xx SRAM begins at 0x2000 0000, and on STM32F103x8 there is 20KB of RAM (0x5000). - * since the stack grown "downwards" it should start at the end of the RAM: 0x2000 5000 + * on STM32F1xx SRAM begins at 0x2000 0000, and on STM32F103xx there is up to 96 KB of RAM (0x18000). + * since the stack grown "downwards" it should start at the end of the RAM: max 0x2001 8000 * if the SP is not in this range (e.g. flash has been erased) there is no valid application * the second entry in the vector table is the reset address, corresponding to the application start */