nRF Connect SDK machine learning application simulated sensor build problem

Hardware: nrf52840 DK.

Software: ncs version v1.7.0 and default SEGGER IDE for Nordic.

When I first build the machine learning application in nrf, there is no any problems. Because nrf52840 DK uses simulated sensor, so we want to add our own custom sensor, I modify the configuration file: app_ZDebug.conf for our own sensor. But when I want to use simulated sensor again, I change the configuration file back as follows:

# Using simulated sensor (the DK does not have built-in sensor)
CONFIG_SENSOR=y
CONFIG_SENSOR_SIM=y
CONFIG_SENSOR_SIM_ACCEL_WAVE=y

I clean the solution and rebuilt the whole solution, but it always output following warnings and error:

ncs/v1.7.0/zephyr/drivers/sensor/lis2dw12/lis2dw12.c:303:2: warning: #warning "LIS2DW12 driver enabled without any devices" -Wcpp]
ncs/v1.7.0/zephyr/drivers/sensor/lis2dw12/lis2dw12.c:239:12: warning: lis2dw12_init' defined but not used -Wunused-function]
ncs/v1.7.0/zephyr/drivers/sensor/lis2dw12/lis2dw12.c:208:39: warning: lis2dw12_driver_api' defined but not used -Wunused-const-variable=]

../configuration/nrf52840dk_nrf52840/sensor_sampler_def.h:36:15: error: 'CONFIG_SENSOR_SIM_DEV_NAME' undeclared here (not in a function); did you mean 'CONFIG_SENSOR_LOG_LEVEL'?
Build failed

This error makes me so confused. (In fact, we want to use LIS2DW12 sensor.) How can I solve this problem? Thank you guys!

BRs.

Parents Reply Children
No Data
Related