Change App start address in STM32F4 ( Bootloader USB + App)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 2:51 AM - edited 2023-07-24 3:02 AM
Hello all,
I have a project using STM32F407 with 1MB of flash and it uses :
- USB Bootloader project ( start address 0x8000000)
- App project ( Start address 0x800C000)
I want to change the App start address to sector 4 ( 0x08010000)
From my understanding I have to change the following defines
In bootloader, tell the bootloader wher to find the app !
#define USBD_DFU_APP_DEFAULT_ADD 0x08010000U
In App, in its linker (STM32F407VGTx_FLASH.ld)
FLASH (rx) : ORIGIN = 0x8010000, LENGTH = 720K
I tried the above settings but it didn't work ! App doesn't start
I read that I have to change vector table address aswell system_stm32f4xx.c
So I added the offset of 16K
#define VECT_TAB_OFFSET 0x4000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 3:56 AM
Why 16K if the address is 0x8010000 ? This is 64K.
