一段很简单的代码,如下:
[mw_shl_code=c,true]#include "sys.h"
#include "delay.h"
#include "usart.h"
int main(void)
{
u8 t=0;
HAL_Init();
Stm32_Clock_Init(360,25,2,8);
delay_init(180);
uart_init(115200);
while(1)
{
printf("t:%d
",t);
delay_ms(500);
t++;
}
}
[/mw_shl_code]
为什么串口调试助手可以正确的打印输出信息,但是serial window里什么都没有。

一周热门 更多>