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.

CC2564MODAEM: Interfacing CC2564MODAEM with EK-TM4C1294XL

Part Number: CC2564MODAEM
Other Parts Discussed in Thread: EK-TM4C1294XL, , CC2564, TM4C1294NCPDT

Hello. I am using CCS 6.1.3. I am using CC2564MODAEM and EK-TM4C1294XL.  I followed the tutorial of Getting started with Tiva for TM4C1294x and installed few softwares/drivers as described in that article.

  • I interfaced both the boards by connecting 
  1. CC2564MODAEM EM1 Interface Pin 7 (UART RX) Connects to TM4CBoard PK1 (Booster Pack Interface 2: TM4C U4TX)
  2. CC2564MODAEM EM1 Interface Pin 9 (UART TX)Connects to TM4CBoard PK0 (Booster Pack Interface 1 : TM4C U4RX) 

  3. CC2564MODAEM EM1 Interface Pin 1  (GND) Connects to TM4CBoard X11 Pin3 ( TM4C GND) 

  4. CC2564MODAEM EM2 Interface Pin 7 (3.3 V)Connects to TM4CBoard X11 Pin 1 ( TM4C 3.3 V)

  5. I am trying the sample demo application, SPPDemo.

  • I changed the code in HALCFG.h as follows-

#define HCI_UART_BASE UART4_BASE
#define HCI_UART_INT INT_UART4
#define HCI_UART_PERIPH SYSCTL_PERIPH_UART4

/* Define the GPIO ports and pins that are used for the UART RX/TX */
/* signals. */
/* * NOTE * See gpio.h for possible values for HCI_PIN_CONFIGURE_ */
/* macros. */
#define HCI_UART_GPIO_PERIPH SYSCTL_PERIPH_GPIOK
#define HCI_UART_GPIO_BASE GPIO_PORTK_BASE
#define HCI_UART_PIN_RX GPIO_PIN_0
#define HCI_UART_PIN_TX GPIO_PIN_1
#define HCI_PIN_CONFIGURE_UART_RX GPIO_PK0_U4RX
#define HCI_PIN_CONFIGURE_UART_TX GPIO_PK1_U4TX

/* Define the GPIO ports and pins that are used for the UART RTS */
/* signal. */
#define HCI_UART_RTS_GPIO_PERIPH SYSCTL_PERIPH_GPIOK
#define HCI_UART_RTS_GPIO_BASE GPIO_PORTK_BASE
#define HCI_UART_PIN_RTS GPIO_PIN_2
#define HCI_PIN_CONFIGURE_UART_RTS GPIO_PK2_U4RTS

/* Define the GPIO ports and pins that are used for the UART CTS */
/* signal. */
#define HCI_UART_CTS_GPIO_PERIPH SYSCTL_PERIPH_GPIOK
#define HCI_UART_CTS_GPIO_BASE GPIO_PORTK_BASE
#define HCI_UART_PIN_CTS GPIO_PIN_3
#define HCI_PIN_CONFIGURE_UART_CTS GPIO_PK3_U4CTS

/* Define the GPIO ports and pins that are used for the Bluetooth */
/* RESET signal. */
#define HCI_RESET_PERIPH SYSCTL_PERIPH_GPIOG
#define HCI_RESET_BASE GPIO_PORTG_BASE
#define HCI_RESET_PIN GPIO_PIN_1

PROBLEM-

  • I am getting the output as -

  • One or two times, I got Stack init failed: -4. But most of the times I am not getting anything after OpenStack()

It would be helpful for me if someone can suggest a fix for this ?

  • I suggest you to post CC2564 related issue to Dual Mode Bluetooth E2E forum at e2e.ti.com/.../
  • Hi Adhitya,

    Do you have the BT_EN pin of TM4C (RESET in the HALCFG.h) connected to the nSHUTD pin of the CC2564MODAEM?

    Moreover, please use the CC2564MODAEM with the dk-tm4c129x for the out of box experience.

    Best regards,
    Vihang
  • Hi Vihang,

    Thank you very much for responding. I had not connected that pin (RESET in the HALCFG.h connected to the nSHUTD pin ). But I connected now and checked, but no improvement.

    1.  I am using EK-TM4c1294xl in my design. So, I can't change that now unfortunately. Can you please suggest me how to proceed forward with EK-TM4c board CC2564MODAEM ? Should I change any other code or should I connect any other pins ?

    2. For EK-TM4C1294XL, can you suggest any other bluetooth module which will work ?

    Thank you,
    Adhitya

  • Hello Adhitya,

    The board you are using isn't one of our officially supported boards.
    unfortunately we won't be able to assist you while you are using that board and not one of the recommended and officially supported boards.

    It seems the issues you see are directly connected to the board you are using which we are not familiar with therefore won't be able to assist.

    In case you will use on of the officially supported boards we will be more than happy to assist you.

    BR,
    Chen Loewy
  • Hello Chen,

    We are making our own design based on TM4C1294NCPDT MCU and CC2564MODAEM bluetooth module. Before that we would li8ke to check the functionality of bluetooth module and take care the findings in our design.

    That's why we bought the boards and we are trying it's functionality before releasing Gerber. The below mentioned details is our design. We are not giving clock as clock is on board.

    1. CC2564MODAEM EM1 Interface Pin 7 (UART RX) Connects to TM4CBoard PK1 (Booster Pack Interface 2: TM4C U4TX)
    2. CC2564MODAEM EM1 Interface Pin 9 (UART TX)Connects to TM4CBoard PK0 (Booster Pack Interface 1 : TM4C U4RX)
    3. CC2564MODAEM EM1 Interface Pin 1 (GND) Connects to TM4CBoard X11 Pin3 ( TM4C GND)
    4. CC2564MODAEM EM2 Interface Pin 7 (3.3 V)Connects to TM4CBoard X11 Pin 1 ( TM4C 3.3 V)
    5. CC2564MODAEM EM1 Interface Pin 3 (UART CTS) Connects to TM4CBoard PK2 (Booster Pack Interface 2: TM4C U4 RTS)
    6. CC2564MODAEM EM2 Interface Pin 18(UART RTS) Connects to TM4CBoard PK3 (Booster Pack Interface 2: TM4C U4 CTS)
    7 CC2564MODAEM EM2 Interface Pin 19 (nSHUTD) Connects to TM4CBoard PH0 ( TM4C GPIO)

    We need to know where things are going wrong before making it in design. Please let us know how we can make this work.

    Kindly Support us.

    Regards,
    Adhitya