-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: cellular: nrf_cloud_multi_service: Thingy91:X Wi-Fi
Merge overlay and config info from ATv2 and 7002EK shield to get MSS with Wi-Fi scanning to build and run. Jira: IRIS-9637 Signed-off-by: Pete Skeggs <peter.skeggs@nordicsemi.no>
- Loading branch information
Showing
5 changed files
with
105 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
config WIFI_NRF700X | ||
default y if BOARD_THINGY91X_NRF9151_NS | ||
|
||
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
samples/cellular/nrf_cloud_multi_service/boards/thingy91x_nrf9151_ns.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,75 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Configuration file for Thingy:91 X. | ||
# This file is merged with prj.conf in the application folder, and options | ||
# set here will take precedence if they are present in both files. | ||
|
||
# BME680 - Temperature and humidity sensor. | ||
CONFIG_BME680=y | ||
|
||
# configs for Wi-Fi | ||
CONFIG_WIFI=y | ||
CONFIG_WIFI_NRF700X=y | ||
CONFIG_WIFI_NRF700X_SKIP_LOCAL_ADMIN_MAC=y | ||
# Align this with CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT | ||
CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT=10 | ||
|
||
# Wi-Fi location | ||
CONFIG_LOCATION_TRACKING_WIFI=y | ||
CONFIG_LOCATION_METHOD_WIFI=y | ||
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_GNSS=y | ||
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_WIFI=y | ||
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=y | ||
|
||
# Align this with CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT | ||
CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT=10 | ||
CONFIG_LOCATION_WORKQUEUE_STACK_SIZE=8192 | ||
|
||
# Not for LTE throughput testing | ||
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=4096 | ||
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=4096 | ||
|
||
# Scan only using offload API | ||
CONFIG_WPA_SUPP=n | ||
|
||
# For nRF9160 the default is socket interface | ||
CONFIG_NET_DEFAULT_IF_ETHERNET=y | ||
CONFIG_MBEDTLS=n | ||
CONFIG_NORDIC_SECURITY_BACKEND=n | ||
|
||
# Networking | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_NET_NATIVE=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_STATISTICS=y | ||
CONFIG_NET_STATISTICS_WIFI=y | ||
CONFIG_NET_STATISTICS_USER_API=y | ||
CONFIG_NET_CONTEXT_SYNC_RECV=y | ||
|
||
# We need 2 to ensure nrf9x_socket gets an IP address regardless of order of net_if array | ||
CONFIG_NET_IF_MAX_IPV4_COUNT=2 | ||
CONFIG_NET_IF_MAX_IPV6_COUNT=2 | ||
|
||
# Memory configurations | ||
CONFIG_NET_BUF_RX_COUNT=8 | ||
CONFIG_NET_BUF_TX_COUNT=8 | ||
CONFIG_NET_PKT_RX_COUNT=1 | ||
CONFIG_NET_PKT_TX_COUNT=1 | ||
CONFIG_NET_TX_STACK_SIZE=4096 | ||
CONFIG_NET_RX_STACK_SIZE=4096 | ||
CONFIG_NET_TC_TX_COUNT=1 | ||
CONFIG_NET_MAX_CONTEXTS=5 | ||
|
||
CONFIG_HEAP_MEM_POOL_SIZE=34000 | ||
CONFIG_MAIN_STACK_SIZE=2048 | ||
CONFIG_NET_MGMT_EVENT_STACK_SIZE=2048 | ||
|
||
# Enable external flash | ||
CONFIG_SPI_NOR_SFDP_DEVICETREE=y | ||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y |
19 changes: 15 additions & 4 deletions
19
samples/cellular/nrf_cloud_multi_service/boards/thingy91x_nrf9151_ns.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
/* Copyright (c) 2024 Nordic Semiconductor ASA | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
#include <thingy91x_wifi.dtsi> | ||
|
||
/ { | ||
aliases { | ||
temp-sensor = &bme680; | ||
ext-flash = &flash_ext; | ||
}; | ||
}; | ||
|
||
&i2c2 { | ||
bme680: bme680@76 { | ||
nordic_wlan0: nordic_wlan0 { | ||
compatible = "nordic,wlan0"; | ||
status = "okay"; | ||
}; | ||
|
||
chosen { | ||
zephyr,wifi = &nordic_wlan0; | ||
}; | ||
}; | ||
|
||
&bme680 { | ||
status = "okay"; | ||
}; |