Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12323

How to use a TI CC2564C Bluetooth controller with a Raspberry Pi 2 under Linux?

$
0
0

I am trying to connect a TI CC2564C Bluetooth controller to a Raspberry Pi 2 Model B that is running a Yocto generated (core-image-base, so with BlueZ 5.50 incorporated) Linux kernel (4.19.93).

For that, I am using the TI CC256xCQFNEM Evaluation Board. Using the EM pins of this eval board, I connected Pi2 GND (pin 6) to TI GND (pin EM1.19), Pi2 UART0_TXD (pin 8) to TI MODULE_UART_RX (pin EM1.7), Pi2 UART0_RXD (pin 10) to TI MODULE_UART_TX (pin EM1.9), Pi2 3v3 (pin 1) to TI 3v3 (pin EM2.7) and Pi2 3v3 (pin 17) to TI nSHUTD (pin EM2.19).

As so for now I am not using UART hardware flow control (CTS and RTS). I am not sure though how to correctly use the nSHUTD pin of the eval board, though I understood that in order to work it needed to be at a high state.

I then connect via SSH using a PC with Ubuntu 18.04 to my Raspberry Pi 2 and try this:

root@raspberrypi2:~# hciconfig -aroot@raspberrypi2:~# hciattach /dev/serial0 any 115200 noflow nosleepDevice setup completeroot@raspberrypi2:~# hciconfighci0:   Type: Primary  Bus: UART    BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0    DOWN INIT RUNNING     RX bytes:0 acl:0 sco:0 events:0 errors:0    TX bytes:8 acl:0 sco:0 commands:2 errors:0root@raspberrypi2:~# hciconfig hci0 upCan't init device hci0: Connection timed out (110)

Apparently it does not recognize the Bluetooth controller, as the BD address seems suspicious and I can't initialize the device.I don't know if the error comes from the pinout I used, the fact that I am not using hardware flow control (doubt it), or some missing Linux commands or drivers.I just know that the TI eval board is indeed powered, as the LED is on.

I tried different pinout (nSHUTD to GND for example) and different commands (texas instead of any, -r ...) with the same result.

If anyone worked with this TI component or successfully connected a UART Bluetooth Controller to a Raspberry Pi 2, any help would be really appreciated !

Thank you in advance.


Viewing all articles
Browse latest Browse all 12323

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>