element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog Safe & Sound - Safety Jacket for the Tolling Industry #3: TI RTOS and POSIX with the CC1310 Launchpad
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ipv1
  • Date Created: 11 Mar 2017 11:02 AM Date Created
  • Views 1239 views
  • Likes 5 likes
  • Comments 9 comments
  • safe and sound
  • ip_iot
  • safe & sound
  • safety_jacket
Related
Recommended

Safe & Sound - Safety Jacket for the Tolling Industry #3: TI RTOS and POSIX with the CC1310 Launchpad

ipv1
ipv1
11 Mar 2017

  • Getting started with TI RTOS and CC1310
  • What is an RTOS
  • The CC1310 sub GHz launchpad
  • Getting back to TI RTOS
  • What is POSIX
  • What next?

 

Getting started with TI RTOS and CC1310

 

The CC1310 is a sub Ghz single chip solution that run its RF core on a Arm Cortex M0 and the Application processor is an Arm cortex M3 which means it is very flexible in terms of applications. Since things can get very complicated very quickly, TI recommends not developing native applications like for the MSP430 and AVR that is the bread and butter of most firmware. Instead, they recommend using TI RTOS to host your applications and provide a generous load of examples and what not to aid getting of the ground quickly. Unfortunately, there is more than one way to skin a cat and Code Composer Studio can seem downright scary to the new-comer. In this article, I discuss the use of TI RTOS with CCS 7 and touch on pThreads for the POSIX aware readers out there.

 

What is an RTOS

 

Here we go again! So from the wikipedia out there...

 

 

A real-time operating system (RTOS) is an operating system (OS) intended to serve real-time applications that process data as it comes in, typically without buffering delays. Processing time requirements (including any OS delay) are measured in tenths of seconds or shorter increments of time. They either are event driven or time sharing. Event driven systems switch between tasks based on their priorities while time sharing systems switch the task based on clock interrupts.

 

Having said that, my version is simply this. An RTOS is a software layer that allows you to write something simple like a function to blink and LED or read a button press and then ask the RTOS to manage things when you want other functions to work in addition to you blinky. These other functions can be listening to the radio or send rf data etc. Why RTOSs are a good ideas is because they allow you to not micromanage everything your processor or peripherals are doing and concentrate on one thing at a time.

 

The official TI webpage can be found at http://www.ti.com/tool/ti-rtos

 

The CC1310 sub GHz launchpad

 

image

 

This launchpad is very special since they are designed for low power and long range. When I say long range, I mean, 20KMs on a coin cell. Yea. Thats right!

 

Check this out http://www.cnx-software.com/2015/12/18/ti-simplelink-cc1310-wireless-mcu-promises-20-km-range-20-year-battery-life-on-a-coin-cell/

 

and this http://links.mkt102.com/servlet/MailView?ms=NTAyNzcwMDES1&r=MTE1NzI3Mzc1MjM3S0&j=ODIyNjg5MDY2S0&mt=1&rt=0

 

So this means even without the whip antenna I can still get a decent range out of these modules and that's the reason I plan to use them in my ongoing project.

 

The official TI link is http://www.ti.com/tool/launchxl-cc1310

 

Getting back to TI RTOS

 

We need a few tools to get started.

 

1. Code Composer Studio 7.x or above. [From Here](http://processors.wiki.ti.com/index.php/Download_CCS)

2. Smart RF Studio [From Here](http://www.ti.com/tool/smartrftm-studio)

 

Install em and create a workspace in your favourite location. There are now two ways to create a project. The first is to simple right click in the project explorer and select 'New CCS Project'

 

Flow the rabbit and select TI-RTOS empty (minimal) Example and give it a name.

 

   imageimage

 

Press that hammer button to check if it compiles. It should. The example comes with a Blinking LED Task that allows you to check if everything is all right and if you connect and program your launchpad, you should be able to see things work. For a demo and instructions on method two, take a look at the video below.

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

What is POSIX

 

Again a bit of Wikipedia here.

 

The Portable Operating System Interface (POSIX)[1] is a family of standards specified by the IEEE Computer Society for maintaining compatibility between operating systems. POSIX defines the application programming interface (API), along with command line shells and utility interfaces, for software compatibility with variants of Unix and other operating systems.

 

And the TI Wiki says...

 

SYS/BIOS (v6.42.01 and higher) provides a subset of the POSIX thread (pthread) APIs. These include pthread threads, mutexes, read-write locks, barriers, and condition variables. The pthread APIs can simplify porting applications from a POSIX environment to SYS/BIOS, as well as allowing the same code to be compiled to run in a POSIX environment and with SYS/BIOS. As the pthread APIs are built on top of the SYS/BIOS Task and Semaphore modules, some of the APIs can be called from SYS/BIOS Tasks.

 

[Link to original](http://processors.wiki.ti.com/index.php/SYS/BIOS_POSIX_Thread_(pthread)_Support)

 

In short, the pThread support is implemented on-top of the tasks modules so unless you want to port some POSIX code from another OS, just stick to the tasks system.

 

What next?

 

A UPS notification puts some parts from Element14/Texas Instruments on my table next week. Until then I will be playing with the CC1310 a bit more and hopefully have something with RF Studio Next.

 

Thanks for reading and happy hacking,

 

 

Credits: Special thanks to Jan Cumps Sir for the information.

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 8 years ago +1
    The new RTOS version is new for me too, ipv1 . I only noticed that things are different when I saw your video. I'm going to ask the TI judges mrchy and Akbari1982 to chime in when there are questions.…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps +1
    Procedure to set up the latest SimpleLink for MSP432 version as a TI-RTOS project (deals with the differences ipv1 saw when starting from the latest download): How to combine SimpleLink SDK application…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    Procedure  to set up the latest SimpleLink for MSP432 version as a TI-RTOS project (deals with the differences ipv1 saw when starting from the latest download):

    How to combine SimpleLink SDK application and kernel projects

    Multiple SimpleLink SDK Versions in one Workspace

    Changing the SimpleLink SDK version used by a Project

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago in reply to Jan Cumps

    I can't send them a message with the element14 Message function

    They haven't logged in under their user name for a while, so they wouldn't see it....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to Jan Cumps

    jancumps wrote:

     

    The new RTOS version is new for me too, ipv1. I only noticed that things are different when I saw your video.

     

    I'm going to ask the TI judges mrchy and Akbari1982 to chime in when there are questions. They will have access to the experts of the new version.

    jwatson or rscasny, can you please contact them? I can't send them a message with the element14 Message function.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago

    The new RTOS version is new for me too, ipv1. I only noticed that things are different when I saw your video.

     

    I'm going to ask the TI judges mrchy and Akbari1982 to chime in when there are questions. They will have access to the experts of the new version.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Nice post.

     

    Are you planning to set up a link over some distance to see how reliable it is over time and environmental changes?

     

    I am curious just how realistic the 20Km claim is over real time applications.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube