Skip to content

Instantly share code, notes, and snippets.

@adeonhy
Created October 7, 2018 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeonhy/9c90c5bcf34b796ce7d3d2869f58a4e7 to your computer and use it in GitHub Desktop.
Save adeonhy/9c90c5bcf34b796ce7d3d2869f58a4e7 to your computer and use it in GitHub Desktop.
ファームウェアパッケージ書き込み時エラー
[hy@hyPro]% sudo nrfutil dfu usb-serial -pkg ble_master.zip -p /dev/tty.usbmodem14125
Password:
Traceback (most recent call last):
File "/usr/local/bin/nrfutil", line 11, in <module>
sys.exit(cli())
File "/Library/Python/2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Library/Python/2.7/site-packages/nordicsemi/__main__.py", line 827, in usb_serial
do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, False)
File "/Library/Python/2.7/site-packages/nordicsemi/__main__.py", line 793, in do_serial
dfu.dfu_send_images()
File "/Library/Python/2.7/site-packages/nordicsemi/dfu/dfu.py", line 129, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "/Library/Python/2.7/site-packages/nordicsemi/dfu/dfu.py", line 90, in _dfu_send_image
self.dfu_transport.open()
File "/Library/Python/2.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 213, in open
self.__set_prn()
File "/Library/Python/2.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 309, in __set_prn
self.__get_response(DfuTransportSerial.OP_CODE['SetPRN'])
File "/Library/Python/2.7/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 436, in __get_response
if resp[0] != DfuTransportSerial.OP_CODE['Response']:
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment