- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Increase the heap size (Workspace explorer -> Design wide resources -> System) to 0x0200.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually I figured out. I changed the statement for USBUART_CDCIsReady from while loop to a if statement and it worked. Thanks!