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.

CC2640R2F: FSC-BT616 cannot establish connection with App

Part Number: CC2640R2F

Hi,

i'm trying to get my project running. This project works on another cc2640r2f module perfectly.

If flash it on the FSC-BT616, i can find the module advertising but i can't connect or pair the module.

Then i flashed different projects like SimpleBLEPeripheral or ProjectZero with 5XD Board Configuration.

They both run on the module but still i can't connect or even pair.

Is there something special about the FSC-BT616 which i didn't consider ?

Thank you very much.

  • Hi,

    Can you share FSC-BT616 datasheet. Also, what code changes did you do to make it 5XD Board Configuration?

    -kel

  • I uploaded the FSC-BT616 Datasheet, the one that does not work.

    I also uploaded the BM15_AN-R2 Datasheet, the one that is working.

    I only changed to 5XD in predefined symbols in SimpleBLEPeripheral, no else changes. Just for test. It works on BM15 but not on BT616.

    I don't have any idea why. The FSC-BT616 is recommended by TI.

  • I can also debug the program, it works. 

    I can set a breakpoint at GAPROLE_CONNECTED and it gets there.

    But i there is no connection.

    Pairing over Bluetooth is not working. Samsung is saying that the device can't pair.

  • Hi,

    Do not set the predefine symbol to CC2640R2DK_5XD. Because, the board files for that is for a reference design which may not be the same as FSC-BT616. So set, predefine symbol to CC2640R2_LAUNCHXL.

    Open board files located at C:\ti\simplelink_cc2640r2_sdk_5_30_00_03\source\ti\blestack\boards\CC2640R2_LAUNCHXL

    At CC2640R2_LAUNCHXL.h you need to set the correct RF Front End and Bias configuration symbol. There is no mention at FSC-BT616 datasheet what type. But, normally it is single-ended RF on RF-P and external biasing. So set the the symbol to CC2650EM_4XS

    At CC2640R2_LAUNCHXL.c comment out all the entries at BoardGpioInitTable[].

    Also, at CC2640R2_LAUNCHXL_initGeneral() comment out Board_initHook();

    Rebuild all the simple peripheral and flash to your board. 

    -kel

  • Hi,

    thank you very much.

    Unfortunately it does not work. CC2640R2_LAUNCHXL stucks at PIN_init. I did like you said commented all entries from BoardGPIOInit and Board_initHook().

    CC2640R2DK_5XD is the one that works. I tried all variations of antennas. Nothing works. 

    If you have more ideas, you are welcome. Thanks.

  • Hi,

    It is possible that the pin table should be modified and thats why the PIN_init() is failing. As a quick test, could you try connecting the board to smartrf studio to see if you are able to get any RF out of the device?

    Best Regards,

    Jan

  • Hi,

    Do not comment out the PIN_TERMINATE at BoardGpioInitTable[]. If you encounter any issues using the 5XD board files during your development switch back to launchpad board files.

    const PIN_Config BoardGpioInitTable[] = {
    
        //CC2640R2_LAUNCHXL_PIN_RLED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,       /* LED initially off */
        //CC2640R2_LAUNCHXL_PIN_GLED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,       /* LED initially off */
        //CC2640R2_LAUNCHXL_PIN_BTN1 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS,          /* Button is active low */
        //CC2640R2_LAUNCHXL_PIN_BTN2 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS,          /* Button is active low */
        //CC2640R2_LAUNCHXL_SPI_FLASH_CS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MIN,  /* External flash chip select */
        //CC2640R2_LAUNCHXL_UART_RX | PIN_INPUT_EN | PIN_PULLDOWN,                                              /* UART RX via debugger back channel */
        //CC2640R2_LAUNCHXL_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL,                         /* UART TX via debugger back channel */
        //CC2640R2_LAUNCHXL_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN,                                            /* SPI master out - slave in */
        //CC2640R2_LAUNCHXL_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN,                                            /* SPI master in - slave out */
        //CC2640R2_LAUNCHXL_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN,                                             /* SPI clock */
    
        PIN_TERMINATE
    };

    const PIN_Config BoardGpioInitTable[] = {
    
        //CC2640R2DK_5XD_PIN_LED3 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,  /* LED initially off */
        //CC2640R2DK_5XD_PIN_LED4 | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,  /* LED initially off */
        //CC2640R2DK_5XD_KEY_SELECT | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,                   /* Button is active low */
        //CC2640R2DK_5XD_KEY_UP | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,                       /* Button is active low */
        //CC2640R2DK_5XD_KEY_DOWN | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,                     /* Button is active low */
        //CC2640R2DK_5XD_KEY_LEFT | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,                     /* Button is active low */
        //CC2640R2DK_5XD_KEY_RIGHT | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS,                    /* Button is active low */
        //CC2640R2DK_5XD_3V3_EN | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL,                 /* 3V3 domain off initially */
        //CC2640R2DK_5XD_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL,               /* UART TX pin at inactive level */
    
        PIN_TERMINATE
    };

    Regarding the RF Front End and Bias configuration set the single ended RF internal bias CC2650EM_4IS. However at current code it is not supported. So open ble_user_config.h and then add the code below. Click the pic to enlarge.

    -kel

  • Thanks ! Yes, i did not comment PIN_TERMINATE. I did it it like in your screenshots. Does not work. Still can't connect. 

  • Hi, yes i see it advertising, but i can't connect or pair with the module. If i try to pair it Bluetooth of the Smartphone it says that the module can't pair.

    If i make a breakpoint at GAPROLE_ESTABLISHED_CONNECTION then it stops there, if i try to connect with smartphone.

    But the connection is not established.

  • Hi Andreas,

    Can you share how you are attempting to connect to the device? Are you using a GATT table viewer or BLE scanning application such as SimpleLink Connect, SlimpleLink Starter, or BLE Scanner?

    Best Regards,

    Jan

  • Hi i use the SimpleLink App for Android. I ordered modules from RF-Star because i waste too much time with this module.

  • Hi,

    Understood. If you have any further question regarding the CC2640R2 or the mobile apps, then please feel free to create a new post or reply to this message. For now,  I will close the thread, but if you reply to this message it should re-open it. Otherwise, feel free to open a related thread.

    Best Regards,

    Jan