Skip to content

Commit

Permalink
SDK release v1.52.0
Browse files Browse the repository at this point in the history
  • Loading branch information
francovaro committed Jun 12, 2024
1 parent c3fad33 commit 20a95e9
Show file tree
Hide file tree
Showing 22 changed files with 49,591 additions and 12,182 deletions.
24 changes: 14 additions & 10 deletions EdgeImpulse.EI-SDK.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
<name>EI-SDK</name>
<license>LICENSE-apache-2.0.txt</license>
<description>Edge Impulse SDK</description>
<url>https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.51.3/</url>
<url>https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.52.0/</url>
<supportContact>[email protected]</supportContact>
<repository type="git">https://github.com/edgeimpulse/edge-impulse-sdk-pack.git</repository>
<releases>
<release version="1.51.3" tag="v1.51.3" date="2024-06-11" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.51.3/EdgeImpulse.EI-SDK.1.51.3.pack">
<release version="1.52.0" tag="v1.52.0" date="2024-06-12" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.52.0/EdgeImpulse.EI-SDK.1.52.0.pack">
EI-SDK
</release>
<release version="1.51.3" tag="v1.51.3" date="2024-06-11" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.51.3/EdgeImpulse.EI-SDK.1.51.3.pack">
EI-SDK
</release>
<release version="1.51.1" tag="v1.51.1" date="2024-06-09" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.51.1/EdgeImpulse.EI-SDK.1.51.1.pack">
EI-SDK
</release>
Expand Down Expand Up @@ -98,9 +101,6 @@
</release>
<release version="1.48.1" tag="v1.48.1" date="2024-03-14" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.48.1/EdgeImpulse.EI-SDK.1.48.1.pack">
EI-SDK
</release>
<release version="1.47.2" tag="v1.47.2" date="2024-03-12" url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.47.2/EdgeImpulse.EI-SDK.1.47.2.pack">
EI-SDK
</release>
</releases>
<keywords>
Expand Down Expand Up @@ -146,15 +146,15 @@
</packages>
</requirements>
<components>
<component Cclass="EdgeImpulse" Cgroup="SDK" Cversion="1.51.3">
<component Cclass="EdgeImpulse" Cgroup="SDK" Cversion="1.52.0">
<description>Edge Impulse SDK</description>
<!-- short component description -->
<files>
<file category="include" name="edgeimpulse/"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/tensorflow/lite/c/common.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_device_u55_u65.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_driver.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_pmu.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_device.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/src/pooling/esp_nn_avg_pool_ansi.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/src/pooling/esp_nn_max_pool_ansi.c"/>
<file category="source" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/src/basic_math/esp_nn_mul_ansi.c"/>
Expand Down Expand Up @@ -620,11 +620,15 @@
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ei_classifier_porting.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ei_logging.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/include/ethosu_driver.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/include/ethosu_device.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/include/ethosu_types.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/include/pmu_ethosu.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_config.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_log.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_device.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_interface.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu55_interface.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_common.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu_config_u55.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ethosu65_interface.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/src/ehtosu_config_u65.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/include/esp_nn_esp32s3.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/include/esp_nn_generic_opt.h"/>
<file category="header" name="edgeimpulse/edge-impulse-sdk/porting/espressif/ESP-NN/include/esp_nn_defs.h"/>
Expand Down
4 changes: 2 additions & 2 deletions EdgeImpulse.pidx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<index schemaVersion="1.0.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>EdgeImpulse</vendor>
<url>https://raw.githubusercontent.com/edgeimpulse/edge-impulse-sdk-pack/main/</url>
<timestamp>2024-06-11 11:07:42</timestamp>
<timestamp>2024-06-12 09:56:52</timestamp>
<pindex>
<pdsc url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.51.3/" vendor="EdgeImpulse" name="EI-SDK" version="1.51.3"/>
<pdsc url="https://github.com/edgeimpulse/edge-impulse-sdk-pack/releases/download/v1.52.0/" vendor="EdgeImpulse" name="EI-SDK" version="1.52.0"/>
</pindex>
</index>
144 changes: 0 additions & 144 deletions edgeimpulse/edge-impulse-sdk/porting/ethos-core-driver/.clang-format

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
# Copyright (c) 2019-2021 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -18,12 +18,6 @@

cmake_minimum_required(VERSION 3.15.6)

macro(test_and_convert_error_level log_level ethos_level)
if(${log_level} STREQUAL ${LOG_LEVEL})
set(ETHOSU_LOG_SEVERITY ${ethos_level})
endif()
endmacro()

project(ethosu_core_driver VERSION 0.0.1)

#
Expand All @@ -34,17 +28,10 @@ option(DRIVER_PMU_AUTOINIT "Enable PMU boot auto-initialization" OFF)

set(CMSIS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmsis" CACHE PATH "Path to CMSIS.")

set(LOG_NAMES emerg alert crit err warning notice info debug)
if(DEFINED LOG_LEVEL)
test_and_convert_error_level( LOG_LEVEL_ERROR err )
test_and_convert_error_level( LOG_LEVEL_DEBUG debug )
test_and_convert_error_level( LOG_LEVEL_TRACE debug )
test_and_convert_error_level( LOG_LEVEL_INFO info )
test_and_convert_error_level( LOG_LEVEL_WARN warning )
else()
set(ETHOSU_LOG_SEVERITY "info" CACHE STRING "Driver log severity level ${LOG_NAMES}")
set_property(CACHE ETHOSU_LOG_SEVERITY PROPERTY STRINGS ${LOG_NAMES})
endif()
set(LOG_NAMES err warning info debug)
set(ETHOSU_LOG_SEVERITY "warning" CACHE STRING "Driver log severity level ${LOG_NAMES} (Defaults to 'warning')")
set(ETHOSU_TARGET_NPU_CONFIG "ethos-u55-128" CACHE STRING "Default NPU configuration")
set_property(CACHE ETHOSU_LOG_SEVERITY PROPERTY STRINGS ${LOG_NAMES})

#
# Global settings
Expand All @@ -67,7 +54,26 @@ include_directories(${CMSIS_PATH}/CMSIS/Core/Include)
# Build driver library
add_library(ethosu_core_driver STATIC)
target_include_directories(ethosu_core_driver PUBLIC include)
target_sources(ethosu_core_driver PRIVATE src/ethosu_driver.c src/ethosu_device.c src/ethosu_pmu.c)
target_sources(ethosu_core_driver PRIVATE src/ethosu_driver.c src/ethosu_pmu.c)

string(TOLOWER ${ETHOSU_TARGET_NPU_CONFIG} ETHOSU_TARGET_NPU_CONFIG)
if(ETHOSU_TARGET_NPU_CONFIG MATCHES "^ethos-(u[0-9]+|uz)-([0-9]+$)")
set(ETHOSU_ARCH ${CMAKE_MATCH_1})
set(ETHOSU_MACS ${CMAKE_MATCH_2})
else()
message(FATAL_ERROR "Invalid Ethos-U target configuration '${ETHOSU_TARGET_NPU_CONFIG}")
endif()

target_compile_definitions(ethosu_core_driver PRIVATE
ETHOSU_ARCH=${ETHOSU_ARCH}
ETHOS$<UPPER_CASE:${ETHOSU_ARCH}>)

if (ETHOSU_ARCH STREQUAL "u55" OR ETHOSU_ARCH STREQUAL "u65")
target_sources(ethosu_core_driver PRIVATE src/ethosu_device_u55_u65.c)
else()
message(FATAL_ERROR "Invalid NPU configuration")
endif()


# Set the log level for the target
target_compile_definitions(ethosu_core_driver PRIVATE ETHOSU_LOG_SEVERITY=${LOG_SEVERITY})
Expand All @@ -83,6 +89,7 @@ install(FILES include/ethosu_device.h include/ethosu_driver.h include/pmu_ethosu

message(STATUS "*******************************************************")
message(STATUS "PROJECT_NAME : ${PROJECT_NAME}")
message(STATUS "ETHOSU_TARGET_NPU_CONFIG : ${ETHOSU_TARGET_NPU_CONFIG}")
message(STATUS "CMAKE_SYSTEM_PROCESSOR : ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS "CMSIS_PATH : ${CMSIS_PATH}")
message(STATUS "ETHOSU_LOG_SEVERITY : ${ETHOSU_LOG_SEVERITY}")
Expand Down
Loading

0 comments on commit 20a95e9

Please sign in to comment.