Nothing in idle, blocks USB?
Posted: Thu Mar 26, 2015 5:28 pm
Hi all!
I have always had something like a blinking LED in the while-loop in main, but now it was time to remove this.
So I just have an while(1) loop with nothing in it.
The thing is, when I do this the USB stops working (even if I disable the Idle thread).
So the first question is, why does it stop working?
As the while(1) loop is not a thread it should not congest the USB data pump thread.
Second question, what should you have in the loop to not have this problem?
I can't find any example for this.
Thanks in advance!
Best Regards
Emil
I have always had something like a blinking LED in the while-loop in main, but now it was time to remove this.
So I just have an while(1) loop with nothing in it.
The thing is, when I do this the USB stops working (even if I disable the Idle thread).
So the first question is, why does it stop working?
As the while(1) loop is not a thread it should not congest the USB data pump thread.
Second question, what should you have in the loop to not have this problem?
I can't find any example for this.
Thanks in advance!
Best Regards
Emil