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.

RTOS/CC2650: Porting SAP library to other MCUs (FreeRTOS)

Part Number: CC2650

Tool/software: TI-RTOS

Hello,

I am trying to add BLE connectivity to my project developed for STM32 MCU from STMicroelectronics. I would like to use the CC2650 chip (to be more precise, the CC2650MODA module) with the SNP code running on it with SAP library (or equivalent code) running on my STM32 device. 

I went through the TI labs with ProjectZero for CC2650, as well as through this lab:  

http://dev.ti.com/tirex/content/simplelink_academy_msp432sdk_2_10_01_44/modules/sdk_plugins/sdk_bluetooth_plugin/sdk_bluetooth_plugin.html

which explains ProjectZero example run on MSP432 processor with external CC2650 module running SNP. 

So now I am trying to port the SAP library code to STM32 MCU running FreeRTOS. This looks to be not a trivial task and I am not quite experienced with the CC2650/MSP432 and TI code (based on TI-RTOS). So I am wondering if anyone could give me some advice how to make this porting easier. 

For now, I have these questions:

1. Is there a description of the SAP Library code (including the NPI code). In particular, I would be interested to see some diagram of threads running and messages/events passed between those threads and the user application thread.

2. I can see that there is the same ProjectZero example (for MSP432) with the SAP library running on top of FreeRTOS instead of TI-RTOS. I tried compiling that one, but it requires FreeRTOS to be downloaded and installed separately. I installed FreeRTOS, but I failed to attach it to the project in CCS (some constants have to be re-defined?). Are there instructions on how to compile the project running on top of FreeRTOS? This example would be much better for me since I am planning to port the SAPLib to STM32 running FreeRTOS.

Thank you.