JRun return codes

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

    • JRun return codes

      New

      Hello,

      My understanding is that we can use JRun to send arguments and get return codes, but I'm having problems with the return codes.

      I'm using code from the wiki. It sends *ARGS*, receives arguments and reprints them, and everything looks good. For good measure, I send a *PASSED* to let myself know the test worked, something I can parse later on. I then return *STOP*, and JRun terminates.

      Now, my problem. I've read that I can also get an application-specific return code, but this part doesn't work. I'm trying to pass "*STOP*4\n"; it detects the stop and prints exit value 1. The value 42 returns exit value 2. My code looks like this:

      Source Code

      1. SEGGER_RTT_printf(0, "*PASSED*\n");
      2. SEGGER_RTT_printf(0, "*STOP*42\n");
      Am I missing something here?
    • New

      Hello,

      Your understanding is correct.

      Unfortunately a mistake has slipped into the printout, however this does not affect the actual JRun return code:

      Source Code

      1. C:\Work\JLink\JRun\Test>echo %ERRORLEVEL%
      2. 42

      A fix is on the way and will be published with the next release.

      Best regards,
      Thomas
      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.