nRF52832 Tracing & Soft resets

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

    • nRF52832 Tracing & Soft resets

      I'm collecting trace data using J-Trace and Ozone. It is meant for Code Coverage purposes and our test procedures involve several Soft Resets. After a Soft Reset the orange TRACE LED on J-Trace is active, however Ozone stops receiving trace data. Is there a ways for Ozone to keep collecting data after a Soft Reset ?
    • Hello,

      Thank you for your inquiry.
      Arm tracing was not designed to survive resets. So the answer is no.
      What you could try is to halt the debug session after reset and resume it in Ozone. That might work. But any data before that point would be gone.

      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.
    • New

      Adding a breakpoint at the beginning of main() does the job. After a reset execution stops at the breakpoint and, after resuming execution trace data is being collected.

      Is there a way to script this operation? Detect a halt on a breakpoint and call Debug.Continue() automatically ?
    • New

      Hello,

      Great to hear that you are up and running again.
      Yes you can automate Ozones GUI actions.
      Here is an example where an action is executed after e.g. a breakpoint is hit:
      wiki.segger.com/Automated_Tests_with_Ozone#Debug_example

      So you could set a breakpoint before or after main (on main will maybe not work as the debugger clears the breakpoint of the application entry point automatically so you save one hardware breakpoint) and execute the debug contione action which would trigger the whole trace init again.

      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.