Other Parts Discussed in Thread: WL1837, AM5728, TMDSEVM572X
Hi ,
I am in the process of debugging Bluetooth encountered difficulties, the following are some of my configuration:
Chip : am5728
BT : wl1837
Kernel : 4.4.12
SDK : ti-processor-sdk-linux-am57xx-evm-03.00.00.04
Board: custom board
Firmware : TIInit_11.8.32.bts
Dvice tree :
tibt {
compatible = "tibt";
nshutdown_gpio = <132>;
dev_name = "/dev/ttyS7";
flow_cntrl = <1>;
baud_rate = <3000000>;
};
&uart10 {
status = "okay";
};
Kernel configuration :
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIUART_3WIRE=y
I have CONFIG_TI_ST enabled and CONFIG_BT_WILINK built as module. But CONFIG_ST_HCI is not available in kernel 4.4.12. Could this be related?
I succeeded in building Bluetopia PM and porting it to my board, but there was an error running the script on the board:
root@am57xx-evm:~/BluetopiaPM/bin# ./SS1BTPM & ./LinuxSPPM
[1] 1087
SPPM>1 1
BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
SPPM>9 1
echo 132 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio132/direction
echo 0 > /sys/class/gpio/gpio132/value
echo 1 > /sys/class/gpio/gpio132/value
echo 0 > /sys/class/gpio/gpio132/value
echo 1 > /sys/class/gpio/gpio132/value
BT COMM PORT (/dev/ttyS7): -5
DEVM_PowerOnDevice() Failure: -14, Unknown Error.
Function Error.
Here's "dmesg | grep luetooth":
[ 7.469188] Bluetooth: Core ver 2.21
[ 7.501466] Bluetooth: HCI device and connection manager initialized
[ 7.501478] Bluetooth: HCI socket layer initialized
[ 7.501486] Bluetooth: L2CAP socket layer initialized
[ 7.501523] Bluetooth: SCO socket layer initialized
[ 37.854195] Bluetooth: HCI UART driver ver 2.3
[ 37.858857] Bluetooth: HCI UART protocol H4 registered
[ 37.864020] Bluetooth: HCI UART protocol BCSP registered
[ 37.871853] Bluetooth: HCI UART protocol LL registered
[ 37.877016] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 37.924047] Bluetooth: st_register failed -22
Here's "hciattach /dev/ttyS7 texas 300000":
root@am57xx-evm:~/BluetopiaPM/bin# hciattach /dev/ttyS7 texas 300000
Can't get port settings: Input/output error
Can't initialize device: Input/output error
Device tree is how the value of the "nshutdown_gpio", I use the GPIO7_15 is the corresponding 132?
Or is my kernel configuration incomplete, but also add other options?
I would like to know how AM5728EVM debugging.
Used to compare my configuration and debugging.
Thanks.
Better