Closed pearson closed 3 years ago
Yeah, it is indeed as intended, please download and install nrfjprog from nordic site and make sure its location is added to PATH
UPDATE: I just realized, we did included nrfjprog v9.4 as depency tools, will update to get its path correctly. This will be resolved in the next release.
Using the current Arduino IDE (v.1.8.15) and the current Adafruit nRF52 boards package (v0.21.0) under Windows 10, attempts to flash the bootloader to the Adafruit Bluefruit nRF52 feather fail with
java.io.IOException: Cannot run program "nrfjprog.exe": CreateProcess error=2, The system cannot find the file specified
.The problem seems to be quite simple: the path to
nrfjprog.exe
is not being used, as seen in the verbose error log below. Adding the path tonrfjprog.exe
to that command results in a successful flash.This problem was previously mentioned 3 years ago in issue #127 . While the replies to issue #127 directed the user to the forums for help, this does appear to be a bug. Installing the Adafruit nRF52 boards package does not put
nrfprog.exe
onto the user's path, and so the flashing will fail.Steps to repeat the process
The result is the error:
Solution
As mentioned above, adding the path to
nrfjprog.exe
results in a correct flashing.