Hi, I need some help with the initialization of CC2564C.
I refered the CC256x Testing Guide, and knew that the specific BTS file need to be loaded after every power cycle.
I got the BTS file for CC2564C from ti-bt/service-packs - Project for various Bluetooth related git repositories - bluetooth service packs for all devices.
I connected CC2564C to PC using a 4wire-UART to USB board,
and tried to load the BTS file (TIInit_6.12.26.bts) with hciattach command.
As the log shows below, it failed.
root@tester-itm:~# hciattach /dev/ttyUSB1 texas 115200 flow
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_6.12.26.bts
Loaded BTS script version 1
texas: changing baud rate to 115200, flow control to 1
Cannot send hci command to socket: Connection timed out
Can't initialize device: Connection timed out
In addition, if I execute the command above again, it will ask for another BTS file,
and thus the BTS file cannot be found.
(As is shown below, the necessary BTS file: TIInit_6.12.26.bts → TIInit_6.12.24.bts)
root@tester-itm:~# hciattach /dev/ttyUSB1 texas 115200 flow
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_6.12.24.bts
can't open firmware file: No such file or directory
Warning: cannot find BTS file: /lib/firmware/ti-connectivity/TIInit_6.12.24.bts
Can't init device hci1: Invalid argument (22)Can't initialize device: Invalid argument
However, I managed to init CC2564C by using another BTS file: initscripts-TIInit_6.12.26_avpr_add-on.bts
I renamed initscripts-TIInit_6.12.26_avpr_add-on.bts to TIInit_6.12.26.bts and put it into the folder /lib/firmware/ti-connectivity.
After doing that, the initialization was done and I was able to use hcitool to send some commands to output RF.
root@tester-itm:~# hciattach /dev/ttyUSB1 texas 115200 flow
Found a Texas Instruments' chip!
Firmware file : /lib/firmware/ti-connectivity/TIInit_6.12.26.bts
Loaded BTS script version 1
Device setup complete
It turns out that the there is no problem with the hardware connection because I can init CC2564C with another BTS file.
But I can't figure out why the original TIInit_6.12.26.bts doesn't work but initscripts-TIInit_6.12.26_avpr_add-on.bts do.
I also noticed that the file size is very different between the two BTS files so there might be some risks to use initscripts-TIInit_6.12.26_avpr_add-on.bts.
Could you give me some comments or suggestions about the correct method to init CC2564C?
Thanks!