KEIL simulation 时 printf打印到debug viewer
首先添加头文件 #include <stdio.h>增加以下代码到C文件中#define ITM_Port8(n) (((volatile unsigned char )(0xE0000000+4n)))#define ITM_Port16(n) (((volatile unsigned short*)(0xE0000000+4n)))#define ITM_Port32(n) (((volatile unsigned long )(0xE0000000+4..
原创
2021-01-22 09:35:51 ·
910 阅读 ·
1 评论