MDK5 STM32 printf 输出到串口 1、选择 MicroLIB 2、添加头文件 3、printf重定向到串口,前提是该串口已经初始化完成了(具体初始化方法,这里不再详细介绍) Talk is cheap, show me the code