I need help building the connectivity firmware and getting it working with the examples in pc-ble-driver-py.
If I use nRF Connect Desktop to program a nRF52840 DK, I can get the heart_rate_collector.py script to work with it.
But I’ve tried to compile different versions of the connectivity firmware in the 17.1.0 SDK. First off, I’m not sure which firmware I should be working with. I assumed it’s the UART version under the ser_s140_uart folder (examples\connectivity\ble_connectivity\pca10056\ser_s140_uart) since the when I get it working I am using the VCOM port over the USB (via interface MCU), not the USB port connected directly to the nRF52840.
I use the S140 softdevice at components\softdevice\s140\hex\s140_nrf52_7.2.0_softdevice.hex. Everything builds fine. I’ve tried both the Keil (arm5_no_packs) and the Makefile (armgcc) builds.
Ultimately, I'm trying to build the same version of the connectivity firmware the the Bluetooth Lower Energy Standalone app loads on the the nRF52840 and I want to extend that firmware to use in our manufacturing test jig so that the nRF52840 can interface with some I/O while running the connectivity firmware as a bridge to a BLE peripheral implemented in Python.
But the heart_rate_collector.py examples fails with a timeout, with the following message:
Serial port used: COM7
2024-12-30 12:40:56,541 [2588/LogThread] Successfully opened COM7. Baud rate: 1000000. Flow control: none. Parity: none.
2024-12-30 12:40:56,542 [2588/LogThread] evt> severity(20) message(Successfully opened COM7. Baud rate: 1000000. Flow control: none. Parity: none.)
2024-12-30 12:40:56,543 [40196/StatusThread] RpcAppStatus.resetPerformed: Target Reset performed
2024-12-30 12:40:56,543 [40196/StatusThread] evt> status code(RpcAppStatus.resetPerformed) message(Target Reset performed)
2024-12-30 12:40:58,724 [40196/StatusThread] RpcAppStatus.pktSendMaxRetriesReached: No response from device. Tried to send packet 6 times.
2024-12-30 12:40:58,725 [40196/StatusThread] evt> status code(RpcAppStatus.pktSendMaxRetriesReached) message(No response from device. Tried to send packet 6 times.)
Traceback (most recent call last):
[... Stack trace deleted ...]
pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: NRF_ERROR_TIMEOUT
Here is some version info of what I was testing with:
nRF Connect for Desktop Bluetooth Low Energy Standalone v0.4 from nRF Connect for Desktop v5.1.0
pc-ble-driver-py v0.17.0 tag (cc3a9d2) from github.com/.../pc-ble-driver-py