微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > CC1310例程在IAR上编译出现问题

CC1310例程在IAR上编译出现问题

时间:12-23 整理:3721RD 点击:

刚接触CC1310和RTOS,IAR也不太熟悉,使用TI提供的RTOS例程在IAR上编译时出现以下问题:

Variable expansion failed for Pre-Build command line.

Offending text: "iarbuild.exe $SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/tirtos_builds_CC1310_LAUNCHXL_release.ewp Debug -log all"

希望各路大神能帮忙解决,谢谢!谢谢!谢谢!

用的什么版本,包括IAR和CC13XX SDK.?

http://processors.wiki.ti.com/index.php/Creating_TI-RTOS_Applications_in_IAR_Embedded_Workbench#Generating_the_Files_for_the_TI-RTOS_Examples

Integrating TI-RTOS Examples with the IAR IDE

In order for IAR to discover TI-RTOS, you must do the following once before you can create, build, and run TI-RTOS examples within IAR:

  1. Open IAR Embedded Workbench.
  2. Choose Tools > Options to open the IDE Options dialog. Select the Project category and check the box to Enable project connections. Click OK.

    Configure Custom Argument Variables dialog

  3. Choose Tools > Configure Custom Argument Variables. This opens a dialog that allows you to define paths to integrate TI-RTOS with IAR Embedded Workbench.
  4. Select the Global tab, and click Import.
  5. Browse to the IAR subdirectory of the examples tree in TI-RTOS. For example, browse to the "C:/ti/tirtos_####_#_##_##_##/tirtos_#_##_##_##_examples/IAR" directory. In case of TI-RTOS for MSP43x, the IAR subdirectory is "C:/ti/tirtos_msp43x_##_##_##/tirtos_msp43x_##_##_##_examples/MSP430/IAR" for MSP430 and "C:/ti/tirtos_msp43x_##_##_##/tirtos_msp43x_##_##_##_examples/MSP432/IAR" for MSP432.
  6. Select the tirtos_#_##_##_##.custom_argvars file, and click Open.
  7. The result should look similar to the following figure. Click OK to finish.

    Configure Custom Argument Variables dialog

Creating TI-RTOS Examples with IAR Embedded Workbench

Follow these steps to import a TI-RTOS example into an IAR project:

  1. First, choose Project > Create New Project from the IAR menus.
  2. Select the correct Tool chain and choose the Empty project template. Click OK.
  3. Browse to the location where you want to save this project, and type a name for the project file (*.ewp). It is best to use a directory that does not contain other projects or workspaces. Click Save

    NoteNote: Do not use names for a project or workspace that contain spaces.

  4. Choose File > Save Workspace from the IAR menus.
  5. Browse to the location where you want to save this workspace and type a name for the workspace file (*.eww). It is common to save the project and workspace in the same directory. Click Save

    NoteNote: Do not use names for a project or workspace that contain spaces.

  6. Make sure that custom arguments are enabled for this workspace. To do so, choose Tools > Configure Custom Argument Variables. The imported custom arguments should be enabled under the Workspace Tab in the opened dialog as shown in the screenshot below.

    Custom Argument Variables, Workspace tab

  7. Close and re-open IAR Embedded Workbench, this is in order for the custom argument variables changes to take effect.
  8. If the IAR Information Center is not open, choose Help > Information Center from the IAR menus.
  9. Click the Integrated Solutions link.

    Integrated Solutions link

  10. In the partners table, click the Example Projects button in the Texas Instruments row.

    Texas Instruments Example Project link

  11. Click the "example applications" link to open the Texas Instruments -- TI-RTOS Examples page.
  12. Expand the list of examples. Click on an example to add files for that example to your current project. This figure shows MSP430 examples:

    TI-RTOS Examples list

  13. Right-click on the project file, and choose Options. Select the Debugger category.
    • For Tiva C targets, choose the TI Stellaris debugger in the Setup tab.
    • For SimpleLink CC13xx/CC26xx ARM targets using the SmartRF06 board, choose TI XDS in the Setup tab. In the Download tab, enable "Use flash loader(s)". Below, for the TI XDS category, in the Setup tab, select TI XDS100v3 USB Emulator and cJTAG as Interface.
    • For SimpleLink CC13xx/CC26xx ARM targets with the debug DevPak, SensorTag, or LaunchPad, choose TI XDS in the Setup tab. In the Download tab, enable "Use flash loader(s)". Below, for the TI XDS category, in the Setup tab, select TI XDS110 Emulator and cJTAG as Interface.
    • For SimpleLink CC32xx ARM targets, choose the TI Stellaris debugger in the Setup tab.
    • For MSP430 targets, choose the FET Debugger in the Setup tab.
    • For MSP432 ARM targets, choose the TI XDS debugger in the Setup tab. In the Download tab enable "Use flash loader(s)". Select the TI XDS category, and in the Setup tab select the TI XDS110 Emulator.

      Debugger Driver Options

  14. If you are using an ARM target (except for CC3200), in the Download tab, be sure to put a checkmark in the Use flash loader(s) box.
  15. Move to the Plugins tab and put a checkmark in the box next to TI-RTOS. This enables the RTOS Object View (ROV) plugin tools. Click OK. Note that you will need to change these Debugger options separately for each TI-RTOS project you create in IAR.

Dear TI工程师:

谢谢您的回复。

之前我是从下载的simplelink_cc13x0_sdk_1_30_00_06文件->example文件中找到的IAR工程打开的;按照您上述的方法建立IAR工程后编译没有问题。

是文件simplelink_cc13x0_sdk_1_30_00_06->examples->rtos->CC1310_LAUNCHXL->demos->portable->tirtos->iar文件中IAR工程不能打开 是吗?

万分感谢!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top