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

Trace:No Synchronization in debugging uVision4

Hi,

I have a ULINK2 debugger and Core-M3 board. I have a simple program that will print a simple "Hello World". I want this printf output will be display in the Debug (Printf) viewer on my uVision IDE, this will happen during Debugging. I've already setup the Retarget.c for the ITM_SendChar and enable the Port 0 for the ITM Stimulus Port.But unfortunately when I do debugging theirs no display for Debug(printf) viewer and it has a display in the bottom portion of the IDE: Trace: No Synchronization.
If I do debugging using SIMULATION i can view the printf output display in Debug(printf) viewer but if I do debugging using the Debugger (ULINK2) theirs no display on the printf viewer.
I've read on the "ULINK2 User Guide, Trace Status: No Synchronization --> There are no synchronization packets received from the target. This indicates that the Trace hardware is either not connected or improperly configured.", but I'm still can't figure out how to resolve my issue. Could someone help me....thanks a lot.

Parents
  • Hello josh u,

    The while loop while (ITM->PORT[0].u32 == 0); runs as long as the stimulus port register is not empty.

    Read access to a stimulus port register returns the FIFO status. 0 = full, 1 = not full.

    ITM Stimulus Ports 0-31
    
    Each of the 32 stimulus ports has its own address. A write to one of these locations
    causes data to be written into the FIFO if the corresponding bit in the Trace Enable
    Register is set. Reading from any of the stimulus ports returns the FIFO status in bit [0]:
    • 0 = full
    • 1 = not full.
    

    Best Regards,
    Martin Guenther

Reply
  • Hello josh u,

    The while loop while (ITM->PORT[0].u32 == 0); runs as long as the stimulus port register is not empty.

    Read access to a stimulus port register returns the FIFO status. 0 = full, 1 = not full.

    ITM Stimulus Ports 0-31
    
    Each of the 32 stimulus ports has its own address. A write to one of these locations
    causes data to be written into the FIFO if the corresponding bit in the Trace Enable
    Register is set. Reading from any of the stimulus ports returns the FIFO status in bit [0]:
    • 0 = full
    • 1 = not full.
    

    Best Regards,
    Martin Guenther

Children
No data