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.

CC256xQFN-EM + STM32F4Discovery + CC256xEM-STADAPT Board problem opening the stack.....

Other Parts Discussed in Thread: TUSB3410

Hi all,


as mentioned in the title I'm using the CC256xQFN-EM + STM32F4Discovery + CC256xEM-STADAPT boards and the SPPLEDemo example in order to make a SPP Bluetooth application. I compiled and download the sample code with IAR for ARM 7.5.2.

According with the Bluetopia documentation, in order to use the STM32F4Discovery board instead of the STM3240G-EVAL i made the following modifications:

File hcitrcfg.h:

#define HCITR_UART               3

#define HCITR_TXD_PORT           D
#define HCITR_TXD_PIN            8

#define HCITR_RXD_PORT           D
#define HCITR_RXD_PIN            9

#define HCITR_RTS_PORT           D
#define HCITR_RTS_PIN            12

#define HCITR_CTS_PORT           D
#define HCITR_CTS_PIN            11

#define HCITR_RESET_PORT         E
#define HCITR_RESET_PIN          14

File halcfg.h


#define CONSOLE_UART      2

#define CONSOLE_TXD_PORT  A
#define CONSOLE_TXD_PIN   2

#define CONSOLE_RXD_PORT  A
#define CONSOLE_RXD_PIN   3

#define HAL_LED_PORT      D
#define HAL_LED_PIN       15

In Project Options->C/C++ Compiler I set HSE_VALUE=8000000

I'm using the Bluetopia stack version v4.0.2.2 for STM32.

I set the jumpers J1-J6 on CC256xEM-STADAPT board accordingly to the user guide.

To debug the application I'm using a UART to USB converter based on the TUSB3410 VF.

The problem is that, when i download the firmware into the flash, the stack opening operation fails retriving me the following message:

OpenStack().
BSC_Initialize Failed: -4.
Unable to open the stack.

Can someone help me with this problem? There are some other settings in the code or in the project options that I missed. The HCITR pins are correctly configured?


Thank's in advance,

Giacinto Lugi Cerone