-
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: net: aws_iot: Add support for nRF54L15 DK + nRF7002
Adds support for nRF54L15 DK in combination with nRF7002 EK. Signed-off-by: Jan Tore Guggedal <[email protected]>
- Loading branch information
1 parent
92b7c89
commit 088bd54
Showing
13 changed files
with
225 additions
and
31 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
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
89 changes: 89 additions & 0 deletions
89
samples/net/aws_iot/boards/nrf54l15dk_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Wi-Fi | ||
CONFIG_WIFI=y | ||
CONFIG_WIFI_NRF70=y | ||
|
||
# WPA supplicant | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT=y | ||
CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_INF=y | ||
|
||
# Networking | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_NET_SOCKETS=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_DNS_RESOLVER=y | ||
CONFIG_DNS_RESOLVER_AI_MAX_ENTRIES=4 | ||
|
||
# NET sockets | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_MAX_CONN=6 | ||
CONFIG_NET_MAX_CONTEXTS=5 | ||
CONFIG_NET_SOCKETS_POLL_MAX=8 | ||
CONFIG_NET_SOCKETS_OFFLOAD=n | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_CONTEXT_SNDTIMEO=y | ||
CONFIG_NET_CONTEXT_RCVTIMEO=y | ||
CONFIG_NET_MAX_CONTEXTS=3 | ||
|
||
# NET buffers | ||
CONFIG_NET_PKT_TX_COUNT=6 | ||
CONFIG_NET_PKT_RX_COUNT=6 | ||
CONFIG_NET_BUF_TX_COUNT=12 | ||
CONFIG_NET_BUF_RX_COUNT=6 | ||
CONFIG_NRF70_RX_NUM_BUFS=6 | ||
CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE=4096 | ||
CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE=4096 | ||
CONFIG_NRF70_MAX_TX_AGGREGATION=1 | ||
|
||
# MQTT | ||
CONFIG_MQTT_HELPER_PROVISION_CERTIFICATES=y | ||
|
||
# Kernel options | ||
CONFIG_POSIX_NETWORKING=y | ||
CONFIG_POSIX_MAX_FDS=21 | ||
|
||
# Shell | ||
CONFIG_SHELL=y | ||
CONFIG_SHELL_CMDS_RESIZE=n | ||
CONFIG_NET_L2_WIFI_SHELL=y | ||
|
||
# TLS | ||
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y | ||
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=1 | ||
CONFIG_NRF_SECURITY=y | ||
CONFIG_MBEDTLS=y | ||
CONFIG_MBEDTLS_ENABLE_HEAP=y | ||
CONFIG_MBEDTLS_SSL_KEEP_PEER_CERTIFICATE=n | ||
CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y | ||
CONFIG_TLS_CREDENTIALS=y | ||
CONFIG_TLS_CREDENTIALS_BACKEND_VOLATILE=y | ||
|
||
# Stack sizes | ||
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=2048 | ||
CONFIG_NET_TX_STACK_SIZE=2048 | ||
CONFIG_NET_RX_STACK_SIZE=2048 | ||
CONFIG_NET_MGMT_EVENT_STACK_SIZE=1024 | ||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=3100 | ||
CONFIG_NRF70_IRQ_WQ_STACK_SIZE=1024 | ||
CONFIG_NRF70_BH_WQ_STACK_SIZE=2300 | ||
CONFIG_SHELL_STACK_SIZE=4400 | ||
CONFIG_ISR_STACK_SIZE=512 | ||
|
||
# Heap sizes | ||
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y | ||
CONFIG_MBEDTLS_HEAP_SIZE=50000 | ||
CONFIG_HEAP_MEM_POOL_SIZE=87000 | ||
|
||
# POSIX API memory optimizations | ||
CONFIG_POSIX_FD_MGMT=n | ||
CONFIG_POSIX_MESSAGE_PASSING=n | ||
CONFIG_POSIX_THREAD_THREADS_MAX=0 |
21 changes: 21 additions & 0 deletions
21
samples/net/aws_iot/boards/nrf54l15dk_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&rram_controller { | ||
/delete-node/ cpuflpr_sram; | ||
/delete-node/ cpuflpr_rram; | ||
}; | ||
|
||
/* Adjust the cpuapp_sram to include the freed up cpuflpr_sram */ | ||
&cpuapp_sram { | ||
reg = <0x20000000 DT_SIZE_K(256)>; | ||
ranges = <0x0 0x20000000 0x20040000>; | ||
}; | ||
|
||
/* Adjust the cpuapp_rram to include the freed up cpuflpr_rram */ | ||
&cpuapp_rram { | ||
reg = <0x0 DT_SIZE_K(1524)>; | ||
}; |
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
40 changes: 40 additions & 0 deletions
40
samples/net/aws_iot/sysbuild/mcuboot/boards/nrf54l15pdk_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# TODO: Workaround, disable memory guard to avoid false faults in application after boot | ||
CONFIG_HW_STACK_PROTECTION=n | ||
|
||
CONFIG_BOOT_WATCHDOG_FEED=n | ||
|
||
# nRF54L15PDK uses SPI NOR external flash | ||
CONFIG_GPIO=y | ||
CONFIG_SPI=y | ||
CONFIG_SPI_NOR=y | ||
CONFIG_SPI_NOR_SFDP_DEVICETREE=y | ||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 | ||
|
||
# TODO: NCSDK-28931: Cannot use fprotect twice, so disable it in MCUboot to | ||
# test protecting Matter factory data. It can be enabled while there is a support | ||
# for protection more than one region. | ||
CONFIG_FPROTECT=n | ||
|
||
# required by SPI driver | ||
CONFIG_MULTITHREADING=y | ||
|
||
# Partition mamager | ||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0xF000 | ||
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y | ||
|
||
# Adjust the maximum sectors to the app image size of ~1.4MB | ||
CONFIG_BOOT_MAX_IMG_SECTORS=512 | ||
|
||
# Currently, without tickless kernel, the SYSCOUNTER value after the software | ||
# reset is not set properly and due to that the first system interrupt is not called | ||
# in the proper time - the SYSCOUNTER value is set to the value from before | ||
# reset + 1. Hence, the reboot time increases more and more. | ||
# To avoid it enable tickles kernel for mcuboot. | ||
CONFIG_TICKLESS_KERNEL=y |
26 changes: 26 additions & 0 deletions
26
samples/net/aws_iot/sysbuild/mcuboot/boards/nrf54l15pdk_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
/* Configure the partition manager to use the mx25r64 external flash memory. */ | ||
chosen { | ||
nordic,pm-ext-flash = &mx25r64; | ||
}; | ||
}; | ||
|
||
&mx25r64 { | ||
status = "okay"; | ||
}; | ||
|
||
/* Restore full RRAM and SRAM space - by default some parts are dedicated to VPR */ | ||
&cpuapp_rram { | ||
reg = <0x0 DT_SIZE_K(1524)>; | ||
}; | ||
|
||
&cpuapp_sram { | ||
reg = <0x20000000 DT_SIZE_K(256)>; | ||
ranges = <0x0 0x20000000 0x40000>; | ||
}; |
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
7 changes: 7 additions & 0 deletions
7
samples/net/aws_iot/sysbuild/mcuboot/boards/thingy91_nrf9160.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
6 changes: 6 additions & 0 deletions
6
samples/net/aws_iot/sysbuild/mcuboot/boards/thingy91x_nrf9151.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
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