Question
Change App start address in STM32F4 ( Bootloader USB + App)
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
But this didn't work either,
Any solution for my basic issue ?
