Browse Source

bootloader: fix SRAM comment

spark_strober
King Kévin 5 years ago
parent
commit
8498e4dc03
  1. 4
      bootloader.c

4
bootloader.c

@ -72,8 +72,8 @@ void main(void) @@ -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
*/

Loading…
Cancel
Save