Other Parts Discussed in Thread: SYSBIOS
Hello,
I am trying to build a TI-RTOS application from scratch. To do so, I have begun by setting up the XDCTool so I can use some of its useful functions, such as System_printf, to do debugging of my TI-RTOS application in the future. So far, I have not been able to get the System_printf function to work because I have not been able to get the configuro tool to process my .cfg file and generate the necessary .opt and .cmd files.
I am using CCS Version 10.1.0, XDCTools version 3.61.01.25, Simplelink SDK Version 4.20.00.35, and am compiling my project with TI v20.2.1.LTS. My OS is 64-bit Windows 10. My target device is CC2652R1F. I am programming it via the JTAG interface on the Launchpad.
I created a CCS project with simply a main.c file. I then added the products, XDCTools and the Simplelink SDK, to the project via the Properties / Products functionality. My file system is shown in the picture below.
Next, I wrote some C code in the main.c file. The code is pictured below.
After reading through the old XDC Getting Started Guide and XDC Consumer User's Guide (both circa 2007) I gathered that I needed to also write a configuration file to get access to the System module and therefore the System_printf function. The configuration file I wrote is pictured below.
As per the instructions in the XDC Getting Started Guide, it is necessary to run this .cfg file through the configuro tool to generate a .opt file and a .cmd file. I'm not really sure why this is necessary or what exactly this does, but I'm sure I need to do it. I first checked that my XDC installation was good by running the xs --version and xs xdc.tools.configuro --help commands. Both work as they should. I then went into CCS and tried to set the target and platform for the XDC tool. My attempt is pictured below.
I picked the Target and Platform by looking through the html document located at {XDC Install Directory} / docs / xdctools_3_61_01_25_supported_targets.html and I picked the ti.targets.arm.elf.M4F target because the CC2652R1F has an ARM Cortex M4F processor and I am using the TI C Compiler. That document is pictured below.
I wasn't sure how to pick the proper Platform for the device I am using, so I guessed ti.targets.arm.rtsarm. This is probably where my issue lies.
Then I went to run the configuro tool via the command line. My attempt and subsequent error message are shown below.
It seems as though I have chosen the Platform incorrectly. But when I check the path xdctools.configuro / packages directory, I am confronted with the files pictured below. I have poked around in them quite a bit, but I am unable to find any document that lists platforms I can use.
So I guess I have a couple questions:
Am I using the XDCTool correctly? I really do need to generate the .opt and .cmd files to build my project and get access to functions such as System_printf? How do I select the proper Platform for the configuro tool? Are there any updated XDCTool user guides available, as the one I am currently using is from 2007 (and the docs file within the XDC download contains documents which are very difficult to understand)?
Note that I have looked through the "hello" example located at {simple link SDK path} \ examples \ rtos \ CC26X2R1_LAUNCHXL\ sysbios \ hello, but it seems to use the platform ti.platforms.simplelink:CC2642R1F which also does not work for me.
I am fairly new to embedded programming, so I may be making lots of mistakes. Thank you for the help!