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.

RTOS/CC2640R2F: IAR issue building "empty" project

Part Number: CC2640R2F


Tool/software: TI-RTOS

Hi,

yesterday it tried to build the "empty" project from the "C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\drivers\empty" -directory with IAR. 

I did this by opening the empty.eww workspace file, which is located in $empty_dir$/\tirtos\iar. The first problem was, that the sources and headers aren't linked correctly to the empty-directory. I tried to fix this by simply telling the preprocessor in the "Additional include directories" section the directory with the source and header files. That always worked fine in other projects with ST-MCU's, but not for the CC2640R2F examples. Finally i fixed it by adding every header and source file manually... 

When trying to build the project an error occured (see screenshot below). I also tried to fix the error by following this instruction. This didn't work as well. 

I'm using IAR 8.11.2. I know i should use IAR 8.11.1 as written in the release notes, but on the IAR-Website IAR 8.11.2 is the only "downloadable".

As i was finalising this post i found out, that the examples simply aren't supported by IAR (see screenshot below). Maybe a helpful information for other engineers trying to run CC2640R2F examples with IAR.

Best regards,

Alex

 


  • Hi Alex,

    sorry about that. I was able reproduce this issue.

    1. Our guide for IAR project with driver examples is lacking. For one, for these examples, you need to include a global custom_argvars file in C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\tools\iar\SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars
      This will resolve the $SIMPLELINK_CC2640R2_SDK_INSTALL_DIR$ variable.
    2. Like you mentioned, the sources in the empty point don't point to the correct location. I've filed a ticket to fix this.
    3. I think IARs documentation is trying to say the CC2640R2F is supported as of 7.80.1

    Tom

  • Alex, this is a documentation issue and not a bug.

    I will update our documentation on how to import TI Drivers examples in the guide.

    The basic steps are the following and assume that you have not opened

    C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\drivers\empty\tirtos\iar\empty.eww

    1. Open IAR 8.11
    2. Import the global custom_argvars file for IAR (Tools -> Configure Custom Argument Variables -> Global Tab -> Select Import) Select: C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\tools\iar\SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars
    3. Now, open Help -> Information Center
    4. Open "Integrated solutions", and click on the green circle icon for Texas Instruments Example Projects
    5. Click on "example applications" (If your global custom_argvar variables are OK, then this link should work)
    6. Click on the "TI-RTOS" link for empty and allow it open a copy of the example and choose a destination on where to save it.
    7. I was able to open all the source files in this generated copy and build it. Again, this only works, if you do not try to open the .eww before hand. If you do, you will need to clean the C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\drivers\empty\tirtos\iar\ all of the generated files IAR creates.

    Tom