I found the source of the problem. The optimizer removed large parts of my program. I debug in optimization level 0 and run the program in level 2. Because interrupt timing issues. So it took me almost a week to find it. Compiler issues sucks.
I got a lot of complex pointer references. That the compiler removes.
I made everything volatile. But that doesn't work for pointers and get a lot of the following errors: Description #169 argument of type "volatile unsigned char *" is incompatible with parameter of type "unsigned char *"
- Is there a optimization report. So I know what is removed.
- Can I exclude pointers from optimization.
- Can I exclude parts of the code from optimization.
Suggestions?
Thanks,
Ernst