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,

    Which Cortex-M3 device are you using? And for which CPU frequency is the device configured?

    On some Cortex-M3 devices it is necessary to enable SWO via register settings. A description can shurly be found in the device user manual.

    Please check that in uVision ULINK Cortex Debugger Settings is configured for trace.
    Checkbox Trace Enable must be checked.
    Core Clock must be set to the CPU frequency that the device is using.
    ITM Stimulus Port 0 must be enabled.

    Best Regards,
    Martin Guenther

Reply
  • Hello josh u,

    Which Cortex-M3 device are you using? And for which CPU frequency is the device configured?

    On some Cortex-M3 devices it is necessary to enable SWO via register settings. A description can shurly be found in the device user manual.

    Please check that in uVision ULINK Cortex Debugger Settings is configured for trace.
    Checkbox Trace Enable must be checked.
    Core Clock must be set to the CPU frequency that the device is using.
    ITM Stimulus Port 0 must be enabled.

    Best Regards,
    Martin Guenther

Children
More questions in this forum