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.

CC2640 does not start when using UART functions

Other Parts Discussed in Thread: CC2640

Hi,


I have the CC2640 running with a BLE central application. Everything works but as soon as I use one of the UART functions the chip does not start up and never reaches main().

static UART_Handle uartHandle;
static UART_Params uartParams;

// ...

static void SimpleBLECentral_init(void)
{
	// ******************************************************************
  // N0 STACK API CALLS CAN OCCUR BEFORE THIS CALL TO ICall_registerApp
  // ******************************************************************
  // Register the current thread as an ICall dispatcher application
  // so that the application can send and receive messages.
  ICall_registerApp(&selfEntity, &sem);

 // ... 

  // Register with bond manager after starting device
  GAPBondMgr_Register(&SimpleBLECentral_bondCB);
  
  LCD_WRITE_STRING("BLE Central", LCD_PAGE0);

  pinHandle = PIN_open(&pinState, BoardGpioInitTable);

  UART_init();

  UART_Params_init(&uartParams);
  uartParams.readDataMode = UART_DATA_BINARY;
  uartParams.writeDataMode = UART_DATA_BINARY;
  uartParams.dataLength = UART_LEN_8;
  uartParams.stopBits = UART_STOP_ONE;
  uartParams.readMode = UART_MODE_CALLBACK;
  uartParams.writeMode = UART_MODE_CALLBACK;
  uartParams.readEcho = UART_ECHO_OFF;
  uartParams.baudRate = 9600;

  uartHandle = UART_open(Board_UART, &uartParams);


I looked around the forum but only found out that I get a BIOS error telling me that I have an hwiStackPeak overrun.