This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfprog: Is there a solution for multiple programming?

Hi,

on the nrfprog you can detect all connected Segger programmers. If I have 10 Segger Programmers connected, I can address each of them with the nrfprog to programm over the specific one. Now I can make a simple script to programm all 10 in one step, but still its a serial programming.

Exist a tool, programmed as multitasking, to call multiple instances of nrfprog at the same time? Or must I do this by myself?

Best, Ingolf

Parents
  • Hi,

    I can suggest a couple of solutions that comes to my mind.

    The first would be to create a Makefile and run make with the -j option, but this approach is a bit hacky.

    A more elegant solution is to use GNU parallel. It allows you to run a command in parallel with different input arguments. I found this great tutorial which shows you how to use it.

    For example, you could specify the arguments in a text file:

    ARGUMENTS.TXT
    arg1
    arg2
    arg3
    

    and run parallel -a arguments.txt nfprog which would run 3 instances of nfprog in parallel, one for each argument.

    Regards

Reply
  • Hi,

    I can suggest a couple of solutions that comes to my mind.

    The first would be to create a Makefile and run make with the -j option, but this approach is a bit hacky.

    A more elegant solution is to use GNU parallel. It allows you to run a command in parallel with different input arguments. I found this great tutorial which shows you how to use it.

    For example, you could specify the arguments in a text file:

    ARGUMENTS.TXT
    arg1
    arg2
    arg3
    

    and run parallel -a arguments.txt nfprog which would run 3 instances of nfprog in parallel, one for each argument.

    Regards

Children
No Data
Related