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 */