2012-03-29 10:59 AM
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?2012-03-29 12:01 PM
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.