I am using nRF52840dongle and trying to flash the Blinky sample application provided in Zephyr.
Blinky: docs.zephyrproject.org/.../README.html
I had referred the programming instruction mentioned at given link https://docs.zephyrproject.org/latest/boards/nordic/nrf52840dongle/doc/index.html
I had tried to program the dongle by using method mentioned in option 1 which uses nrfutil. Successfully able to complete at Step 3 which is "Package the application for the bootloader using nrfutil". It failed at step 4
Issue:
Flashing Failed by giving below command
nrfutil nrf5sdk-tools dfu usb-serial -pkg blinky.zip -p COM22
Error:
zephyrproject>nrfutil nrf5sdk-tools dfu usb-serial -pkg zephyr\blinky.zip -p COM22
[------------------------------------] 0%
Traceback (most recent call last):
File "nordicsemi\__main__.py", line 1555, in <module>
File "click\core.py", line 1137, in __call__
File "click\core.py", line 1062, in main
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1404, in invoke
File "click\core.py", line 763, in invoke
File "nordicsemi\__main__.py", line 1032, in usb_serial
File "nordicsemi\__main__.py", line 988, in do_serial
File "nordicsemi\dfu\dfu.py", line 127, in dfu_send_images
File "nordicsemi\dfu\dfu.py", line 100, in _dfu_send_image
File "nordicsemi\dfu\dfu_transport_serial.py", line 300, in send_firmware
File "nordicsemi\dfu\dfu_transport_serial.py", line 400, in __create_data
File "nordicsemi\dfu\dfu_transport_serial.py", line 405, in __create_object
File "nordicsemi\dfu\dfu_transport_serial.py", line 504, in __get_response
pc_ble_driver_py.exceptions.NordicSemiException: Response Code OperationNotPermitted
[6640] Failed to execute script '__main__' due to unhandled exception!
The response code does not give much information. What could be the reason ?
Additionally, Tried to flash using command west flash. That also failed with an FATAL ERROR: required program nrfjprog not found; install it or add its location to PATH