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.

Bluetooth CC2564 Bluetopia Stack Linux add-on ported to another platform

Other Parts Discussed in Thread: CC2564

Hello


We are trying to get the CC2564 to work with an Atmel SAMA5d4 xplained ultra board running an embedded Linux (4.4.30) .

We followed your porting guide and changed the gpio ports as well as the serial port in the btpsvend.c file. We changed the paths in the bt-sample and updated the files in the proj folder.

We compiled a new Linux Kernel to get the headerfiles and added:
#Shared Transport Driver
CONFIG_TI_ST=y
CONFIG_ST_HCI=y
#For BlueZ
CONFIG_BT_WILINK=y
in the kernelconfiguration.

We added

tibt {
compatible = “tibt”;
nshutdown_gpio = <37>;
dev_name = “/dev/ttyS1”;
flow_cntrl = <1>;
baud_rate = <115200>;
};

btwilink {
compatible = “btwilink”;
};
to the device-tree file.

We Crosscompiled it with arm-linux-gnueabihf- compiler and installed it in /home/root/ and we put the initscripts-TIInit_6.7.16_bt_spec_4.1.bts script from ServicePack 1.5 into the /lib/firmware of the target device.

We are able to run ./SS1BTPM & ./LinuxSPPM. Initialization works but SetDevicePower() returns an error.

SPPM>1 1

BTPM_Initialize() Success: 0.
DEVM_RegisterEventCallback() Success: 5.
SPPM>9 1

echo 37 > /sys/class/gpio/export
sh: line 0: echo: write error: Device or resource busy
echo out > /sys/class/gpio/pioB5/direction
echo 0 > /sys/class/gpio/pioB5/value
echo 1 > /sys/class/gpio/pioB5/value
BT COMM PORT ("/dev/ttyS1"): -5
DEVM_PowerOnDevice() Failure: -14, Unknown Error.
Function Error.

Did we miss something? Do you have any suggestions?

Thanks for any advice.

Greetings

Marcel