AnsweredAssumed Answered

Bootloader - jump to APPLICATION_ADDRESS

Question asked by Gerber on Oct 30, 2015
Latest reply on Nov 11, 2015 by Gerber

I'm having some issue loading my application from the APPLICATION_ADDRESS

-Using a STM32F4 Discovery board
-As bootloader application I'm using the STM32F4 example STSW-STM32068
-I'm using the bootloader firmware with default APPLICATION_ADDRESS
#define APPLICATION_ADDRESS        (uint32_t)0x08008000
-When I'm loading the STSW-STM32068 .bin example on my USB-stick, the demo gets loaded and runs like it should.

so far so good..

-Next step is to create a bin file of my own application.
-I used the following settings for my application:
mem.ld file (.map file is updated accordingly):
FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 1024K
system_stm32f4xx.c file:
#define VECT_TAB_OFFSET  0x8000 /*!< Vector Table base offset field.

-Building the .bin file and rename it "image.bin" as needed by the bootloader firmware
-According to the LED's the .bin is loaded to the Flash memory correctly. Also checked with a debugger (memory is filled from 0x08008000).

-When I press the USER button the bootloader starts all over again, loading the .bin file from the USB-stick. I would expect that it will jump the loaded application @ 0x08008000

Do I miss something? Why is the bootloader not jumping to the APPLICATION_ADDRESS?