Keil 的 debug (printf) viewer 为啥无法工作
本帖最后由 xhx321 于 2019-3-2 23:44 编辑想用 ITM_Send() 将log打印到 debug (printf) viewer里。但是一直无法成功。
有那位朋友能帮忙指导一下吗?
环境:KEIL v5.17 + STM32L475VE + ST-LINK V2-1Trace settings: http://community.arm.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/15/6471.Untitled.pngCode in main.c:void main(void)
{
//SYSCLK = HSE / PLLM * PLLN / PLLR
//SYSCLK = 8M / 1 * 20 /2 = 80M
SystemClock_Config();
while(1) ITM_SendChar('A');
}
现象:1. debug (printf) viewer 里没有任何打印 (如图)2. 在程序运行时,状态栏提示 "Trace: no synchronization" (如图) http://community.arm.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/15/6170.Untitled1.png
真心无语,手上的开发版,SWO引脚被做它用,所以从硬件上ITM trace不支持。:L 用jlink的segger rtt
页:
[1]