- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when debug message output is OK, then use CyU3PTimerCreate to create one timer, use CyU3PDebugPrint in timer call back function, It can not print message in call back function, I have confirm the timer call back have execute, in call back function increase one value, I have see this value increase when time elapse.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please do not use debug messages in the call back function. Instead, set an event flag in the callback function and check for the event in the thread loop to print the debug message.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please do not use debug messages in the call back function. Instead, set an event flag in the callback function and check for the event in the thread loop to print the debug message.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I know, it is only for debug, Not for release version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The CyU3PDebugPrint() API can encounter a failure when invoked from a callback function. You can check the return value of the API by setting it to a global variable and reading it in the thread main loop.
Best regards,
Srinath S