Skip to content

Commit

Permalink
Fix nrfconnect compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitg1 committed Apr 25, 2022
1 parent ff126ae commit d899489
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def main(argv):
queueCommand(f"cd {paths['rootSampleFolder']}/nrfconnect")
if options.doClean:
# queueCommand(f"rm -rf {paths['rootSampleFolder']}/nrfconnect/build")
queueCommand(f"west build -b nrf52840dk_nrf52840")
queueCommand(f"west build -b nrf52840dk_nrf52840 -c")
else:
queueCommand(f"west build -b nrf52840dk_nrf52840")
elif options.buildTarget == "linux":
Expand Down Expand Up @@ -403,7 +403,7 @@ def main(argv):
elif options.buildTarget == "nrfconnect":
queueCommand(f"cd {paths['rootSampleFolder']}/nrfconnect")
if options.doErase:
queueCommand("rm -rf build")
queueCommand("west flash --erase")
else:
queueCommand("west flash")

Expand Down
2 changes: 1 addition & 1 deletion examples/chef/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include(${CHEF}/project_include.cmake)

get_filename_component(GEN_DIR ${CHEF}/out/${SAMPLE_NAME}/zap-generated REALPATH)

set(CONF_FILE prj.conf)
set(CONF_FILE ${CHIP_ROOT}/config/nrfconnect/app/sample-defaults.conf prj.conf)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CHIP_CFLAGS "${CHIP_CFLAGS} -DCHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID=${CONFIG_DEVICE_PRODUCT_ID}")
Expand Down
5 changes: 3 additions & 2 deletions examples/chef/nrfconnect/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#
mainmenu "Matter nRF Connect Chef Example Application"

rsource "../../../config/nrfconnect/chip-module/Kconfig.defaults"
rsource "../../../config/nrfconnect/chip-module/Kconfig.features"
#rsource "../../../config/nrfconnect/chip-module/Kconfig.defaults"
#rsource "../../../config/nrfconnect/chip-module/Kconfig.features"
rsource "../../../config/nrfconnect/chip-module/Kconfig"
source "Kconfig.zephyr"
4 changes: 1 addition & 3 deletions examples/chef/nrfconnect/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ CHIP_ERROR main()
chip::app::DnssdServer::Instance().SetExtendedDiscoveryTimeoutSecs(kExtDiscoveryTimeoutSecs);

// Start IM server
static chip::CommonCaseDeviceServerInitParams initParams;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
ReturnErrorOnFailure(chip::Server::GetInstance().Init(initParams));
ReturnErrorOnFailure(chip::Server::GetInstance().Init());

chip::DeviceLayer::ConfigurationMgr().LogDeviceConfig();

Expand Down
3 changes: 0 additions & 3 deletions examples/chef/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ CONFIG_RESET_ON_FATAL_ERROR=n
# Disable Matter OTA DFU
CONFIG_CHIP_OTA_REQUESTOR=n

# Disable QSPI NOR
CONFIG_CHIP_QSPI_NOR=n

# CHIP configuration
CONFIG_CHIP_PROJECT_CONFIG="CHIPProjectConfig.h"
# 32773 == 0x8005 (example lighting-app)
Expand Down

0 comments on commit d899489

Please sign in to comment.