Hi,
Currently i am working on HEXIWEAR. I am trying to compile the Hexiwear_bluetooth IAR project.
I tried as mentioned below.
1. Download KW40Z_Connectivity_Software_1.0.1
2. Download HEXIWEAR-master project from the github
3. Added HEXIWEAR_bluetooth project from the HEXIWEAR-master/SW/KW40 folder to the KW40Z_Connectivity_Software_1.0.1/ConnSW/examples/bluetooth
4. Copied the SDK folders present in HEXIWEAR-master/SW/KW40/SDK modifications and replaced the same folders in the KW40Z_Connectivity_Software_1.0.1/ConnSW path as mentioned in the ReadMe document of each folder of HEXIWEAR-master/SW/KW40/SDK modifications
5. Open KW40Z_Connectivity_Software_1.0.1/KSDK_1.3.0/lib/ksdk_freertos_lib/iar/KW40Z4/ksdk_freertos_lib.eww with
IAR work bench and build
6.Open KW40Z_Connectivity_Software_1.0.1/ConnSw/examples/bluetooth/HEXIWEAR_bluetooth/frdmkw40z/FreeRTOS/build/iar/HEXIWEAR_bluetooth.eww and build
The build run delivers the failure.
Building configuration: HEXIWEAR_bluetooth - Debug
Updating build tree...
Variable expansion failed.
Offending text: "-I$_KSDK_PATH_$\rtos\FreeRTOS\config\KW40Z4\iar\"
Partial command line: ""C:\Freescale\KW40Z_Connectivity_Software_1.0.1\KSDK_1.3.0\rtos\FreeRTOS\port\iar\portasm.s" "-O$PROJ_DIR$\debug\obj" "-s+"
"-M<>" "-w+" "-r" "-DDEBUG" "--cpu" "Cortex-M0+" "--fpu" "None" "-I$_KSDK_PATH_$\rtos\FreeRTOS\config\KW40Z4\iar"\ "
Error while running Assembler
Variable expansion failed.
Offending text: "-I$_KSDK_PATH_$\rtos\FreeRTOS\config\KW40Z4\iar\"
Partial command line: ""C:\Freescale\KW40Z_Connectivity_Software_1.0.1\KSDK_1.3.0\platform\devices\MKW40Z4\startup\iar\startup_MKW40Z4.s"
"-O$PROJ_DIR$\debug\obj" "-s+" "-M<>" "-w+" "-r" "-DDEBUG" "--cpu" "Cortex-M0+" "--fpu" "None" "-I$_KSDK_PATH_$\rtos\FreeRTOS\config\KW40Z4\iar"\ "
Error while running Assembler
Variable expansion failed.
Offending text: "$_KSDK_1_3_0_PATH_$/platform/CMSIS/Include\"
Partial command line: ""C:\Freescale\KW40Z_Connectivity_Software_1.0.1\ConnSw\examples\bluetooth\HEXIWEAR_bluetooth\common\Server Services\
alert_service.c" "-D" "DEBUG" "-D" "IAR" "-D" "CPU_MKW40Z160VHT4" "-lcN" "$PROJ_DIR$\debug\list" "--diag_suppress"
"Pa039,Pe068,Pe069,Pa082,Pe177,Pe186,Pe550,Pa050" "-o" "$PROJ_DIR$\debug\obj" "--debug" "--endian=little" "--cpu=Cortex-M0+" "-e" "--fpu=None"
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "--preinclude" "$PROJ_DIR$/../../app_preinclude.h" "-I"
"$_KSDK_1_3_0_PATH_$/platform/CMSIS/Include"\ "-I" "$PROJ_DIR$/../../../../../../../boards/frdmkw40z"\ "-I" "$_KSDK_1_3_0_PATH_$/platform/devices"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/devices/MKW40Z4/include"\ "-I" "$_KSDK_1_3_0_PATH_$/platform/devices/MKW40Z4/startup"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/system/src/clock/MKW40Z4"\ "-I" "$_KSDK_1_3_0_PATH_$/platform/devices"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/devices/MKW40Z4/startup"\ "-I" "$_KSDK_1_3_0_PATH_$/rtos/FreeRTOS/include"\ "-I"
"$_KSDK_1_3_0_PATH_$/rtos/FreeRTOS/port/iar"\ "-I" "$_KSDK_1_3_0_PATH_$/rtos/FreeRTOS/config/KW40Z4/iar"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Flash/External/Interface"\ "-I" "$PROJ_DIR$/../../../../../../../framework/Flash/External/Interface/Eeprom_M25P80"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Flash/Internal"\ "-I" "$PROJ_DIR$/../../../../../../../framework/SerialManager/Source/SPI_Adapter"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/drivers/src/flash/C90TFS/drvsrc/include"\ "-I" "$PROJ_DIR$/../../../../../../../framework/GPIOIrq"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Keyboard/Interface"\ "-I" "$PROJ_DIR$/../../../../../../../framework/LED/Interface"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Common"\ "-I" "$PROJ_DIR$/../../../../../../../framework/MemManager/Interface"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Messaging/Interface"\ "-I" "$PROJ_DIR$/../../../../../../../framework/LowPower/Interface/MKW4xZ"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/LowPower/Interface/MKW4xZ"\ "-I" "$PROJ_DIR$/../../../../../../../framework/OSAbstraction/Interface"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/osa/inc"\ "-I" "$PROJ_DIR$/../../../../../../../framework/OtaSupport/Interface"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Panic/Interface"\ "-I" "$PROJ_DIR$/../../../../../../../framework/RNG/Interface"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/SerialManager/Interface"\ "-I" "$PROJ_DIR$/../../../../../../../framework/TimersManager/Interface"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/TimersManager/Source"\ "-I" "$PROJ_DIR$/../../../../../../../framework/FunctionLib"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/Lists"\ "-I" "$PROJ_DIR$/../../../../../../../framework/SecLib"\ "-I" "$PROJ_DIR$/../../../../../../../framework/ModuleInfo"\ "-I"
"$PROJ_DIR$/../../../../../../../bluetooth/host/interface"\ "-I" "$PROJ_DIR$/../../../../../common"\ "-I" "$PROJ_DIR$/../../../../../common"\ "-I"
"$PROJ_DIR$/../../../../../../../bluetooth/controller/interface"\ "-I" "$PROJ_DIR$/../../../../../common"\ "-I" "$PROJ_DIR$/../../../../../../../bluetooth/hci_transport/interface"\ "-I"
"$PROJ_DIR$/../../../../../common/gatt_db"\ "-I" "$PROJ_DIR$/../../../../../common/gatt_db/macros"\ "-I" "$PROJ_DIR$/../../../../../../../bluetooth/profiles/battery"\ "-I"
"$PROJ_DIR$/../../../../../../../bluetooth/profiles/device_info"\ "-I" "$PROJ_DIR$/../../../../../../../framework/XCVR/MKW40Z4"\ "-I" "$PROJ_DIR$/../../../../common"\ "-I"
"$PROJ_DIR$/../../../../../../../framework/DCDC/Interface"\ "-I" "$PROJ_DIR$/../../../../common/TSI"\ "-I" "$PROJ_DIR$/../../../../common/Host MCU Interface"\ "-I"
"$PROJ_DIR$/../../../../common/Client ANCS"\ "-I" "$PROJ_DIR$/../../../../common/Server Services"\ "-I" "$PROJ_DIR$/../../../../common/ft/include"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/drivers/inc"\ "-I" "$_KSDK_1_3_0_PATH_$/platform/system/inc"\ "-I" "$_KSDK_1_3_0_PATH_$/platform/hal/inc"\ "-I"
"$_KSDK_1_3_0_PATH_$/platform/utilities/inc"\ "-I" "C:\Freescale\KW40Z_Connectivity_Software_1.0.1\ConnSw\framework\SerialManager\Source"\ "-I" "C:\
Freescale\KW40Z_Connectivity_Software_1.0.1\KSDK_1.3.0\rtos\FreeRTOS\src"\ "-Ohz" "
Variable expansion failed.
Questions:
1. Is my preparation process to use the example code right?
2. What causing the above errors and how to resolve it?
3. If i need to configure argument variables, what variables i need to configure?
Thank you very much for help in advance.
Regards,
Gangadhar