I am trying to monitor some sensor data detecting X and Y position input using USBUART. However, if I execute the function sending the data, the code will break and stop functioning. If I remove the line that executes the function, the code will run normally. I am not sure if I violated any rules using USBFS?
I have provided the main.c file as attachment below, please help!
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Unfortunately this does not fix the issue... The code will execute for one iteration and stop after that. Putting it in debug mode with a line break at line 205 (count++) shows that the variable count does not increment.
Actually I figured out. I changed the statement for USBUART_CDCIsReady from while loop to a if statement and it worked. Thanks!