[SOLVED] JFlash return code

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

  • [SOLVED] JFlash return code

    Dear all,

    I am using JFlash in command line to program our boards like the following:

    JFlash.exe -openprj"test.jflash" -open"test.hex" -connect -production -startapp -exit

    It works great but I can't find a way to detect error. For example, if I forget to connect the board then the result of the execution of JFlash is the same than in case of success.
    How should I get information about the error in command line ?

    Many thanks in advance for your help

    PGE
  • Hello,

    Thank you for your inquiry.
    Each command line option will return 0 if successful and a negative value if not.
    This can be used e.g. in a batch script with error handling.
    An example can be found in the J-Flash documentation UM08003 in section "Batch processing".

    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.