Fast Track for new projects - The Empty RTOS Project Creation Wizard
The TI-RTOS installation comes with 2 kickstarters for new projects. One gives you an empty RTOS shell. The other one pre-loads some drivers and creates 1 example task. We'll check out that second one.
Thanks to the Empty Project wizard, it's not hard to create a startup project for the CC1310. As a result, we get a complete TI-RTOS that's pre-setup for us, with a single task.
If red LED DIO6 blinks once per second, you know you have a working project to start from..
Having a stable start point is key for future frustration avoidance. You know that anything that breaks from this point on, is in your code ..
Get a Stable Start Point
You get your new project by navigating to TI's resource explorer in CCS.
View -> Resource Explorer
Navigate to the TI-RTOS node for the CC1310 (I'm assuming at his point that you have installed TI-RTOS and other software packages from the CC1310 landing page).
If you dig deep enough in the tree structure for the LaunchPad, you'll find the Empty examples.
If you are a big hero, check out Empty (Minimal) Project.
If - just like me - you're a mediocre hero, check the Empty Project, and press the import example.
Connect (one of) your LaunchPad(s).
Press the Build, Debugger Config and Debug links. These three wizard steps will get you up and running.
The debugger is loaded with the example, and you only have to click the Resume button to get the program running.
The green LED will light up first, and stay on. That's an indication that your code is running.
Then, the red LED will start to flash. That's a sign that RTOS is picking up the timer ticks.
Everything is working. You have a stable starting point.
Personalise your Project
The previous steps have given us a good starting point. But the project has a name with Empty in it.
And the main source file is called empty.c. And the TI-RTOS config file is called empty.cfg.
Let's change that.
First step is to rename the project. First stop the debugger, if you have,'t done that yet.
Right-click on the project in the project explorer, and select Rename from the context menu.
Find a good name.
Then search for a file called empty.c in the project's root. Right-click on that, and rename. Take care to keep the .c extension.
The last step is to right-click on empty.cfg, also in the project's root. Rename it to something meaningful for your project. Keep the .cfg extension.
I am writing an encryption project.
That's why I renamed my project to CC1310_LAUNCHXL_TI_CC1310F128_AES, the .c file to aes.c and the TI-RTOS configuration to aes.cfg.
Before making any other changes, Clean and Build your project, and run it again via the debugger. You'll see that the main() function - and the single blinky task - are both in the .c file that you've just renamed.
Now it's up to you to turn this into a radio project...