This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to flash multiple nRF51 Dongles at once?

Hello,

I'm curious about how to deploy my application to multiple nRF51 Dongles at the same time while I am developing. I have the same application / hex file running on all Dongles, but I have not yet found a way to configure a parallel deploy in either keil or via a batch file. I was trying to use J-Flash, but it tells me that I do not have a licence....

Parents Reply Children
  • Thanks a lot. The nrfjprog tool was what I was looking for. Deploying is now about 10 times faster for me, that will greatly speed up my workflow. I've modified the file to only flash my application because I have the softdevice preprogrammed in development. Now it looks like this:

    echo Parallel flashing on all dongles
    
    SET SEGGER0=680######
    SET SEGGER1=680######
    SET SEGGER2=680######
    
    SET APPHEXFILE=obj_node\fruityMesh.hex
    
    start /min nrfjprog -s %SEGGER0% --program %APPHEXFILE% -r
    start /min nrfjprog -s %SEGGER1% --program %APPHEXFILE% -r
    start /min nrfjprog -s %SEGGER2% --program %APPHEXFILE% -r
    
    echo "Flashing finished"
    

    I've added the start command so that it flashes on all devices parallel. it will open a bunch of windows though, but the flashing speed is just perfect :-)

Related