Skip to content

Commit 57d1997

Browse files
rluboscarlescufi
authored andcommitted
lib: edge_impulse: Disable FP16 option in samples and apps
THe CMSIS DSP provided with edge impulse library does not seem to be compatible with recently introduced Zephyr CONFIG_FP16 option, it ends up in a compilation error: error: conflicting types for 'float_t' Disable the CONFIG_FP16 option in samples/apps using edge impulse. Signed-off-by: Robert Lubos <[email protected]>
1 parent 87e3926 commit 57d1997

File tree

13 files changed

+13
-0
lines changed

13 files changed

+13
-0
lines changed

applications/machine_learning/configuration/nrf52840dk_nrf52840/app_ZDebug.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ CONFIG_CPLUSPLUS=y
4848
CONFIG_LIB_CPLUSPLUS=y
4949
CONFIG_STD_CPP11=y
5050
CONFIG_FPU=y
51+
CONFIG_FP16=n
5152

5253
# Use the NCS machine learning model for simulated acceleration signal
5354
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/nrf52840dk_nrf52840/app_ZDebugNUS.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CONFIG_CPLUSPLUS=y
5757
CONFIG_LIB_CPLUSPLUS=y
5858
CONFIG_STD_CPP11=y
5959
CONFIG_FPU=y
60+
CONFIG_FP16=n
6061

6162
# Use the NCS machine learning model for simulated acceleration signal
6263
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/nrf52840dk_nrf52840/app_ZRelease.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ CONFIG_CPLUSPLUS=y
4646
CONFIG_LIB_CPLUSPLUS=y
4747
CONFIG_STD_CPP11=y
4848
CONFIG_FPU=y
49+
CONFIG_FP16=n
4950

5051
# Use the NCS machine learning model for simulated acceleration signal
5152
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/app_ZDebug.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ CONFIG_CPLUSPLUS=y
5858
CONFIG_LIB_CPLUSPLUS=y
5959
CONFIG_STD_CPP11=y
6060
CONFIG_FPU=y
61+
CONFIG_FP16=n
6162

6263
# Use the NCS machine learning model for simulated acceleration signal
6364
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy52_nrf52832/app_ZDebug.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ CONFIG_CPLUSPLUS=y
5252
CONFIG_LIB_CPLUSPLUS=y
5353
CONFIG_STD_CPP11=y
5454
CONFIG_FPU=y
55+
CONFIG_FP16=n
5556

5657
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
5758
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy52_nrf52832/app_ZRelease.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ CONFIG_CPLUSPLUS=y
5050
CONFIG_LIB_CPLUSPLUS=y
5151
CONFIG_STD_CPP11=y
5252
CONFIG_FPU=y
53+
CONFIG_FP16=n
5354

5455
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
5556
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/app_ZDebug.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CONFIG_CPLUSPLUS=y
5757
CONFIG_LIB_CPLUSPLUS=y
5858
CONFIG_STD_CPP11=y
5959
CONFIG_FPU=y
60+
CONFIG_FP16=n
6061

6162
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
6263
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/app_ZDebugRTT.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ CONFIG_CPLUSPLUS=y
5959
CONFIG_LIB_CPLUSPLUS=y
6060
CONFIG_STD_CPP11=y
6161
CONFIG_FPU=y
62+
CONFIG_FP16=n
6263

6364
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
6465
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp/app_ZRelease.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ CONFIG_CPLUSPLUS=y
5252
CONFIG_LIB_CPLUSPLUS=y
5353
CONFIG_STD_CPP11=y
5454
CONFIG_FPU=y
55+
CONFIG_FP16=n
5556

5657
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
5758
CONFIG_EDGE_IMPULSE=y

applications/machine_learning/configuration/thingy53_nrf5340_cpuapp_ns/app_ZDebug.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CONFIG_CPLUSPLUS=y
5757
CONFIG_LIB_CPLUSPLUS=y
5858
CONFIG_STD_CPP11=y
5959
CONFIG_FPU=y
60+
CONFIG_FP16=n
6061

6162
# Use the NCS machine learning model for acceleration readouts coming from HW accelerometer
6263
CONFIG_EDGE_IMPULSE=y

0 commit comments

Comments
 (0)