2 Replies Latest reply on May 19, 2017 3:33 AM by NoSheng

    ISSM_2016.2.094 New project Build Error

    NoSheng

      Hi, I download the “Intel® System Studio for Microcontrollers Update 2” for Windows* platform recently.

      ( reference : https://communities.intel.com/thread/114358 )

       

      There is the software environment

      1

      OS

      Windows 8.1 64-bits

      2

      ISSM Version

      ISSM_2016.2.094 (w_cembd_mv_p_1.0.2.094)

       

      I create some new project for Intel Microcontrollers.

       

      And click the Build button to compile project.

       

      No.

      SOC =

      Target

      APP_NAME

      1

      quark_se

      x86

      Hello_World

      2

      quark_se

      x86

      Quark_LED_Blink

      3

      quark_se

      x86

      Start_the_ARC_Running_

      4

      quark_se

      sensor

      LED_Blink

      5

      quark_d2000

      x86

      D2000_LED_Blink

       

       

      There are two kinds of building errors which depends on the SOC.

       

      quark_se :

       

      15:57:43 **** Incremental Build of configuration Debug for project LED_Blink ****

      make

      APP_NAME = LED_Blink

      SOC = quark_se

      TARGET = sensor

      APP_DIR = .

      BUILD = debug

      CSTD = c99

      VERSION = '1.4.0'

      C:/IntelSWTools/ISSM_2016.2.094/tools/utils/make -C ./bsp/drivers SOC=quark_se TARGET=sensor BUILD=debug V=0 CSTD=c99 ITA_NO_ASSERT=0

      process_begin: CreateProcess(NULL, wmic os get name, ...) failed.

      BUILD = debug

      CSTD = c99

      VERSION = '1.4.0'

      process_begin: CreateProcess(NULL, wmic os get name, ...) failed.

      make[1]: Entering directory `C:/IntelSWTools/ISSM_2016.2.094/workspace/LED_Blink/bsp/drivers'

      CC ../drivers/debug/quark_se/sensor/obj/aon_counters/qm_aon_counters.o

      Assembler messages:

      Fatal error: can't create ../drivers/debug/quark_se/sensor/obj/aon_counters/qm_aon_counters.o: No such file or directory

      make[1]: *** [../drivers/debug/quark_se/sensor/obj/aon_counters/qm_aon_counters.o] Error 1

      make[1]: Leaving directory `C:/IntelSWTools/ISSM_2016.2.094/workspace/LED_Blink/bsp/drivers'

      make: *** [libqmsi] Error 2

       

      15:57:43 Build Finished (took 478ms)

       

      quark_d2000

       

      15:58:49 **** Incremental Build of configuration Debug for project D2000_LED_Blink ****

      make

      APP_NAME = D2000_LED_Blink

      SOC = quark_d2000

      TARGET = x86

      APP_DIR = .

      BUILD = debug

      CSTD = c99

      VERSION = '1.4.0'

      C:/IntelSWTools/ISSM_2016.2.094/tools/utils/make -C ./bsp/drivers SOC=quark_d2000 TARGET=x86 BUILD=debug V=0 CSTD=c99 ITA_NO_ASSERT=0

      process_begin: CreateProcess(NULL, wmic os get name, ...) failed.

      BUILD = debug

      CSTD = c99

      VERSION = '1.4.0'

      make[1]: Entering directory `C:/IntelSWTools/ISSM_2016.2.094/workspace/D2000_LED_Blink/bsp/drivers'

      process_begin: CreateProcess(NULL, wmic os get name, ...) failed.

      CC ../drivers/debug/quark_d2000/x86/obj/adc/qm_adc.o

      Assembler messages:

      Fatal error: can't create ../drivers/debug/quark_d2000/x86/obj/adc/qm_adc.o: No such file or directory

      make[1]: *** [../drivers/debug/quark_d2000/x86/obj/adc/qm_adc.o] Error 1

      make[1]: Leaving directory `C:/IntelSWTools/ISSM_2016.2.094/workspace/D2000_LED_Blink/bsp/drivers'

      make: *** [libqmsi] Error 2

       

      15:58:50 Build Finished (took 433ms)

       

      And the project in the same problem, which I import from previous ISSM (2016.2.090).

       

      The project has been created and works in previous ISSM (2016.2.090).

       

      Is there something about directory missing?

       

       

      ※ There are two previous ISSM exist in my computer : ISSM_2016.1.067 & ISSM_2016.2.090

       

       

       

      Thanks,

      NoSheng.

        • 1. Re: ISSM_2016.2.094 New project Build Error
          MichelleC_Intel

          It looks like you have a similar issue to this thread - which was a PATH problem --Re: Cant build examples for D2000 - Wont build app_entry.o

           

          Can you  you try updating the PATH setting in the C:/IntelSWTools/ISSM_2016.2.094/issm_env.bat  to below and restart ISSM. Let me know if this works.

           

          ::

          :: Extend PATH with ISSM tools

          ::

          set PATH=C:\WINDOWS\System32\Wbem

          set PATH=%ISSM_UTILS_ROOT%;%ISSM_TOOLCHAIN_BIN%;%ISSM_TOOLCHAIN_UTILS%;%ISSM_TOOLS_ROOT%/python;%ISSM_TOOLS_ROOT%/python3;%DFU_UTILS%;%PATH%

           

           

          -Michelle.

          • 2. Re: ISSM_2016.2.094 New project Build Error
            NoSheng

            Dear Michelle :

             

            The project in ISSM_2016.2.094 build successfully after set PATH:

             

            My command prompt :

            C:\Windows\system32>set PATH=C:\WINDOWS\System32\Wbem

             

            C:\Windows\system32>set PATH=%ISSM_UTILS_ROOT%;%ISSM_TOOLCHAIN_BIN%;%ISSM_TOOLCHAIN_UTILS%;%ISSM_TOOLS_ROOT%/python;%ISSM_TOOLS_ROOT%/python3;%DFU_UTILS%;%PATH%

             

            C:\Windows\system32>cd C:\IntelSWTools\ISSM_2016.2.094

             

            C:\IntelSWTools\ISSM_2016.2.094>iss_mcu_ide_eclipse-launcher.bat

            Copyright (C) 1985-2016 Intel Corporation. All rights reserved.

            Intel(R) Compiler 2016.0 using LLVM technology (package 025)

             

            It also works after edit C:\IntelSWTools\ISSM_2016.2.094\issm_env.bat

            ::

            :: Extend PATH with ISSM tools

            ::

            set PATH=C:\WINDOWS\System32\Wbem

             

            There is my final issm_env.bat :

             

            @ECHO off

            :: -----------------------------------------------------------------------------

            :: Copyright (c) 2016 Intel Corporation

            :: -----------------------------------------------------------------------------

             

            ::

            :: General-purpose variables

            ::

             

            :: Root directory for the installed ISSM

            set ISSM_ROOT=%~dp0

            :: Change backslashes to slahes

            set "ISSM_ROOT=%ISSM_ROOT:\=/%"

            :: Strip the trailing slash

            set ISSM_ROOT=%ISSM_ROOT:~0,-1%

            :: Root directory for the tools

            set ISSM_TOOLS_ROOT=%ISSM_ROOT%/tools

            :: Legacy variable

            set ISSM_PATH=%ISSM_TOOLS_ROOT%

            :: Root directory for the toolchain

            set ISSM_TOOLCHAIN_ROOT=%ISSM_TOOLS_ROOT%/compiler/gcc-ia/5.2.1

            set ISSM_TOOLCHAIN_GCC_IA_ROOT=%ISSM_TOOLCHAIN_ROOT%

            set ISSM_TOOLCHAIN_GCC_ARC_ROOT=%ISSM_TOOLS_ROOT%/compiler/gcc-arc/4.8.5

            set ISSM_TOOLCHAIN_LLVM_IA_ROOT=%ISSM_TOOLS_ROOT%/compiler_llvm/linux/

            :: Binaries directory for the toolchain

            set ISSM_TOOLCHAIN_BIN=%ISSM_TOOLCHAIN_ROOT%/bin

            :: Prefix for toolchain binaries, ex. i586-intel-elfiamcu-gcc

            set ISSM_TOOLCHAIN_PREFIX=i586-intel-elfiamcu-

            :: Binutils for the toolchain, without prefix %ISSM_TOOLCHAIN_PREFIX%

            set ISSM_TOOLCHAIN_UTILS=%ISSM_TOOLCHAIN_ROOT%/i586-intel-elfiamcu/bin/

            :: GCC version

            for /f %%i in ('%ISSM_TOOLCHAIN_BIN%/%ISSM_TOOLCHAIN_PREFIX%gcc -dumpversion') do set ISSM_TOOLCHAIN_GCC_VERSION=%%i

            :: Debugger

            set ISSM_DEBUGGER_ROOT=%ISSM_TOOLS_ROOT%/debugger

            :: Utils

            set ISSM_UTILS_ROOT=%ISSM_TOOLS_ROOT%/utils

            :: Python

            set PYTHONHOME=%ISSM_TOOLS_ROOT%/python

            :: LLVM-based toolchain

            IF EXIST %ISSM_TOOLCHAIN_LLVM_IA_ROOT%/bin/xcompilervars.bat (

            call %ISSM_TOOLCHAIN_LLVM_IA_ROOT%/bin/xcompilervars.bat -platform mcu

            )

            :: DFU

            set DFU_UTILS=%ISSM_TOOLS_ROOT%/dfu_utils/1.3

             

             

            ::

            :: Application specific variables

            ::

             

            :: BSP

            set ISSM_BSP_ROOT=%ISSM_ROOT%/firmware/bsp/1.4.0

            set IAMCU_TOOLCHAIN_DIR=%ISSM_TOOLCHAIN_GCC_IA_ROOT%/bin

            set ARCMCU_TOOLCHAIN_DIR=%ISSM_TOOLCHAIN_GCC_ARC_ROOT%/bin

             

            :: IPP

            set IPPROOT=%ISSM_ROOT%/firmware/lib/ipp/1.2.0

            set IPP_LIBRARY_PATH=%IPPROOT%

             

            :: Zephyr

            set ZEPHYR_GCC_VARIANT=issm

            set ISSM_INSTALLATION_PATH=%ISSM_ROOT%

            set ZEPHYR_BASE=%ISSM_ROOT%/firmware/zephyr/1.7.0

            set MINGW_DIR=C:/mingw/msys/1.0

            set ISSM_TOOLCHAIN_IA_SELECT="gcc"

            set TINYCRYPT_SRC_DIR=%ISSM_ROOT%/firmware/lib/tinycrypt-0.2.6

             

            ::

            :: Extend PATH with ISSM tools

            ::

            set PATH=C:\WINDOWS\System32\Wbem

            set PATH=%ISSM_UTILS_ROOT%;%ISSM_TOOLCHAIN_BIN%;%ISSM_TOOLCHAIN_UTILS%;%ISSM_TOOLS_ROOT%/python;%ISSM_TOOLS_ROOT%/python3;%DFU_UTILS%;%PATH%

             

            :: Add 101 support by default

            set ISSM_ENABLE_101_SUPPORT=1

             

            Thanks,

            NoSheng.