ETB Trace empty on Attach

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • ETB Trace empty on Attach

      Hi

      I am trying to get Buffered Tracing (ETB) working with Ozone.

      I downloaded the sample project in the KB: kb.segger.com/Tracing_on_Atmel_ATSAME54

      If I flash and debug the sample, it generally works. I can resume and pause, and I see the Instruction Trace.
      But when I disconnect from the target and then at a later point Attach & Halt, the Instruction Trace is empty and does not show any data.
      (I also tried with the Embedded Studio, but here I also did not see valid data, only 0xFFFFFFF0 Addresses)

      Is this behavior expected/correct?
      I thought with ETB, I would be able to connect to a running target and inspect what was written to the trace-buffer while I was not connected with the debugger...

      Regards
    • Hello,

      Thank you for your inquiry.

      The described behaviour is expected. The debugger has to initialize ETB trace to be able to use it. For this a defined system state is needed e.g. after reset or target halt.
      After continuing after such defined system state you should see trace data.

      For such post-mortem analysis that you describe you have to take care of initialization yourself and dump the data in ETB buffer manually as it was not set up through our software so we do not know the trace settings which is required to know to be able to analyze the trace data afterwards.

      Best regards,
      Nino
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.