Add CONFIG_BT_MESH_SCHEDULER_SRV in prj.conf file.

Hello,

I exiting code of light_crtl, i wanted to add Scheduler server model. I tried it by initializing scheduler model in the code and enabling "CONFIG_BT_MESH_SCHEDULER_SRV =y " in prj.conf file. But I'm getting error as


* Executing task: nRF Connect: Build: light_ctrl_scheduling/build (active)

Building light_ctrl_scheduling
C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir d:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build d:/Bluetooth_mesh/Codes/light_ctrl_scheduling"

[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: D:/Bluetooth_mesh/Codes/light_ctrl_scheduling
-- CMake version: 3.20.5
-- Cache files will be written to: C:/ncs/v2.4.2/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.2/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.4.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: d:/Bluetooth_mesh/Codes/light_ctrl_scheduling/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: D:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build/zephyr/dts.cmake
Parsing C:/ncs/v2.4.2/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.4.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration 'd:/Bluetooth_mesh/Codes/light_ctrl_scheduling/prj.conf'

d:/Bluetooth_mesh/Codes/light_ctrl_scheduling/prj.conf:79: warning: attempt to assign the value ' y' to the undefined symbol BT_MESH_SCHEDULER_SRV

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.4.2/zephyr/cmake/modules/kconfig.cmake:339 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.4.2/nrf/cmake/modules/kconfig.cmake:29 (include)
C:/ncs/v2.4.2/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
C:/ncs/v2.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.4.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
See also "D:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build/CMakeFiles/CMakeOutput.log".
See also "D:/Bluetooth_mesh/Codes/light_ctrl_scheduling/build/CMakeFiles/CMakeError.log".
FAILED: build.ninja
C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe --regenerate-during-build -SD:\Bluetooth_mesh\Codes\light_ctrl_scheduling -BD:\Bluetooth_mesh\Codes\light_ctrl_scheduling\build
ninja: error: rebuilding 'build.ninja': subcommand failed
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' --build 'd:\Bluetooth_mesh\Codes\light_ctrl_scheduling\build'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Guide us how to enable scheduler model in prj.conf file.

Parents Reply Children
No Data
Related