J-link: Proper way of retrying

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

    • J-link: Proper way of retrying

      New

      When executing J-Link_Commander script what's the proper way of retrying operations?

      Currently I use:

      Source Code

      1. // best effort masserase, implicit reset & halt,
      2. ExitOnError 0
      3. reset
      4. WaitHalt 100
      5. erase
      6. //last one must pass, executes faster if it's already blank
      7. ExitOnError 1
      8. erase
      and use it with

      JLink.exe -NoGui 1 -CommandFile production.jlink

      Is there a better/faster way? Like if conditions, retry counts?

      Sometimes operations (connecting/erasing/programming) fail and need retrying.

      Launching the entire script again would be very slow, so it has to be done inplace.

      There are 0 results for 'retry' in documentation.