Error Now Programming Multiple Development Boards

I used to be able to program my development boards or my own custom boards but now I get always get an error:


C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\bt-fund-main\lesson4\blefund_less4_exer3_solution\build_1 --skip-rebuild --dev-id 1050529288 --erase"

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: Flashing file: c:\ncs\bt-fund-main\lesson4\blefund_less4_exer3_solution\build_1\zephyr\zephyr.hex
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command read_device_info executed for 301 milliseconds with result -102
[error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 191 milliseconds with result -102
Failed to read device memories.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 33: nrfjprog --program 'c:\ncs\bt-fund-main\lesson4\blefund_less4_exer3_solution\build_1\zephyr\zephyr.hex' --chiperase --verify -f NRF52 --snr 1050529288

I don't know how to run the command without the GUI.  In the command prompt I get the following:

C:\Users\sheldonstruthers>C:\Windows\system32\cmd.exe /d /s /c "west flash -d c:\ncs\bt-fund-main\lesson4\blefund_less4_exer3_solution\build_1 --skip-rebuild --dev-id 1050529288 --erase"
'west' is not recognized as an internal or external command,
operable program or batch file.

Could someone please help me.  I stuck and I need to make finish the design soon,

Thanks,

Sheldon

  • Hi Sheldon

    First a few questions to start with

    1. Is it the custom board you are trying to flash? If so, what you use as a programmer/debugger?

    2. Have you verified the pinout between the debugger and the board?

    3. Have you verified that the board is powered?

    4. Do you have the newest version of Command line tool installed? 

    5. If you are using an USB cable, have you tried with a different Cable?

    6. If it is a DK, have you done any current measurement on the board? If so, have you remembered the jumper on p22? 

    7. What version of segger j-link are you using?

    Regards

    Runar

  • Hi Runar,

    Thanks for the fast response...

    1) It doesn't matter what board I use, the nRF21540-DK, the nRF52840-DK or either of my custom boards.  I used to be able to program any of them.  Now all of the time I get the same error.

    2) The pinout has to be correct because they all used to work.

    3) Yes, all boards are powered (actually, when I program my development board, it is powered by the DK board, and this worked fine before)

    4) I am installing v2.60 (where I had been using V2.50)... and now it works!  I have no idea what happened.  I wonder if I accidentally set some kind of switch that was restored with the newer version.  Hopefully it continues to work!!!

    Thanks,
    Sheldon

  • Hm

    Strange, but if it works I'm happy and hopefully we don't see the issue again. If the error comes back just write in this ticket and we will try to debug the issue. 

    Regards

    Runar

Related