The Internet of Things on AWS – Official Blog
Developing Amazon FreeRTOS with Texas Instruments’ Code Composer Studio Version 8
Update: This issue was patched in Amazon FreeRTOS version 1.2.4 to overcome the out-of-the-box experience challenges. The root cause will be fixed in the upcoming Texas Instruments compiler release.
Last month, Texas Instruments (TI) launched Code Composer Studio (CCS) version 8, which includes the TI MCU compiler version 18.1.1. The Amazon FreeRTOS project for Code Composer Studio is configured for the TI MCU compiler version 16.9.3. Amazon FreeRTOS includes the open source Concise Binary Object Representation (CBOR) Library (tinycbor), which does not compile with version 18.1.1. Amazon FreeRTOS does not build when there is no preexisting 16.9.3 compiler (or compatible compiler) on the system.
In this blog post, I’ll show you how to add the TI MCU compiler version 16.9.3 to Code Composer Studio version 8 so that you can build Amazon FreeRTOS with the new IDE.
Observing the compilation problem
- You can observe the problem signature by installing Code Composer Studio version 8 from the TI website.
- Download version 8 from the Code Composer Version 8 Downloads page.
- Install version 8.
- Perform a clean clone of the Amazon FreeRTOS repository: git clone https://github.com/aws/amazon-freertos amazon-freertos-ccsv8.
- Open version 8. Open the Code Composer Studio project to the workspace. From File, choose Open Projects from File System.
- Select the Code Composer Studio project amazon-freertos/demos/ti/cc3220_launchpad/ccs.
- From Project, choose Clean, and then build the project. You should see errors like the following:
Installing TI MCU compiler version 16.9.4
Now let’s install the earlier version of the TI MCU compiler.
- If the IDE is open, close it.
- Download the ARM 16.9.4 compiler.
- Install the ARM 16.9.4 compiler.
- Now check that the IDE detects version 16.9.4. In Code Composer Studio:
- Right-click the project root node, and then choose Properties.
- In the General pane, under Tool-chain, choose the Compiler version drop-down box. The TI MCU compiler 16.9.4 should be listed.
- Install the ARM 16x compiler from here:
- http://www.ti.com/tool/download/ARM-CGT-16/16.9.4.LTS
Configuring and building the project
Now that you have installed the correct compiler version, you can configure the demonstration project and compile Amazon FreeRTOS clean.
- Configure aws_clientcredential_keys.h and aws_clientcredential.h, as described in the Amazon FreeRTOS User Guide.
- Configure the project for the TI MCU compiler version 16.9.4.
- Open Code Composer Studio.
- Right-click the project root node, and then choose Properties.
- Now configure the compiler version for the project:
- In the General pane, under Tool-chain, choose the Compiler version drop-down box. Select the TI v16.9.3.LTS compiler.
- Choose Apply, and then choose Close.
- Build the project clean. From Project, choose Clean to clean all compiled objects and start the compilation.
- The compilation should now be completed successfully.
Conclusion
I hope you found these steps for installing the supported TI MCU compiler helpful. Feel free to leave questions or other feedback in the comments.