STM32CubeIDE 添加printf打印输出

一、在使用STM32Cubde 生成好代码中usart.c中添加,以下的代码便可:ui /* USER CODE BEGIN 0 */ #include "stdio.h"spa #ifdef __GNUC__blog #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)it PUTCHAR_PROTOTYPE {io   // 注意下面第一个参数是
相关文章
相关标签/搜索