Part Number: CC2564B
Hello TI. I currently trying to launch A3DP_SINK demo on EK-TM4C123GXL + CC2563B. Second in BOOST-CC2564MODA version (SWRU444 user's guide). I use latest Code Composer Studio on Windows 10. I have already ported A3DPDemo_SNK example from DK-TM4C123G to EK-TM4C123GXL: all code successfully compiling and flashing. But when I start the system debug console only outputs
OpenStack().
It seems that program stuck somewhere in
Result = BSC_Initialize(HCI_DriverInformation, 0);
because if I put
Display(("Result: %d.\r\n", Result));
right after this command it never prints. But if I activate breakpoint and go step-by-step debug interface show me that Result value is -4. Actually, I can't find an implementation of BSC_Initialize() function even by searching in whole Bluetopia stack folder... Also, debugger reveals that HCITR_COMOpen() function returns -1 so I think host cannot establish HCI UART. But why there is no indication of error on console is a bit strange behavior. So what is a proper connection? I already had tested this module with STM32F401RE + BTstack with 4 wires of UART and 1 nSHUTD so board is definitely isn't broken. I currently decided to connect module to Tiva in the same way: with external wires and not with BoosterPack's J1-4 (though pinouts look fully compatible). My current pinout is (Tiva -> BoosterPack):
- HCI UART: UART1 -> UART_1,
- RX: PB0 -> TX: UART_TX_1,
- TX: PB1 -> RX: UART_RX_1,
- RTS: PF0 -> CTS: UART_CTS_1,
- CTS: PF1 -> RTS: UART_RTS_1,
- HCI_RESET: PB2 -> BT_nSHUTD_1 (what reset? nSHUTD1/2 or RST?),
- LED_0: PF3 (red),
- BUTTON: PF4 (SW1) (what is a purpose of this button? why its definition haven't been taken out to header?).
I also tried to connect RST pins on both boards (no difference). Power goes from Tiva to BoosterPack 3V3 pin. When system powers up, the green LED on BoosterPack lights up (successful reset routine) but after 1-2 seconds it turns off and red LED on Tiva (LED_0 of stack) lights up.
Another question is about patch. After some searching, I found that CC256XB_PATCH in Bluetopia stack is likely obsolete. So then I started to manage this problem:
- download Bluetooth Service Pack for CC256xB,
- install Wireless Tools (a bunch of icons on the desktop now),
- comment out first two lines that specify baudrate as it was suggested here,
- unsuccessfully trying to generate .h-file by HCITester -> BTS Transform (looks absolutely different in comparison with .h from Bluetopia folder),
- trying to find patches on Internet,
- unsuccessfully trying to install Bluetooth Hardware Evaluation Tool,
- setup Windows XP on VM and finally generate header file,
so finally some sort of solution. But .h from Bluetopia folder also contains #ifdef directives, 2 types of patches (BasePatch, LowEnergyPatch), DATA_SECTION #pragma and so on. I think TI should supply these patches also as a complete .h-files which developers can easily integrate inside toolchains.
Maybe my post is messed up a bit (or a lot) but when sample demo app just does not work it's frustrating and annoying. Any help would be appreciated.