Skip to main content
AVM
Associate II
January 18, 2022
Solved

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.

  • January 18, 2022
  • 1 reply
  • 1413 views

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

    This topic has been closed for replies.
    Best answer by mƎALLEm

    @AVM​ ,

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

    SofLit

    1 reply

    mƎALLEm
    mƎALLEmBest answer
    Technical Moderator
    January 18, 2022

    @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
    AVMAuthor
    Associate II
    January 19, 2022

    Thanks SofLit!

    This helped in resolving the issue.

    mƎALLEm
    Technical Moderator
    January 19, 2022

    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."