2023-07-24 02:51 AM - edited 2023-07-24 03:02 AM
Hello all,
I have a project using STM32F407 with 1MB of flash and it uses :
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
2023-07-24 03:56 AM
Why 16K if the address is 0x8010000 ? This is 64K.