Hi Alex,
I was successful till the linking phase(made changes to a few scripts in the root directory) and got stuck over there due to a couple of issues mostly related to the compatibility such as the env PATH setting using cmake.exe in Windows format and later few bash scripts used in the generated makefiles. Windows native support is expected in the Tensorflow lite, I guess so far. I have not used even git-bash as I wanted to stick to Windows strictly. But you can try git-bash as well.
Log
[ 8%] Building TensorFlow Lite Micro library…
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘npu/CMakeFiles/ethos_u_npu.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
cd D:/alif_ml-embedded-evaluation-kit/dependencies/tensorflow && C:/CMake/bin/cmake.exe -E env PATH=D:/alif_ml-embedded-evaluation-kit/resources_downloaded/env/bin:C:\python C:\CMake\bin C:\ArmCompilerforEmbedded6.18\bin C:\ninja-win C:\Git\cmd C:\make-3.82\bin C:\python\Scripts “C:\Program Files\PuTTY” make -j8 -f D:/alif_ml-embedded-evaluation-kit/dependencies/tensorflow/tensorflow/lite/micro/tools/make/Makefile clean microlite TARGET_TOOLCHAIN_ROOT=C:/ArmCompilerforEmbedded6.18/bin/ TOOLCHAIN=armclang GENDIR=D:/alif_ml-embedded-evaluation-kit/build_he/tensorflow/ TARGET=cortex_m_generic TARGET_ARCH=cortex-m55 BUILD_TYPE=release_with_logs CMSIS_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/cmsis CMSIS_NN_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/cmsis-nn ETHOSU_ARCH=u55 ETHOSU_DRIVER_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/core-driver ETHOSU_DRIVER_LIBS=D:/alif_ml-embedded-evaluation-kit/build_he/lib/libethosu_core_driver.a CORE_OPTIMIZATION_LEVEL=-Ofast KERNEL_OPTIMIZATION_LEVEL=-Ofast THIRD_PARTY_KERNEL_OPTIMIZATION_LEVEL=-Ofast OPTIMIZED_KERNEL_DIR=cmsis_nn CO_PROCESSOR=ethos_u
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘math/CMakeFiles/cmsis-dsp.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘cmsis_device/CMakeFiles/cmsis_ensemble.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
[ 8%] Built target ethos_u_npu
[ 80%] Built target cmsis-dsp
[ 88%] Built target cmsis_ensemble
make -f math/CMakeFiles/arm_math.dir/build.make math/CMakeFiles/arm_math.dir/depend
make -f platform_driver/CMakeFiles/platform_drivers_core.dir/build.make platform_driver/CMakeFiles/platform_drivers_core.dir/depend
Access is deniedmake -f image/CMakeFiles/image_ensemble.dir/build.make image/CMakeFiles/image_ensemble.dir/depend
make[3]: *** [CMakeFiles/tensorflow_build.dir/build.make:74: CMakeFiles/tensorflow_build] Error 1
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[2]: *** [CMakeFiles/Makefile2:624: CMakeFiles/tensorflow_build.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs…
After setting PATH properly
Log 2
cd D:/alif_ml-embedded-evaluation-kit/dependencies/tensorflow && C:/CMake/bin/cmake.exe -E env PATH=“D:/alif_ml-embedded-evaluation-kit/resources_downloaded/env/bin:C:\python C:\CMake\bin C:\ArmCompilerforEmbedded6.18\bin C:\ninja-win C:\Git\cmd C:\make-3.82\bin C:\python\Scripts C:\Program Files\PuTTY” make -j8 -f D:/alif_ml-embedded-evaluation-kit/dependencies/tensorflow/tensorflow/lite/micro/tools/make/Makefile clean microlite TARGET_TOOLCHAIN_ROOT=C:/ArmCompilerforEmbedded6.18/bin/ TOOLCHAIN=armclang GENDIR=D:/alif_ml-embedded-evaluation-kit/build_he/tensorflow/ TARGET=cortex_m_generic TARGET_ARCH=cortex-m55 BUILD_TYPE=release_with_logs CMSIS_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/cmsis CMSIS_NN_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/cmsis-nn ETHOSU_ARCH=u55 ETHOSU_DRIVER_PATH=D:/alif_ml-embedded-evaluation-kit/dependencies/core-driver ETHOSU_DRIVER_LIBS=D:/alif_ml-embedded-evaluation-kit/build_he/lib/libethosu_core_driver.a CORE_OPTIMIZATION_LEVEL=-Ofast KERNEL_OPTIMIZATION_LEVEL=-Ofast THIRD_PARTY_KERNEL_OPTIMIZATION_LEVEL=-Ofast OPTIMIZED_KERNEL_DIR=cmsis_nn CO_PROCESSOR=ethos_u
[ 80%] Built target cmsis-dsp
make -f math/CMakeFiles/arm_math.dir/build.make math/CMakeFiles/arm_math.dir/depend
[ 80%] Built target ethos_u_npu
[ 88%] Built target cmsis_ensemble
make -f platform_driver/CMakeFiles/platform_drivers_core.dir/build.make platform_driver/CMakeFiles/platform_drivers_core.dir/depend
make -f image/CMakeFiles/image_ensemble.dir/build.make image/CMakeFiles/image_ensemble.dir/depend
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
C:/CMake/bin/cmake.exe -E cmake_depends “Unix Makefiles” D:/alif_ml-embedded-evaluation-kit D:/alif_ml-embedded-evaluation-kit/source/math D:/alif_ml-embedded-evaluation-kit/build_he D:/alif_ml-embedded-evaluation-kit/build_he/math D:/alif_ml-embedded-evaluation-kit/build_he/math/CMakeFiles/arm_math.dir/DependInfo.cmake “–color=”
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
C:/CMake/bin/cmake.exe -E cmake_depends “Unix Makefiles” D:/alif_ml-embedded-evaluation-kit D:/alif_ml-embedded-evaluation-kit/source/hal/source/platform/ensemble D:/alif_ml-embedded-evaluation-kit/build_he D:/alif_ml-embedded-evaluation-kit/build_he/platform_driver D:/alif_ml-embedded-evaluation-kit/build_he/platform_driver/CMakeFiles/platform_drivers_core.dir/DependInfo.cmake “–color=”
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
C:/CMake/bin/cmake.exe -E cmake_depends “Unix Makefiles” D:/alif_ml-embedded-evaluation-kit D:/alif_ml-embedded-evaluation-kit/source/hal/source/components/image D:/alif_ml-embedded-evaluation-kit/build_he D:/alif_ml-embedded-evaluation-kit/build_he/image D:/alif_ml-embedded-evaluation-kit/build_he/image/CMakeFiles/image_ensemble.dir/DependInfo.cmake “–color=”
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make -f platform_driver/CMakeFiles/platform_drivers_core.dir/build.make platform_driver/CMakeFiles/platform_drivers_core.dir/build
make -f math/CMakeFiles/arm_math.dir/build.make math/CMakeFiles/arm_math.dir/build
cmake -E env: no command given
make -f image/CMakeFiles/image_ensemble.dir/build.make image/CMakeFiles/image_ensemble.dir/build
make[3]: *** [CMakeFiles/tensorflow_build.dir/build.make:74: CMakeFiles/tensorflow_build] Error 1
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[2]: *** [CMakeFiles/Makefile2:624: CMakeFiles/tensorflow_build.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs…
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘platform_driver/CMakeFiles/platform_drivers_core.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘image/CMakeFiles/image_ensemble.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Entering directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[3]: Nothing to be done for ‘math/CMakeFiles/arm_math.dir/build’.
make[3]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
[ 88%] Built target platform_drivers_core
[ 91%] Built target image_ensemble
[ 94%] Built target arm_math
make[2]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
make[1]: *** [CMakeFiles/Makefile2:961: CMakeFiles/ethos-u-alif_kws.dir/rule] Error 2
make[1]: Leaving directory ‘D:/alif_ml-embedded-evaluation-kit/build_he’
Also observed certain static libraries are not in the specified path. Will look into it once I get free. You can continue and let me know if you find something useful. But for sure some native support work is required.
Thanks
Srinivas