J-Flash ARM 3.78c command line problem

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

  • J-Flash ARM 3.78c command line problem

    Hello:

    I am currently using J-Flash Arm 3.78c through the command line and having trouble piping the output to a file using the “>” command. the US support did experience the same problem where the file gets created without any output. My command that I used is as Follow:

    JFlashARM.exe -openprjC:\Projects\AmigoUTForMainBoardTester\bin\Debug\AT91FR40162.jflash -openBootstrap_Loader.hex -auto > log.log

    any help will be greatly appreciated!!

    Thanks

  • You may want to try something similar to the following. If I run the following batch file everything works as expected.

    @ECHO OFF

    JFlashARM.exe -openprjC:\Projects\AmigoUTForMainBoardTester\bin\Debug\AT91FR40162.jflash -openBootstrap_Loader.hex -auto -exit

    ECHO ERRORLEVEL: %ERRORLEVEL%

    ECHO %ERRORLEVEL% > log.log

    IF ERRORLEVEL 1 GOTO ERROR
    ECHO SUCCESS!
    GOTO END

    :ERROR
    ECHO ERROR!

    :END

    If I run with cable or power disconnected the output is:

    C:\test>test.bat
    ERRORLEVEL: 1
    ERROR!

    If everything is connected as it should be, I get the following:

    C:\test>test.bat
    ERRORLEVEL: 0
    SUCCESS!

    I hope this helps.
    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.

    The post was edited 1 time, last by SEGGER - Shane Titus ().