Stm32 Keil Software Setup program write start address

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.