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?