Hi, I tried to use pc-ble-driver-py script to talk to a nRF52840 DK. It works perfectly with the official connectivity app hex file (the one nRF-Connect PC application loads to the board). Because I need to switch serial port pins to match with my current hardware design, I compiled ble_sdk_app_connectivity from SDK15 but didn't work with the python code! I always get error code 13 on PC.
For the test I've done these modifications on ble_sdk_app_connectivity project:
- Disabling all logging on UART ports
- Switching the serial port pins for serialization:
#define SER_APP_RX_PIN NRF_GPIO_PIN_MAP(0,8) // UART RX pin number.
#define SER_APP_TX_PIN NRF_GPIO_PIN_MAP(0,6) // UART TX pin number.
#define SER_APP_CTS_PIN NRF_GPIO_PIN_MAP(0,7) // UART Clear To Send pin number.
#define SER_APP_RTS_PIN NRF_GPIO_PIN_MAP(0,5) // UART Request To Send pin number.
- Forcing the code to talk to seial port in 115200 baud
Questions:
1- Is it a correct assumption to say pc-ble-driver-py can talk to ble_sdk_app_connectivity firmware in general? If so, what was my mistake? Can you provide a version of ble_sdk_app_connectivity which works properly with pc-ble-driver-py throw USB cable (JLink UART)?
2- How can I have access to the source code of the official connectivity app firmware (the one nRF-Connect uses to program the boards for BLE connectivity)?
Thanks