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: IAR compile error when running XDC Tools

Part Number: CC2642R
Other Parts Discussed in Thread: CC2650

Tool/software:

Hi team,

My customer faces an issue that the environment set up issue, please help on this, I cannot download IAR in my laptop. Could you please help import a SDK project into IAR and test the same compiler process?

IAR 8.32

Simplelink F2 SDK 3.40.00.02

  • Hi Island,

    It seems that their dependencies are aligned with the SDK Release Notes for this version.  There are no known issues of IAR usage with this release.  The SDK version itself is six years old so if they are using it then they must be experienced or have nearby examples of a working setup, or should be upgrading to the latest SDK.  Have them start with the default TI example and make sure they reset IAR after loading the Custom Argument Variables.  You can also consider contacting IAR support.

    Regards,
    Ryan

  • Hi Ryan,

    I used to develop my project on SDK V3.10.00.53, IAR 8.32, now we have to add OOB feature which V3.10 not support, and I find that V3.40 support OOB feature which was the closest version, so i tried to upgrade to V3.40 to reduce the migration changes to the least, rather than use the latest version.

    but in V3.40, the examples are in template files and after rebuilding the example as the steps above,  the pre-building error occurs.

    It seems that some files are not found in the path, such as /configPkg/compiler.opt.defs, ti_ble_app_config.opt, or the path is mismatch.

    /*********************/

    Building configuration: simple_peripheral_oad_offchip_app - Debug
    Updating build tree...
    Performing Pre-Build Action
    Error while running "c:/ti/xdctools_3_60_02_34_core/xs" --xdcpath="c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/kernel/tirtos/packages;c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source" iar.tools.configuro -c "C:\Program Files (x86)\IAR Systems\
    Embedded Workbench 8.32\arm" --cc "C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.32\arm\bin\iccarm.exe" --device "CC2642R1F" --compileOptions "dummy.c -D SECURITY -D DeviceFamily_CC26X2 -o \"C:\ti\
    simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder\Debug\Obj\" --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -f \
    "C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder/configPkg/compiler.opt.defs\" \"-fC:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New
    folder/ti_ble_app_config.opt\" \"-fC:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder/ti_build_config.opt\"
    -fc:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/config/build_components.opt -fc:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/config/factory_config.opt --debug --silent -e --aeabi --thumb --diag_suppress=Pa050 -e
    --fpu=VFPv4_sp --dlib_config \"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.32\arm\inc\c\DLib_Config_Normal.h\" -I \"C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder\\\" -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/examples/rtos/CC26X2R1_LAUNCHXL/ble5stack/simple_peripheral_oad_offchip/Application\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/../ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/cc26xx/flash_interface/ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/cc26xx/crc/ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/cc26xx/bim/ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/cc26xx/oad/ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/common/cc26xx/rcosc\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/profiles/oad/cc26xx\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/common/cc26xx/menu\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/common/cc26xx/oad_efl_dbg\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/controller/cc26xx/inc\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/inc\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/rom\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/common/cc26xx\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/icall/inc\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/hal/src/target/_common\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/hal/src/target/_common/cc26xx\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/hal/src/inc\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/heapmgr\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/profiles/dev_info\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/profiles/simple_profile\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/icall/src/inc\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/osal/src/inc\
    -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/services/src/saddr\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/services/src/sdata\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/nv\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/common/cc26xx\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/profiles/simple_profile/cc26xx\ -I
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/hal/src/target/cc2650/rom\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/devices/cc13x2_cc26x2\ -I c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/posix/iar\ -Ol"
    --linkOptions "--no_out_extension -o \"C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder\Debug\Exe\simple_peripheral_oad_offchip_app.out\" --map \"C:\ti\
    simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder\Debug\List\simple_peripheral_oad_offchip_app.map\" --config
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/examples/rtos/CC26X2R1_LAUNCHXL/ble5stack/simple_peripheral_oad_offchip/tirtos/iar/cc26xx_app_and_stack_agama.icf -f \"C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\
    CC26X2R1_LAUNCHXL\ble5stack\New folder/configPkg/linker.cmd\" --keep __vector_table c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/libraries/cc26x2r1/OneLib.a
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/libraries/cc26x2r1/ble_r2.symbols c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/ble5stack/libraries/cc26x2r1/StackWrapper.a
    -fc:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/examples/rtos/CC26X2R1_LAUNCHXL/ble5stack/simple_peripheral_oad_offchip/Tools/Defines/config_def.opt
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/devices/cc13x2_cc26x2/driverlib/bin/iar/driverlib.lib c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/drivers/lib/drivers_cc26x2.arm4f
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/drivers/rf/lib/rf_multiMode_cc26x2.arm4f c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/display/lib/display.arm4f
    c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/source/ti/grlib/lib/iar/m4f/grlib.a c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x2.arm4f --silent --cpu=Cortex-M4F --semihosting --entry __iar_program_start --vfe
    --text_out locale" --profile release --projFile "C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder\simple_peripheral_oad_offchip_app.ewp" -o C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\
    examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder/configPkg c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/examples/rtos/CC26X2R1_LAUNCHXL/ble5stack/simple_peripheral_oad_offchip/Tools/ble_Debug.xscfg

    Total number of errors: 1
    Total number of warnings: 0

  • Hi Ryan,

    I just find that project_zero is building OK, though there is an error message at the beginning.

  • i tried to upgrade to V3.40 to reduce the migration changes to the least, rather than use the latest version

    You will want to at least consider reviewing the Release Notes of each newer SDK to determine if there is a new feature or bug fix that your project could benefit from.

    "C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\New folder/configPkg/compiler.opt.defs\"

    Having a space in the name "New folder" of your workspace is probably an issue.  Try using "NewFolder" or "New_folder" instead.

    though there is an error message at the beginning

    You should locate compiler.opt.defs in the SDK and determine why it is not located where IAR is trying to find it.

    Regards,
    Ryan

  • Hi Ryan,

    The space in the name "New folder" is the root cause, after changing to New_folder, it OK now.

    thanks very much~