Ozone restarts target after custom reset.

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

    • Ozone restarts target after custom reset.

      HI All,

      Trying to write a custom reset script using JLinkScript to toggle the reset line on our processor, halt the target, and poke a value to memory to halt the watchdog timer.

      The JLinkScript is working from JLinkExe (I'm on Fedora 34):

      Source Code

      1. J-Link>rsettype 2
      2. Reset type RESETPIN: Resets core & peripherals using RESET pin.
      3. J-Link>r
      4. Reset delay: 0 ms
      5. Reset type RESETPIN: Resets core & peripherals using RESET pin.
      6. ResetTarget() start
      7. Stopping Watchdog
      8. Halted core
      9. ResetTarget() end
      10. J-Link>ishalted
      11. CPU is halted (PC = 0x00000324).
      Display All


      When I use the same reset script in Ozone The CPU does not halt:


      Source Code

      1. Connected to target device.
      2. ResetTarget() start
      3. Re-enable debug access.
      4. Stopping Watchdog
      5. Halted core
      6. ResetTarget() end
      7. CPU could not be halted
      8. Failed to halt CPU.
      9. CPU could not be halted

      Despite on Line 5 my check that the S_HALT bit is set in DHCSR.

      Any ideas?

      Regards,

      Glenn
    • Hello Glenn,

      Thank you for your inquiry.
      Such an issue is not known to us.
      Where in your Ozone script do you set the JLinkScript file?
      We recommend to use BeforeTargetConnect() to make sure it is set each time a new debug session is triggered.

      Should that already be the case, could you provide a J-Link log of the Ozone and commander session in comparison?
      wiki.segger.com/Enable_J-Link_log_file

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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.