Skip to main content
Associate II
November 21, 2024
Question

Stm32F303 Jump to app not working

  • November 21, 2024
  • 3 replies
  • 1684 views

hello.

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

Jump code is not working.

 

TaronKim_2-1732153727880.png

 

This topic has been closed for replies.

3 replies

Karl Yamashita
Principal
November 21, 2024

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 */

 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
TaronKimAuthor
Associate II
November 21, 2024

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

 

Tesla DeLorean
Guru
November 21, 2024

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..