Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why am I getting a failure in setting breakpoints after infinite while loop on DSP-side?

0
Posted

Why am I getting a failure in setting breakpoints after infinite while loop on DSP-side?

0

For stopping execution on the DSP-side to be able to debug further, you should not put a direct while (1) loop, because the compiler removes all code after it automatically, which is probably why you are not able to set breakpoints. Execution of DSP can be suspended in ‘main ()’ by putting an infinite loop at the beginning of the function. However a simple ‘while (1)’ loop cannot be used as the compiler optimizes away the code after the while loop as that code becomes unreachable.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123