cancel
Showing results for 
Search instead for 
Did you mean: 

With any of the optimization levels (-Os size/-O1 general/-O2 speed/-O3 fast) except -O0 none, bootloader is not jumping to the application code.

AVM
Associate III

Hi,

I am working on SPC58NG84E7 bootloader. I have BL code(at 0xFC0000) which jumps to the APP location 0xFD0000 after waiting for 10sec after startup and executes the code there. Both codes have optimization NONE(-O0). 

But when BL optimization changed to -Os size or any of the mentioned, BL is not jumping to the APP and continuously running the BL code.

What could be the issue here?

Regards,

AM

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

@AVM​ ,

Think about an optimized variable(s) and use volatile ..

SofLit

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

@AVM​ ,

Think about an optimized variable(s) and use volatile ..

SofLit

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
AVM
Associate III

Thanks SofLit!

This helped in resolving the issue.

Thank you for the feedback.

Please close this post by clicking the "Select as Best" button in the above answer. This will help other community members to find the solution more quickly.

Thank you.

SofLit

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.