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.

BSC_Initialize fails with code -4

Other Parts Discussed in Thread: CC2564

Dear All,

I am trying to adapt the CC256x STM32 Bluetopia SDK (v4.0.2.1) to STM32F415 MCU to work with the CC2564RVMT chip. The CC2564RVMT chip is assembled in a custom board. The slow 32768 Hz as well as 26 MHz clocks are given by hardware and not by STM32F415 MCU. The hardware connection should be fine as the dotstack SPP demo version worked for the same board. The GCC is used for compilation/linking.


The USART3 pins as well as the nShutdown pins looks to be defined in HCITRCFG.h file correctly. The HCITR_COMOpen function is successfully executed by libBluetopia_32_M4.a library. However, I do not see either HCITR_TXD_IRQHandler, HCITR_RXD_IRQHandler, or HCITR_CTS_IRQ_HANDLER interrupt handlers being called. What I see instead is that RxThread is executed (since it is a normal task) and since the HCITransportOpen flag is set to 1 indicates that some bytes are received which is probably wrong as it should be the host MCU which should send the data first to the CC2564 chip right?


Could someone suggest if there is maybe some patch that I should use for compilation or something else?

Or the problem should still be with the USART settings?


Thanks a lot for any help.