Q:

Is it safe to call printf() inside Interrupt Service Routine (ISR)?

0

Is it safe to call printf() inside Interrupt Service Routine (ISR)?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

It is not a good idea to call the printf() insider the ISR. The printf function is not reentrant, thread-safe.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Can we put a breakpoint inside ISR?... >>
<< How to reduce interrupt latency?...