This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USBD can't be activated the Port correctly when I add my code in While loop

hello!

I have an issue, I need to read data from a Module, then I send that data using USBD..

when I put that code in for(;;) before while(true) the port is activated and the first data is receive can be sent perfectly!

but i need to send the updated data, so I put the code to update the data of module in While(true), just before the Port activation, it wouldn't work!! the port can't be created correctly!! 

I can't get what's the issue! but I need it in while to update the data!

please help!

thank you in advance.

Related