Hello, I am trying to develop a PC station. However, I am having a problem with getting it started. I am using
github.com/.../pc-ble-driver-py as a reference.
I was able to successfully install using pip install pc-ble-driver-py
However, when I am trying to run a example I get this error in the terminal.
C:\Python27\Lib\site-packages\pc_ble_driver_py\examples>python2 heart_rate_collector.py COM5
Serial port used: COM5
Traceback (most recent call last):
File "heart_rate_collector.py", line 156, in <module>
main(serial_port)
File "heart_rate_collector.py", line 119, in main
driver = BLEDriver(serial_port=serial_port, auto_flash=True)
File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 809, in __init__
if flasher.fw_check() == False:
File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 739, in fw_check
data = self.read(addr = 0x20000, size = 4)
File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 755, in read
data = self.call_cmd(args)
File "C:\Python27\lib\site-packages\wrapt\wrappers.py", line 561, in __call__
args, kwargs)
File "C:\Python27\lib\site-packages\wrapt\decorators.py", line 440, in _synchronized
return wrapped(*args, **kwargs)
File "C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 783, in call_cmd
return subprocess.check_output(args + [self.family], stderr=subprocess.STDOUT)
File "C:\Python27\lib\subprocess.py", line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['nrfjprog', '--snr', '682740769', '--memrd', '131072', '--w', '8', '--n', '4', '--family', 'NRF51']' returned non-zero exit status -45
I have a nrf52 development board connected with connectivity_115K2_2.0.1.hex
installed
Am a missing a step?
Can somebody walk me through what I need to do?
I have visual studio installed on my computer.