I am using the SaBLE-X BLE module from LSR, which is based on the CC2640F128 (5x5). I'm trying to add UART communication, but ran into some issues. The simpleBLEPeripheral example works just fine as is, but when I add UART support the RTOS seems to be crashing (going into an endless loop) when it checks on a semaphore inside of the CC26XX_PIN.c function.
There are two examples online that show how to add UART on. The first one (http://processors.wiki.ti.com/index.php/CC2640_NPI_UART_ECHO_EXAMPLE) is a little outdated and has some issues. The second one (http://processors.wiki.ti.com/index.php/Cc2640_Adding_a_UART_or_SPI_driver_to_a_Sample_Project) is much better documented and the integration is much easier too. This second example is what I'm using to add UART functionality and it compiles just fine.
The issue I'm seeing is, like mentioned above, that the UART initialization causes the RTOS to hang. Using the debugger I traced the issue back to CC26XX_PIN.c. The problem seems to occur when it accesses the semaphore in Pin_Open.
Does anyone have an idea what this could be or has seen something similar?