Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: Optimization setting produce different (non-working) results

$
0
0
I'm struggling to understand why only some debug settings produce a working project.  I started with a template, 'Blinky w/ThreadX' and added CRC functionality.  The code compiles, yet I can't step through the debug as the default optimization setting is -02 (more) and therefore, some items are optimized out.  So I switched to optimization -OG (Debug).  Using this the code simply does not run.  So i tried -O0 (none).  Using this as I step through I fall into the Default_Handler.  Can you assist?  It seems that there's a limited way to build functional/debug-able code. Thanks, Rich 

Viewing all articles
Browse latest Browse all 59170

Trending Articles