This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/SIMPLELINK-CC2640R2-SDK: "Display_printf out the IDE console" not working on BLE simple_peripheral example

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2

Tool/software: TI-RTOS

Dears Sir/Madam,

I followed this topic: dev.ti.com/.../debugging_output.html

I am using CC2640R2 launchpad board.

Seems display on the console will make BLE working not properly.

When I try to connect with device, it always disconnects immediately:

And nRFconnect(Android app) says "GATT CONN FAIL ESTABLISH".

nRF Connect, 2018-12-04
SimpleBLEPeripheral (54:6C:0E:A0:45:0C)
I 10:07:53.269 [Server] Server started
V 10:07:53.287 Heart Rate (0x180D)
- Heart Rate Measurement [N] (0x2A37)
Client Characteristic Configuration (0x2902)
- Body Sensor Location [R] (0x2A38)
- Heart Rate Control Point [W] (0x2A39)
Immediate Alert (0x1802)
- Alert Level [R W WNR] (0x2A06)
V 10:07:53.565 Connecting to 54:6C:0E:A0:45:0C...
D 10:07:53.565 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE) (hidden)
D 10:07:53.998 [Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:07:53.998 [Server] Device with address 54:6C:0E:A0:45:0C connected
D 10:07:53.998 [Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)
I 10:07:53.998 [Server] Device disconnected
D 10:07:53.998 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:07:53.999 Connected to 54:6C:0E:A0:45:0C
D 10:07:54.035 [Callback] Connection state changed with status: 62 and new state: DISCONNECTED (0)
E 10:07:54.035 Error 62 (0x3e): GATT CONN FAIL ESTABLISH
I 10:07:54.035 Disconnected
D 10:07:54.035 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 10:07:54.035 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 10:08:02.581 gatt.close()
D 10:08:02.586 wait(200)
V 10:08:02.789 Connecting to 54:6C:0E:A0:45:0C...
D 10:08:02.789 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE) (hidden)
D 10:08:23.018 [Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:08:23.018 [Server] Device with address 54:6C:0E:A0:45:0C connected
D 10:08:23.019 [Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)
I 10:08:23.019 [Server] Device disconnected
D 10:08:23.057 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:08:23.057 Connected to 54:6C:0E:A0:45:0C
D 10:08:23.058 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 10:08:23.080 [Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E 10:08:23.080 Error 8 (0x8): GATT CONN TIMEOUT
I 10:08:23.080 Disconnected
D 10:08:23.080 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 10:08:30.240 gatt.close()
D 10:08:30.243 wait(200)
V 10:08:30.446 Connecting to 54:6C:0E:A0:45:0C...
D 10:08:30.446 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE) (hidden)
D 10:08:31.047 [Server callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:08:31.047 [Server] Device with address 54:6C:0E:A0:45:0C connected
D 10:08:31.047 [Server callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)
I 10:08:31.047 [Server] Device disconnected
D 10:08:31.075 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 10:08:31.075 Connected to 54:6C:0E:A0:45:0C
D 10:08:31.075 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D 10:08:31.094 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 10:08:31.095 [Callback] Connection state changed with status: 62 and new state: DISCONNECTED (0)
E 10:08:31.095 Error 62 (0x3e): GATT CONN FAIL ESTABLISH
I 10:08:31.095 Disconnected

The original code works fine with Display on UART.