The "complete" code is about 700 lines (and it is not complete yet).
Found another bug.
I call some subroutine, which uses own set of variables (verified)
after calling it, value of totally different variable (not used in that part of code) gets random values.
Very disturbing.
Can this be compiler issues or maybe faulty chip itself?
Bookmarks