![]() #define APP2_START (0x0800A800) //Origin + Bootloader size (20kB) + App1 Bank (22kB) This bootloader listens to these commands via USB COM Port: Therefore applications need to have shifted the FLASH memory origin and offset in the vector table. ![]() To find out what is your's MCU Page Size, read a Reference Manual: Bootloader for STM32Ī bootloader is just an app that can jump to another application, erase the flash, or write a new data to the FLASH memory.Īpplications are located in different sections of the FLASH memory, after the last bootloader sector ends. Then convert that value (20480) to hexadecimal format (0x5000) in a calculator. To calculate offest in KB in binary, visit: The third partion is for the Application2 (22KB). The second partition is for the Application1 (22KB). The first partition (20KB) is for the bootloader. The FLASH memory (64KB) is splitted into multiple partitions. This bootloader example can jump to 2 different applications. This example contains a bootloader example, 2 app examples and a desktop app to flash binary files to a STM32. STM32 bootloader example that can jump to 2 apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |