This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug build works but release

Note: This was originally posted on 19th January 2010 at http://forums.arm.com

My code works on debug build ( -Otime -g+ )
But release build can't work (  -Otime -O2 -zo )
the code is the same. the compiler is ADS1.2

Do you guys have any idea or previous experience on such an issue?

Thanks.
Parents
  • Note: This was originally posted on 21st January 2010 at http://forums.arm.com

    This issue got fixed.

    the root cause is the MCU pwrp config.
    but the odd is
    debug can work yet release can't.
    Seem that Keil ARM debugger can't emulate the MCU 100% behaviors .


    yes. all SFR access is protected by volatile.

    Now I'm thinking of the runtime init problem. the phenomenon is also debug version works but release build fails.
Reply
  • Note: This was originally posted on 21st January 2010 at http://forums.arm.com

    This issue got fixed.

    the root cause is the MCU pwrp config.
    but the odd is
    debug can work yet release can't.
    Seem that Keil ARM debugger can't emulate the MCU 100% behaviors .


    yes. all SFR access is protected by volatile.

    Now I'm thinking of the runtime init problem. the phenomenon is also debug version works but release build fails.
Children
No data