I am trying to perform a dfu upgrade according to:
infocenter.nordicsemi.com/index.jsp
The exact command I am running is:
nrfutil dfu ble -ic NRF52 -pkg dev_board_bl.zip -p COM3 -a "56:13:BD:9B:9C:3D"
where COM3 is where the connectivity (bridge) device sits and "56:13:BD:9B:9C:3D" is the address the to device that should be upgraded.
The error I get is this:
$ nrfutil dfu ble -ic NRF52 -pkg dev_board_bl.zip -p COM3 -a "56:13:BD:9B:9C:3D"
Traceback (most recent call last):
File "/usr/bin/nrfutil", line 11, in <module>
load_entry_point('nrfutil==3.5.1', 'console_scripts', 'nrfutil')()
File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/nordicsemi/__main__.py", line 802, in ble
ble_driver_init(conn_ic_id)
File "/usr/lib/python2.7/site-packages/nordicsemi/__main__.py", line 65, in ble_driver_init
from pc_ble_driver_py.ble_driver import BLEDriver, Flasher
File "/usr/lib/python2.7/site-packages/pc_ble_driver_py/ble_driver.py", line 95, in <module>
shlib_file = '{}{}{}'.format(shlib_prefix, SHLIB_NAME, shlib_postfix)
NameError: name 'shlib_postfix' is not defined
Now shlib_postfix is not defined since I use a cygwin terminal. There's no 'else' so it stays undefined. So I casually put cygwin as a elif
and made the settings for windows. But it stops someplace else; a quick search gives a fair amount of requests to sys.platform.
So I figured it would be worth checking with you guys if there was a cygwin compatible version around perhaps in some dev branch that
I could borrow?
I work on setting things up for windows but it is hard om mi stomach. The acid is burning so much my yogi will have a hard time putting me
back together again.