This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

No Trace Clk

Other Parts Discussed in Thread: TM4C123GE6PM

Hello,
I try to use the (ETM) Trace functionality of a TM4C123xx device with IAR EW and a JTrace debug probe.
Unfortunately the download and debug of the bins works with JTAG/SWD also the SWO tracing works fine- but if I activate the ETM option- I receive the message that no tace clk could be detected. So there is no trace clk from the TM4C- do I have to initialize the ETM module?

Thanks for help!!
Felix.

  • Hello Felix,

    The ETM Trace clock is not available on the TM4C123 but only on the TM4C129 devices.

    Regards

    Amit

  • Hello Amit,

    I’m very confused about your post.
    In all the datasheets I saw (e.g. http://www.ti.com/lit/gpn/tm4c123ge6pm) the ETM trace port is documented- for the TM4C123 devices...
    Also in the hardware design guide the trace port is documented- including the trace clk pin….

    Felix.

  • Hello Felix,

    What it did not mention is if the GPIO Port F has been configured for Trace Function. The pins are PF0 to PF4 (please note that PF0 is a locked pin, so you would need to unlock it first)

    Regards

    Amit

  • Hello Amit,

    we connect the Trace port to GPIO Port F0 to 4.
    Is the trace functionality for this pins the default setting after a reset or is a initialisation needed?
    I tried:
        // enable trace port
        SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
        GPIOPinConfigure(GPIO_PF3_TRCLK);
        GPIOPinConfigure(GPIO_PF2_TRD0);
        GPIOPinConfigure(GPIO_PF1_TRD1);
        GPIOPinConfigure(GPIO_PF0_TRD2);
        GPIOPinConfigure(GPIO_PF4_TRD3);

    with no succes-no trace clk at the controller pin.
    What I have to do to enable the trace buffer function?

    Thanks!
    Regards
    Felix

  • Hello Felix,

    The Trace Pins are not configured by default. Only the JTAG and Boot Loader pins are enabled by default at power on reset. I checked the data sheet and it seems that the trace is available only in the serial wire mode.

    Regards

    Amit