Well, you didn't show your complete code, so I'm just gonna have to guess. Are all variables that are accessed in both ISR and non-ISR code declared 'volatile'?
Well, you didn't show your complete code, so I'm just gonna have to guess. Are all variables that are accessed in both ISR and non-ISR code declared 'volatile'?