I am using CC2650 on SmartRF06 EB. My question is whether you have a CC2650-specific driver implementation of PWM for my board. Could I find an example for the same? I am using TI RTOS 2.14
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.
Siddarth,
I don't know of any documentation that describes manually adding library files to TI-RTOS. I haven't tried to do that, but I think you would have to copy the source for the new driver to ti/drivers in packages, the same way these files are organized in the zip file.
The next step would be to edit the file package.bld and add the source files to CC26xxObjList in package.bld.
Finally, you would have to rebuild TI-RTOS by running the following command in the top directory of your TI-RTOS installation where the file tirtos.mak can be found:
C:/TI/xdctools_3_31_01_33_core/gmake.exe -f tirtos.mak drivers
I am not really recommending you to that because the setup I am describing hasn't been tested. But, if you don't want to wait for the next TI-RTOS release with the driver integrated in the product, you can try it.
Hi Siddharth,
I am following your post. I am also doing the changes as per your suggestion on the post. But In my case I am facing these issues:
Also please suggest me , exactly where I have to add this "[ Add GPT timer and PWM library files in my include path of TI RTOS 2.14]". I did not find this path.
Please suggest~
Thanks n Regards
Hello Hsa,
"[ Add GPT timer and PWM library files in my include path of TI RTOS 2.14]" :
I added PWM2.h, PWM2.c, GPTimerCC26XX.h into my project folder as a workaround. This makes sure that these files are built by the compiler. As Sasha wrote in one of his posts above, manually adding libraries to RTOS would require a rebuild by running the command :
C:/TI/xdctools_3_31_01_33_core/gmake.exe -f tirtos.mak drivers
I chose not to do that and instead wait for the next release of TI RTOS as Sasha recommended. Perhaps, you could do the same.
Hope this helps. Let me know if you're able to use the PWM driver.
Please click on Verify Answer if my answer helped you solve your problem.
Hello Hsa,
Keeping PWM2.c, PWM2.h, GPTimer26XX.c, and GPTimer26xx.h in my project folder worked for me.
For Error number 3 in your message: Comment out the HeartbeatFxn from main file and the task configuration from the .cfg file. you should comment the following out from the config file:
"var task0Params = new Task.Params();
task0Params.instance.name = "heartBeat";
task0Params.arg0 = 1000000 / Clock.tickPeriod;
task0Params.stackSize = 512;
Program.global.task = Task.create("&heartBeatFxn", task0Params);"
For Error number 4: Add this in the board.c file : #include <ti/drivers/pwm/PWMCC26XX.h> and see if the header file is getting included.
You should try out TI RTOS 2.15; its documentation says it includes PWM driver. I haven't tried it out yet. Link: http://www.ti.com/lit/ug/spruhu7b/spruhu7b.pdf
Hope this helps.