cancel
Showing results for 
Search instead for 
Did you mean: 

Keil Compiler: USB examples do not work in Opt level 0

flyer31
Senior
Posted on March 29, 2012 at 19:59

Hi,

I have some nicely working USB device examples now, but none of them works, if I use the Keil compiler (uVision 4.23) with opt level 0 - for opt level 1-3 they work nicely.

Has anyone observed something similar already? Any hint, what the reason could be?
1 REPLY 1
Posted on March 29, 2012 at 21:01

Perhaps you could check stack utilization, and if data buffers get pushed into different regions of memory (with different DMA access speeds/limitations, or alignments).

See if you can bisect the problem by optimizing different portions of the code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..