Hi,
I come from here: https://devzone.nordicsemi.com/f/nordic-q-a/80874/nrfjprog-not-working-on-raspberry-pi-4/336129
But for me the nrfjprog comand works fine:
pi@raspberrypi:~/Desktop/repo/gateway-software/gateway $ nrfjprog -f NRF51 --program ./firm.hex --chiperase Parsing image file. Verified OK.
However when I try to upload an hex with the pynrjprog pip module I get the following error:
File "/home/pi/Desktop/repo/gateway-software/gateway/OTA.py", line 116, in updateBin api.open() File "/home/pi/Desktop/repo/gateway-software/productionVenv/lib/python3.7/site-packages/pynrfjprog/LowLevel.py", line 177, in open raise APIError(result, error_data=self.get_errors()) pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -254 INTERNAL_ERROR.
This is the zone of the code at which it fails:
api = LowLevel.API(LowLevel.DeviceFamily.UNKNOWN) api.open()
I'm runing pynrfjprog version 10.15.1