Skip to main content
Associate II
November 4, 2024
Question

IAP Jump to application not working

Hello, IAP have problem that jump to app.

MCU : Stm32f303cbt6

 

- boot side

a. STM32F303CBTX_FLASH.ld

TaronKim_0-1730683594916.png

b. main.c

TaronKim_1-1730683631898.png

c. main.h

TaronKim_3-1730683694730.png

 

 

- app side

a. STM32F303CBTX_FLASH.ld

TaronKim_2-1730683661036.png

b. system_stm32f3xx.c

TaronKim_4-1730683744559.png

 

Thanks.

 

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
November 4, 2024

>> IAP have problem that jump to app.

Perhaps you could explain WHAT the problem is?

Use the debugger, step the transfer of control.

Perhaps disassemble the code, make sure interfering with the stack frame impacts your use of auto/local variables.

Make sure the vectors don't contain blank FLASH data.

Set the boot FLASH length to 48 KB, reduce the app's to 80 KB

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TaronKimAuthor
Associate II
November 4, 2024

This problem is that boot can't jump to app.

When boot work Jump();, boot keep working next step.. not jump.

 

Acutally boot bin file size is under 40KB, why reduce the app's to 80KB?

 

Tesla DeLorean
Guru
November 4, 2024

Because there's only 128KB in the part, and you're starting 48K (0xC000) in... that kind of why

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
gbm
Super User
November 4, 2024
My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice