Initial commit for nrf5340_audio
This commit is contained in:
5
sysbuild/mcuboot/app_fota.overlay
Normal file
5
sysbuild/mcuboot/app_fota.overlay
Normal file
@@ -0,0 +1,5 @@
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,code-partition = &boot_partition;
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
#include "../../../boards/nrf5340_audio_dk_nrf5340_cpuapp_fota.overlay"
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
nordic,pm-ext-flash = &mx25r64;
|
||||
};
|
||||
};
|
||||
62
sysbuild/mcuboot/prj_fota.conf
Normal file
62
sysbuild/mcuboot/prj_fota.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
#
|
||||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
||||
#
|
||||
|
||||
CONFIG_PM=n
|
||||
|
||||
CONFIG_MAIN_STACK_SIZE=10240
|
||||
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"
|
||||
|
||||
CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
|
||||
CONFIG_BOOT_ENCRYPT_IMAGE=n
|
||||
|
||||
CONFIG_BOOT_BOOTSTRAP=n
|
||||
|
||||
### mbedTLS has its own heap
|
||||
# CONFIG_HEAP_MEM_POOL_SIZE is not set
|
||||
|
||||
### We never want Zephyr's copy of tinycrypt. If tinycrypt is needed,
|
||||
### MCUboot has its own copy in tree.
|
||||
# CONFIG_TINYCRYPT is not set
|
||||
# CONFIG_TINYCRYPT_ECC_DSA is not set
|
||||
# CONFIG_TINYCRYPT_SHA256 is not set
|
||||
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_FPROTECT=y
|
||||
|
||||
### Various Zephyr boards enable features that we don't want.
|
||||
# CONFIG_BT is not set
|
||||
# CONFIG_BT_CTLR is not set
|
||||
# CONFIG_I2C is not set
|
||||
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_MODE_MINIMAL=y # former CONFIG_MODE_MINIMAL
|
||||
### Ensure Zephyr logging changes don't use more resources
|
||||
CONFIG_LOG_DEFAULT_LEVEL=0
|
||||
### Use info log level by default
|
||||
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
|
||||
### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y
|
||||
CONFIG_CBPRINTF_NANO=y
|
||||
### Use the minimal C library to reduce flash usage
|
||||
CONFIG_MINIMAL_LIBC=y
|
||||
CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT=0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
|
||||
# Flash
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_NOR=y
|
||||
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
|
||||
CONFIG_SPI_NOR_CS_WAIT_DELAY=5
|
||||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_MULTITHREADING=y
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y
|
||||
|
||||
# The network core cannot access external flash directly. The flash simulator must be used to
|
||||
# provide a memory region that is used to forward the new firmware to the network core.
|
||||
CONFIG_FLASH_SIMULATOR=y
|
||||
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
|
||||
CONFIG_FLASH_SIMULATOR_STATS=n
|
||||
Reference in New Issue
Block a user