cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

I've developed my code in the DEBUG configuration.  It runs and works well on my target.  When I try to run the RELEASE version it does all sorts of craziness and just doesn't work right.  I've been through the project settings and can't find any differences between the two configurations. Can someone look at my project and help me out?

0 Likes
Reply
1 Solution
Esteemed Contributor II

Probably something gets optimized-out (I see some variables in the CAN that are not declared as volatile).

Try setting the optimization level to "debug" or "none" in your project build settings for release and see if that changes something.

Bob

View solution in original post

0 Likes
Reply
2 Replies
Esteemed Contributor II

Probably something gets optimized-out (I see some variables in the CAN that are not declared as volatile).

Try setting the optimization level to "debug" or "none" in your project build settings for release and see if that changes something.

Bob

View solution in original post

0 Likes
Reply
New Contributor II

By changing the optimization level to "None" my project works in RELEASE mode!

0 Likes
Reply