This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why Debug (printf) viewer has no output in Keil?

Hi ,

I'm trying to print something via "ITM_SendChar();"  in the Debug (printf) Viewer of Keil. But it seems no work for me.

Environment:  KEIL v5.17 + STM32L475VE + ST-LINK V2-1

Trace settings:

Code in main.c:

void main(void)
{
    //SYSCLK = HSE / PLLM * PLLN / PLLR
    //SYSCLK = 8M / 1 * 20 /2 = 80M
    SystemClock_Config();
    while(1) ITM_SendChar('A');
}

Observed things:

1. There is no prints in the debug (printf) viewer(see pictures)

2. There is "Trace: no synchronization" in the status bar during the running.(see pictures)

Any ideas ?

Thanks in advance.

Parents
  • Well, after going through the ITM and ST-LINK documents. 

    It might be HW conflicts.

    The SWO pin was set for LCD controlling in my development board after checking the board layout.

    And also, same method works on another board.

Reply
  • Well, after going through the ITM and ST-LINK documents. 

    It might be HW conflicts.

    The SWO pin was set for LCD controlling in my development board after checking the board layout.

    And also, same method works on another board.

Children