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
- CC2564MODAEM EM1 Interface Pin 7 (UART RX) Connects to TM4CBoard PK1 (Booster Pack Interface 2: TM4C U4TX)
-
CC2564MODAEM EM1 Interface Pin 9 (UART TX)Connects to TM4CBoard PK0 (Booster Pack Interface 1 : TM4C U4RX)
-
CC2564MODAEM EM1 Interface Pin 1 (GND) Connects to TM4CBoard X11 Pin3 ( TM4C GND)
-
CC2564MODAEM EM2 Interface Pin 7 (3.3 V)Connects to TM4CBoard X11 Pin 1 ( TM4C 3.3 V)
- 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 ?