Serial Debugging
Revision as of 04:12, 30 April 2021 by Lth (talk | contribs) (Created page with "Category:STM32Category:STM32 DevelopmentCategory:STM32CubeMXCategory:STM32CubeIdeCategory:STM32 HAL{{metadesc|How to redirect printf to USB Serial Port}} R...")
Redirecting printf to a Virtual COM port is really easy:
int _write(int file, char *ptr, int len) { CDC_Transmit_FS((uint8_t *)ptr, len); return len; }