3 Debugging with UART
demik edited this page 2021-08-26 19:01:09 +02:00

Connecting

There is a debug console accessible through the board UART. Like the flashing process, you will need an USB to TTL FTDI Adapter with 3.3V support.

Connect the TTL Adapter using only the following pins: GND, RX and TX (do NOT connect VCC / +5V / +3.3V etc) Speed is 115200 8N1

Pairing process

I (15645) blue: scan returned 1 result(s)
I (15649) blue: found BT PERIPHERAL device: 98:fd:b4:7d:b3:98, RSSI: -41, NAME: HP Bluetooth Mouse Z5000
W (16153) BT_SDP: process_service_attr_rsp
W (16317) BT_SDP: process_service_attr_rsp
E (16501) BT_HIDH: Report Not Found: 3 mode: REPORT
BDA:98:fd:b4:7d:b3:98, Status: OK, Connected: YES, Handle: 0, Usage: MOUSE
Name: , Manufacturer: , Serial Number: 
PID: 0x084c, VID: 0x03f0, VERSION: 0x0200
Report Map Length: 102
  CCONTROL   INPUT REPORT, ID:   3, Length:   7
     MOUSE   INPUT   BOOT, ID:   2, Length:   4
     MOUSE   INPUT REPORT, ID:   2, Length:   5
I (16525) blue: opened connection with 98:fd:b4:7d:b3:98
I (16529) blue: ---8<------------------------------------------
I (16537) blue: 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 
I (16545) blue: 29 03 15 00 25 01 75 01 95 03 81 02 75 05 95 01 
I (16549) blue: 81 01 05 01 09 30 09 31 16 01 f8 26 ff 07 75 0c 
I (16557) blue: 95 02 81 06 09 38 15 81 25 7f 75 08 95 01 81 06 
I (16565) blue: c0 c0 05 0c 09 01 a1 01 85 03 05 06 09 20 15 00 
I (16569) blue: 26 ff 00 75 08 95 01 81 02 06 bc ff 0a ad bd 75 
I (16577) blue: 08 95 06 81 02 c0 
I (16581) blue: ---8<------------------------------------------
I (16589) blue: switching 98:fd:b4:7d:b3:98 (0) to protocol mode boot
D (16593) blue: MOUSE INPUT BOOT is id 2 size 4 byte(s)