cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32F303 Jump to app not working

TaronKim
Associate II

hello.

After Mcu jump to app in custom bootloader, work while(1).

Jump code is not working.

 

TaronKim_2-1732153727880.png

 

3 REPLIES 3
Karl Yamashita
Lead III

in the system_stm32f3xx.c file, did you make modifications to the VECT_TAB_OFFSET with the Application address (SYSTEM_ADDRESS)

/*!< Uncomment the following line if you need to relocate the vector table
     anywhere in Flash or Sram, else the vector table is kept at the automatic
     remap of boot address selected */
#define USER_VECT_TAB_ADDRESS

#if defined(USER_VECT_TAB_ADDRESS)
/*!< Uncomment the following line if you need to relocate your vector Table
     in Sram else user remap will be done in Flash. */
/* #define VECT_TAB_SRAM */
#if defined(VECT_TAB_SRAM)
#define VECT_TAB_BASE_ADDRESS   SRAM_BASE       /*!< Vector Table base address field.
                                                     This value must be a multiple of 0x200. */
#define VECT_TAB_OFFSET         0x00000000U     /*!< Vector Table base offset field.
                                                     This value must be a multiple of 0x200. */
#else
#define VECT_TAB_BASE_ADDRESS   FLASH_BASE      /*!< Vector Table base address field.
                                                     This value must be a multiple of 0x200. */
#define VECT_TAB_OFFSET         0x00000000U     /*!< Vector Table base offset field.
                                                     This value must be a multiple of 0x200. */
#endif /* VECT_TAB_SRAM */
#endif /* USER_VECT_TAB_ADDRESS */

 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

Define "Not Working" in more pratical terms, have you reviewed the generated code, and stepped through it?

What happens? Where does it go?

Watch for changing the Stack address whilst holding auto/local variables on it..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

I already changed vector offset. (application start address : 0x0800D000)

TaronKim_2-1732168724509.png

TaronKim_1-1732168703189.png

I think that Jump() function is not working, cause after Jump() function and go to while() function.

TaronKim_0-1732168671778.png