2020-07-28 12:32 PM
I want to test out the DFU on STM32F429ZI-Nucleo
I have located the Boot loader project.
STM32F429ZI-Nucleo\Applications\USB_Device\DFU_Standalone
In order to have this Bootloader Jump into the App. Do I simply change the
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
of any STM example ?
or there is more to it ?
Solved! Go to Solution.
2020-07-28 02:33 PM
Thanks. Found it "VECT_TAB_OFFSET", change this to match FLASH, it works now.
2020-07-28 01:07 PM
Well you'd want to shrink the size of the loader, and advance the origin on the application, so there is a suitable split between them.
On the app side you'd need to fix up the vector table address set into SCB->VTOR to match the new origin.
The new origin should be on a flash sector boundary, which will also be on a 512-byte boundary in this case, which is what the VTOR register needs.
2020-07-28 02:07 PM
I updated the ld file for memory
FLASH (rx) : ORIGIN = 0x8008000, LENGTH = 2016K
But I could not find where to change the "vector table address set into SCB->VTOR"
2020-07-28 02:10 PM
Usually SystemInit() in system_stm32f4xx.c, or grep
2020-07-28 02:33 PM
Thanks. Found it "VECT_TAB_OFFSET", change this to match FLASH, it works now.