Serial Debugging

From Stm32World Wiki
Revision as of 04:15, 30 April 2021 by Lth (talk | contribs)
Jump to navigation Jump to search

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;
}