Pynrfjprog -153 error

Hi,

I'm developing a software in python 3.9.6 64-bit which program a nRF9160 and nRF52840 using pynrfjprog.

The software is working from vscode debug session. But when I generate a .exe file using pyinstaller (including the .dll files for pynrfjprog in the .spec) at the programming step, pynrfjprog raise the error : "-153 is not a valid NrfjprogdllErr".  What is the cause of this error and is there a way to solve it ?

I tried with different versions of pynrfjprog but without success.

Any help is welcome.

Thanks,

Antoine

Related