Hi,
This is a really weird problem.
======================
Setup of 52832 hardware:
- Custom board, using 32MHz XTAL and LF RC.
- SDK15.2, S132 610
- Segger RTT client with JLink debugger.
=======================
This 52832 hardware mainly acts as peripheral and been worked quite well, can connect and communication correctly with iPhone/iPad.
Recently I try to use a 52840 instead of iPhone/iPad as central to connect with this 52832. The connection parameters are as in below's log.
info> app: [Central Scanning] updating neighbour list: 1 neighbour nodes ... <info> app: [Central Scanning] connect to peer 0 ...... <info> app: CENTRAL: Connected, handle: 0. <info> app: CENTRAL: init db discovery: 0. <debug> ble_db_disc: Starting discovery of service with UUID 0x1 on connection handle 0x0. <info> app: CENTRAL: start discovery: 0. <debug> nrf_ble_gatt: Requesting to update ATT MTU to 224 bytes on connection 0x0. <debug> nrf_ble_gatt: sd_ble_gattc_exchange_mtu_request() on connection 0x0 returned busy, will retry. <debug> nrf_ble_gatt: Updating data length to 224 on connection 0x0. <debug> nrf_ble_gatt: Peer on connection 0x0 requested an ATT MTU of 127 bytes. <debug> nrf_ble_gatt: Updating ATT MTU to 127 bytes (desired: 224) on connection 0x0. <debug> ble_db_disc: Found service UUID 0x1. <debug> nrf_ble_gatt: Data length updated to 127 on connection 0x0. <debug> nrf_ble_gatt: max_rx_octets: 127 <debug> nrf_ble_gatt: max_tx_octets: 127 <debug> nrf_ble_gatt: max_rx_time: 1989 <debug> nrf_ble_gatt: max_tx_time: 1989
In this setup 52832 will send HVX notification to 840, and I am expecting to see maximum 127 bytes of messages received on 840 side.
However, I found that part of the notifications that 52832 send to 52840 are wrong(sometimes even leads to connection timeout), and this problem only occur when 52832 is not connected with JLink Debugger, When I try to investigated it with JLink debugger attached, the problem does not show up.
This seems like some potential memory conflicts with RTT backend to me, probably because I missed something somewhere, or maybe some issue with RTT itself. But the point is I have no means to debug this problem in this case, any suggestion about this situation?
Thank you.