??? 06/26/09 15:25 Read: times |
#166499 - Could you please suggest? Responding to: ???'s previous message |
Do not call printf from any ISR.
printf is a very powerful function; which means that it is very large - exactly what you do not want in an ISR! Also, Keil's standard putchar implementation means that printf does not return until the last character has been transmitted! And printf is not reentrant, so it is highly likely that calls in an ISR will corrupt calls elsewhere in the program - which looks like exactly what you are seeing! So, one more time: Do not call printf from any ISR. Ever. |