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

Flashing using Eclipse

Hi

I have setup and configured Eclipse using the tutorial and all seems to be good, except, I cant flash the binary to the chip. Here is my error when calling flash:

  • Flashing: _build/nrf52840_xxaa.hex
  • nrfjprog --program _build/nrf52840_xxaa.hex -f nrf52 --sectorerase
  • ERROR: Invalid argument provided: -f.
  • Makefile:234: recipe for target 'flash' failed

I'm using the following

  • IC: nRF52840
  • Softdevice: S140 SDK: nRF5_SDK_13.0.0_04a0bfd
  • Example as base: ble_app_hrs_c
  • IDE: Eclipse + GCC

Please help

Thanks

Parents Reply
  • Ah, thanks David...that makes sense. I did not assume that the actual nrfjprog tool version is the same as the tools package.

    I have no idea where in eclipse to set this. The correct path is in my Environment PATH variable, yet, when I call nrfjprog from command prompt, it still calls it from the old location?! This is probably the problem hey? How do I fix this if it is correctly specified in the PATH variable?

Children
No Data
Related