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.

CC2642R: CC2642 Launchpad Getting Started with IAR

Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG

Hi,

Got a new CC2642 Launchpad and trying to setup any example project with IAR>

I've followed the quick start instructions provided

* Installed simplelink_cc13x2_26x2_sdk_3_40_00_02.exe
* Installed the SysConfig of the right version that matches what the projects need

I open the IAR template projects which require me to select a destination folder and it copies everything.
Then I open up the argvar file as requested.

However, I can never build. I am getting errors that "Cannot open source file gatt_uuid.c"

1) 
Looking at the IAR Project, it seems the issue is the definition of these files are:

<name>$PROJ_DIR$\c:/ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\source\ti\ble5stack\inc\gatt_uuid.h</name>


Because $PROJ_DIR$ is not empty, this evaluates incorrectly and the file cannot be opened and can't be compiled.

Is this an expected error? Is something wrong?

2) I manually deleted the PROJ_DIR from the paths. The next error is that CC26X2R1_LAUNCHXL_fxns.c is missing. it should be in startup. it's not. Seems the template doesn't copy it.

So I copied it manually and now I can build and then download. But when I erase the launchpad and re-download this, it doesn't run. Obviously something is wrong, and chasing missing parts is telling me things are broken and I can trust them.

3) When I am debugging, it never stops in main, and a breakpoint in main has no effect. seems like it's stuck somewhere. How do I know the stack is loaded? Does it need to be

loaded separately? It used to be part of the project, but not anymore.

So, please provide clear steps on how to get basic projects running here. Seems everything for IAR is broken. Did it even get tested before the release?

  • Hi Jack, 

    Did you follow the steps to work with IAR in the Quick Start Guide? I have tested it with the newest SDK and I'm not seeing any errors. 

    Thanks, 
    Elin

  • Hi,

    1) Which project did you try?

    2) Is it copying the files that are missing? Because when it sets up the new folder from the template, it's missing?

    3) I've tested IAR 8.42.1, which IAR are you using?

    I'll add that this isn't just an Issue I see. Another team experienced the same kind of issues.

  • Hi, I just saw this thread today and I want to report that I am observing something similar. This is strange because I wasn't seeing this yesterday. When I go to the example projects directory and click on the template file, it would prompt me to point to a path to create the example project workspace. Up until yesterday it was working just fine. However, today when I tried the same thing, the template isn't copying over any of the application source files or TI libraries. The template is essentially creating an empty workspace and IAR has no idea where any file is

  • Hi Jack,

    Apologies for the delay. 

    1. I have tested, among other projects, simple_peripheral. 

    2. Yes, I can see all the files that I need in the folder. 

    3. I'm using IAR 8.32.2.

    Have you recently upgraded your IAR version and if so, did it work as expected before upgrading? 

    Thanks, 
    Elin

  • Hi Sarat, 

    It sounds strange that the behavior of the application has changed overnight. Were you using the same workspace as the day before or did you open a new one? If you opened a new one, did you follow the steps from the Quick Start Guide?

    Which IAR version are you using?

    Thanks,
    Elin

  • Hi,

    No, it has never worked. On any version.

    We downloaded and tried 8.32.2. The same thing happens: 

  • Hi Elin,

    TO confirm the process:

    1) Open IAR 8.32.2

    2) Open

    simple_peripheral_app.template.eww located in:
    C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral\tirtos\iar

    3) It asks to save a workspace and project. I save to c:\simple_peripheral_test

    Files cannot be opened. board_key.c.  Adialog pops up asking for:

    c:\simple_peripheral_test\$SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR%\.

    4) I import the IAR Argument Variable file:

    C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\tools\iar\SIMPLELINK_CC13X2_26X2_SDK.custom_argvars

    It can't find the files, or syscfg.

    It actually didn't copy any source files

  • Ok, We have resolved the issue.

    It seems the key here is that the custom IAR arguments must be provided to IAR in the Global tab (not what the instructions show) and before the import.

    IAR template requires that all of these custom variables be set before the project import is done. Otherwise it will not copy anything.

    The TI instructions are ambiguous and show info that's mostly for older workspaces.

    I urge TI to correct this and clarify

  • Hi Jack, 

    Thanks for sharing how you solved the problem.

    Did you check the Quick Start Guide? It contains a lot of information including how to add the custom argument variables, both workspace and Global and the advantage of using Global. It is also mentioned before importing the project workspace.

    What part of this do you think should be clarified? 

    Thanks, 
    Elin