Hello, I'm having a rather weird problem. Im orking on a project in a QB8 and when I add any extra line of code in a specific function the compiles generates bad code for another function that has nothing to do with the first one.
If I leave the first function ( void main_task(void) ) whithout any extra code, the right code for the affected one is:
But if I add the line "battState = CHARGE_ERROR" to " void main_task(void)" the compiler now generates code that makes the CPU fly into another reality:
If instead I add the line "msecTimerExample = 1;" now I got:
I dont know whats happening, the copiler is messing things up. this is a very weird bug.