Trying to build with Ninja results nrfjprog.py in an AttributeError.

I am able to build my project, but when I try to flash it to the board via ninja flash_<target> I can select the device in nrfjprog.py, I know, that I have to use "'0'" as input, so that the script doesn't result in an error, but then I get the following error:

nrf5_SDK_for_Mesh_v4.0.0_src/CMake/nrfjprog.py", line 93, in main
with multiprocessing.Pool(len(devices)) as p:
AttributeError: __exit__

Is there a way to fix this?

Parents
No Data
Reply
  • Hi Tilltheman, 

    Could you explain a little bit of the issue you have ? I'm not sure I understand this part " I know, that I have to use "'0'" as input, so that the script doesn't result in an error," 

    When you have multiple boards connected the script will ask you to input which board you want to program then you can enter "0" or other number or "a" for all. 

    Could you point to where you have the trouble ? 

    Note that you can also use nrfjprog.exe to flash directly. 

Children
Related