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.

CCS/CC3200-LAUNCHXL: CC3200 UART PROBLEM

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200

Tool/software: Code Composer Studio

Hi ,

   I am using CC3200 in my custom board, it work normal in debug mode and flash but only when the uart pin is connected to my launchpad uart pin when i remove the uart pin and run code from flash or debug i got stuck in sl_Start(NULL, NULL, NULL);  i also use the uart interrupt , below is my pin mux and interrupt config please check 

 

void
PinMuxConfig(void)
{
//
// Enable Peripheral Clocks
//
MAP_PRCMPeripheralClkEnable(PRCM_I2S, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_UARTA0, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_I2CA0, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA2, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_GPIOA3, PRCM_RUN_MODE_CLK);
MAP_PRCMPeripheralClkEnable(PRCM_SDHOST, PRCM_RUN_MODE_CLK);

MAP_PRCMPeripheralClkEnable(PRCM_GPIOA0, PRCM_RUN_MODE_CLK);
MAP_PinTypeGPIO(PIN_60, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA0_BASE, GPIO_PIN_5, GPIO_DIR_MODE_OUT);


MAP_PinTypeGPIO(PIN_64, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, GPIO_PIN_1, GPIO_DIR_MODE_OUT);

MAP_PinTypeGPIO(PIN_18, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA3_BASE, GPIO_PIN_4, GPIO_DIR_MODE_OUT);

MAP_PinTypeGPIO(PIN_01, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, 0x4, GPIO_DIR_MODE_OUT);
//
// Configure PIN_55 for UART0 UART0_TX
//
MAP_PinTypeUART(PIN_55, PIN_MODE_3);

//
// Configure PIN_57 for UART0 UART0_RX
//
MAP_PinTypeUART(PIN_57, PIN_MODE_3);

//
// Configure PIN_64 for MCASP0 McAXR1 D0
//
MAP_PinTypeI2S(PIN_64, PIN_MODE_7); //PIN_MODE_7

//
// Configure PIN_62 for MCASP0 McAFSX CLK
//
MAP_PinTypeI2S(PIN_62, PIN_MODE_13);

//
// Configure PIN_63 for MCASP0 McAXR0 wclk (sync)

//
MAP_PinTypeI2S(PIN_63, PIN_MODE_7);

//
// Configure PIN_50 for MCASP0 McACLK D1
//
MAP_PinTypeI2S(PIN_50, PIN_MODE_6); //PIN_MODE_6

//
// Configure PIN_01 for I2C0 I2C_SCL
//
MAP_PinTypeI2C(PIN_05, PIN_MODE_5);

//
// Configure PIN_02 for I2C0 I2C_SDA
//
MAP_PinTypeI2C(PIN_02, PIN_MODE_1);

//
// Configure PIN_04 for GPIOInput
//
MAP_PinTypeGPIO(PIN_04, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA1_BASE, 0x20, GPIO_DIR_MODE_IN);

//
// Configure PIN_15 for GPIOInput
//
MAP_PinTypeGPIO(PIN_15, PIN_MODE_0, false);
MAP_GPIODirModeSet(GPIOA2_BASE, 0x40, GPIO_DIR_MODE_IN);

//
// Configure PIN_06 for SDHOST0 SDHost_D0
//
MAP_PinTypeSDHost(PIN_06, PIN_MODE_8);

//
// Configure PIN_07 for SDHOST0 SDHost_CLK
//
MAP_PinTypeSDHost(PIN_07, PIN_MODE_8);

//
// Configure PIN_08 for SDHOST0 SDHost_CMD
//
MAP_PinTypeSDHost(PIN_08, PIN_MODE_8);

void
InitTerm()
{
#ifndef NOTERM
MAP_UARTConfigSetExpClk(CONSOLE,MAP_PRCMPeripheralClockGet(CONSOLE_PERIPH),
UART_BAUD_RATE, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));

MAP_UARTFIFODisable(CONSOLE); //disable fifo
#endif
__Errorlog = 0;
}

void main()
{
unsigned char RecordPlay;
long lRetVal = -1;
int disp_flag=0;

//
// Board Initialization
//
BoardInit();


//
// uDMA Initialization
//
UDMAInit();
//

// Configure the pinmux settings for the peripherals exercised
//
PinMuxConfig();


InitTerm();

MAP_UARTIntRegister(CONSOLE,UART1_Handler); //enable interrupts

MAP_UARTIntEnable(CONSOLE,UART_INT_RX);

sl_Start(NULL, NULL, NULL);