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

ULink PRO - Streaming ETM trace does not work

I own a ULINK Pro. Managed to get ETM trace working on my STM32F4,
but when I stop the CPU or run into a breakpoint, I can only
look back about 1ms (at 168MHz) or about 2ms at 100MHz.
How much I can see in the trace window seems to depend on the
complexity of the code. More function calls or even function pointers
seem to reduce the number of instructions.

It seems to me that I can not use streaming trace, but only the
buffer in the ULINK Pro, which seems to be very small (around 64KB?)
With streaming trace, the number of instructions should be unlimited since
my harddrive can be used as buffer.

Any way to get streaming trace up and running?

Parents
  • Jack,

    Thanks for trying, but this is not the reason:
    Of course my chip has ETM. STM32F4 does have it, besides I said that I do get
    trace data, only not a lot and not life. Seems like I only get whatever
    the FPGA can store.
    And yes, I did enable ETM (again, otherwise I would not get anything!)
    Unlimited trace is also enabled. Processor is properly configured. I checked with scope,
    settings are correct as I get data on all 4 Trace-data lines.

    I am starting to think that it simply does not work, that with
    ULINK PRO I can only get the trace data that the FPGA can store
    and only after halting the target CPU, which would be a very severe limitation.

    Does ANYONE HAVE STREAMING TRACE actually working?

Reply
  • Jack,

    Thanks for trying, but this is not the reason:
    Of course my chip has ETM. STM32F4 does have it, besides I said that I do get
    trace data, only not a lot and not life. Seems like I only get whatever
    the FPGA can store.
    And yes, I did enable ETM (again, otherwise I would not get anything!)
    Unlimited trace is also enabled. Processor is properly configured. I checked with scope,
    settings are correct as I get data on all 4 Trace-data lines.

    I am starting to think that it simply does not work, that with
    ULINK PRO I can only get the trace data that the FPGA can store
    and only after halting the target CPU, which would be a very severe limitation.

    Does ANYONE HAVE STREAMING TRACE actually working?

Children
  • It would be helpful if Bob Boys jumped in here to provide some definitive statement about the function and configuration of the trace modes.

    One of the compelling cases for trace is a long term buffer that can run indefinitely and provide postmortem data about just how the heck the code got to where it is, and why.

    As Sven points out, the STM32 family has a complete debug instantiated with the core. The STM3240G board has trace headers as I recall.

  • Bob Boys, where are you?

    And again: Does ANYBODY HAVE STREAMING TRACE ACTUALLY WORKING ???

    Does not seem like it. If not, I will probably have to use J-Trace from Segger
    and/or switch to another tool chain (Who? Do not want to use IAR ...)
    as I need a bigger trace buffer.