### Install Vela Compiler Source: https://github.com/himaxwiseeyeplus/himax-wiseeye-module-g1-sdk/blob/main/_Documents/vela_compile/notes_vela.txt Install the required ethos-u-vela package via pip. ```bash pip install ethos-u-vela ``` -------------------------------- ### Initialize Frontend Configuration Source: https://github.com/himaxwiseeyeplus/himax-wiseeye-module-g1-sdk/blob/main/WE2_CM55M_APP_S/library/inference/tflmtag2209_u55tag2205/tensorflow/lite/experimental/microfrontend/lib/README.md Populates a FrontendConfig structure with default processing parameters. ```c++ void FrontendFillConfigWithDefaults(struct FrontendConfig* config) ``` -------------------------------- ### Process Audio Samples Source: https://github.com/himaxwiseeyeplus/himax-wiseeye-module-g1-sdk/blob/main/WE2_CM55M_APP_S/library/inference/tflmtag2209_u55tag2205/tensorflow/lite/experimental/microfrontend/lib/README.md Demonstrates the workflow of configuring the frontend, populating the state, and processing raw PCM audio samples to generate feature vectors. ```c++ struct FrontendConfig frontend_config; FrontendFillConfigWithDefaults(&frontend_config); int sample_rate = 16000; FrontendPopulateState(&frontend_config, &frontend_state, sample_rate); int16_t* audio_data = ; // PCM audio samples at 16KHz. size_t audio_size = ; // Number of audio samples. size_t num_samples_read; // How many samples were processed. struct FrontendOutput output = FrontendProcessSamples( &frontend_state, audio_data, audio_size, &num_samples_read); for (i = 0; i < output.size; ++i) { printf("%d ", output.values[i]); // Print the feature vector. } ``` -------------------------------- ### Build CMSIS-NN Kernels for Corstone-300 Source: https://github.com/himaxwiseeyeplus/himax-wiseeye-module-g1-sdk/blob/main/WE2_CM55M_APP_S/library/inference/tflmtag2209_u55tag2205/tensorflow/lite/micro/kernels/cmsis_nn/README.md Commands to build the kernel_conv_test using different CMSIS-NN integration methods. ```bash make -f tensorflow/lite/micro/tools/make/Makefile OPTIMIZED_KERNEL_DIR=cmsis_nn TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 kernel_conv_test ``` ```bash make -f tensorflow/lite/micro/tools/make/Makefile OPTIMIZED_KERNEL_DIR=cmsis_nn CMSIS_PATH= TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 kernel_conv_test ``` ```bash make -f tensorflow/lite/micro/tools/make/Makefile OPTIMIZED_KERNEL_DIR=cmsis_nn CMSIS_NN_LIBS= CMSIS_PATH= TARGET=cortex_m_corstone_300 TARGET_ARCH=cortex-m55 kernel_conv_test ``` -------------------------------- ### Compile TFLite Model with Vela Source: https://github.com/himaxwiseeyeplus/himax-wiseeye-module-g1-sdk/blob/main/_Documents/vela_compile/notes_vela.txt Run the vela compiler with specific accelerator, system, and memory configurations. ```bash vela --accelerator-config ethos-u55-64 --config himax_vela.ini --system-config My_Sys_Cfg --memory-mode My_Mem_Mode_Parent .\yolo_coco.tflite ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.