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

nrfprog : "--family : command not found" error

-I was following this link- "devzone.nordicsemi.com/.../" and installed SEGGER JLink. (all on Ubuntu) -Installed gcc-arm and changed the tool chain path on Makefile.posix. -Now am able to build the SDK eexamples. But am not able to run commands of 'command line tools' , that is , am not able run - ">nrfjprog" command on linux successfully.

Tried as below : /* Optional: erase target if not already blank */ /examples/peripheral//blank/armgcc/>nrfjprog --family <nRF51/52> -e

Its giving error like- "--family: command not found". I have also tried below commands, which are not working: ">nrfjprog -f NRF52 --program file.hex --chiperase" Am giving above command by going to the path- "/examples/peripheral//blank/armgcc/"

note : I am running these commands without connecting the target device.

The nordic documents suggest the commands which can run on Windows, please suggest commands to use - "nrfjprog" on Linux.

By the way i have installed SEGGER JLink from - "www.segger.com/.../jlink", which am not sure that it is SEGGER version provided with this package (JLink_V512g).

Parents
  • I think the tutorial doesn't actually install nrfjprog in the sense that it copies it to a standard location where the shell expects to find commands (e.g. /usr/local/bin or other.) On my dev system, I downloaded and unpacked to ~/Downloads/nrfjprog (a directory with many files including the executable nrfjprog) and I changed the Makefiles to refer to it. If you need to run nrfjprog from the command line, then as Jorgen says, you can modify the PATH variable in your env, or simply type the full pathname when you use it: ~/Downloads/nrfjprog/nrfjprog.

Reply
  • I think the tutorial doesn't actually install nrfjprog in the sense that it copies it to a standard location where the shell expects to find commands (e.g. /usr/local/bin or other.) On my dev system, I downloaded and unpacked to ~/Downloads/nrfjprog (a directory with many files including the executable nrfjprog) and I changed the Makefiles to refer to it. If you need to run nrfjprog from the command line, then as Jorgen says, you can modify the PATH variable in your env, or simply type the full pathname when you use it: ~/Downloads/nrfjprog/nrfjprog.

Children
No Data
Related