STM32 Keil Software Setup program write start address selection
STM32 Series MCU, here take CORTEX-M4 as an example, when we debug online, we usually set the program to write the start address and size. This size is typically 0x08000000, which is the mapping address of the internal flash. But some products start from 0x08020000, which is why. is because in the 0x08000000-0x08020000 this space is the boot program, that is, the boot program is stored from the 0x08000000, in general, the bootloader is ultimately to jump to the main app to execute, for us here, It is the bootloader that jumps to 0x08020000 to continue, and the main project code is stored from 0x08020000, so it is concatenated.
Here you can see the program we set the address and size of the write, this setting is to be used with the use memory Layout from the target dialog option,
That is to check: Usememory Layout from Target dialog
If this option is not checked, then the external corresponding SCT file will be loaded
If this option is not selected for use memory layout from Target dialog , then the corresponding SCT file will be addressed as follows:
The 0x08020000 and 0x00100000 that are specified here are the same effect.
If you do not check this option and do not have the specified SCT file, the compilation will error
.. \intermediate\tprj.axf:error:l6031u:could not open Scatter description file. \tprj.sct:no such file or directory
This time either the external file is not loaded, the address is written at the target, or the address is indicated in the corresponding SCT file.