I tried to run some examples from pc_ble_driver_py but i always end up with the following exception.
(using python 2.7.9)
Traceback (most recent call last):
File "C:\Python279\Lib\site-packages\pc_ble_driver_py\examples\advertising.py", line 79, in <module>
main("COM10")
File "C:\Python279\Lib\site-packages\pc_ble_driver_py\examples\advertising.py", line 50, in main
driver = BLEDriver(serial_port=serial_port, auto_flash=True)
File "C:\Python279\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 894, in __init__
if flasher.fw_check() == False:
File "C:\Python279\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 834, in fw_check
data = self.read(addr = 0x20000, size = 4)
File "C:\Python279\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 844, in read
data = self.call_cmd(args)
File "C:\Python279\lib\site-packages\wrapt\wrappers.py", line 561, in __call__
args, kwargs)
File "C:\Python279\lib\site-packages\wrapt\decorators.py", line 440, in _synchronized
return wrapped(*args, **kwargs)
File "C:\Python279\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 872, in call_cmd
return subprocess.check_output(args + [self.family], stderr=subprocess.STDOUT)
File "C:\Python279\lib\subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['nrfjprog', '--snr', '', '--memrd', '131072', '--w', '8', '--n', '4', '--family', 'NRF51']' returned non-zero exit status 41
I am new to python and wasn't able to figure out what I am doing wrong :(