How to direct printf() in USB Host library into Virtual Communication Port?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-04 1:38 AM
So I notice when I configure my STM32F769 Discovery board as USB Host, the generated middleware already have built in logging USBH_UsrLog() which is handy.
But looking at it definition on the macro, basically it wrap standard printf() like following:
#define USBH_UsrLog(...) do { \
printf(__VA_ARGS__); \
printf("\n"); \
} while (0)
I am not sure the original intention of making it printf(), but let say I want to direct this into Virtual Com Port, how should I do this?
Without doing anything, let say I already define my USBH_DEBUG_LEVEL > 0, can I see the USB logging somewhere?
Labels:
- Labels:
-
STM32Cube MCU Packages
-
STM32F7 Series
-
USB
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-06 6:04 AM
Ok, I already find solution for this
