![]() STM32F4xx_Flash_CCM_App.icf - Linker script for the application which places the bootheader and the SEGGER Linker calculated CRC.bootheader.s - Defines an optional bootheader which is usually used to configure the bootloader or pass fixed information to the bootloader via the application.main.c - Simple Systick interrupt sample.There are four source files and two linker scripts which are important in this example. The significant memory placement is as follows: One is the bootloader and the other the application project. The provided example project creates a Embedded Studio solution which contains two projects. To learn how to use additional features that Embedded Studio offers which make the debug experience more enjoyable see the example project explanation below. To make sure that the bootloader runs before your application project make sure to set Debug->Debugger->Start From Entry Point Symbol->No in the application project.Now you should have a setup where you can debug bootloader and application independently.For reference see the example project and the SEGGER Linker documentation. Edit the memory regions and section/symbol placements in the linker script to fit your bootloader and application needs.Duplicate and rename the linker script (.icf file) and set each file in the corresponding project as linker script.Now add your bootloader and application sources to the corresponding projects.This will for example be needed for the linker scripts. Should you not want to use shared files in some instances make sure to duplicate and rename them for the project. Note: As the same project template was used for the creation of both projects some files are shared. Now you have two projects in the same solution.You will be prompted with a couple of pop-ups notifying you, that some of the files already exist.Henceforth we will refer to this project as application. Press Next, select your target device and keep pressing Next until your project is finished. Select the "A C/C++ executable for." from the corresponding package.Make sure it has a different name the the first project. Now create a second project in the same solution via File->New Project->Add the project to the current solution. ![]() Henceforth we will refer to this project as bootloader.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |