mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-01 19:38:33 +00:00
chore(nordic): debug/prod configuration
[no changelog]
This commit is contained in:
parent
19752f781a
commit
165e75bbb7
@ -86,9 +86,11 @@ west flash
|
||||
```
|
||||
|
||||
|
||||
### Build MCUBoot bootloader
|
||||
### Build MCUBoot bootloader, debug, prod, default
|
||||
```sh
|
||||
west build ./trezor-ble -b t3w1_revA_nrf52832 --sysbuild --domain mcuboot -- -DOVERLAY_CONFIG=debug.conf
|
||||
west build ./trezor-ble -b t3w1_revA_nrf52832 --sysbuild --domain mcuboot -- -Dmcuboot_EXTRA_CONF_FILE="$PWD/trezor-ble/sysbuild/mcuboot.conf;$PWD/trezor-ble/sysbuild/mcuboot_debug.conf"
|
||||
west build ./trezor-ble -b t3w1_revA_nrf52832 --sysbuild --domain mcuboot -- -Dmcuboot_EXTRA_CONF_FILE="$PWD/trezor-ble/sysbuild/mcuboot.conf;$PWD/trezor-ble/sysbuild/prod.conf"
|
||||
west build ./trezor-ble -b t3w1_revA_nrf52832 --sysbuild --domain mcuboot
|
||||
```
|
||||
|
||||
### Build Application
|
||||
|
17
nordic/trezor/radio_test/debug.conf
Normal file
17
nordic/trezor/radio_test/debug.conf
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
# compiler
|
||||
CONFIG_DEBUG_OPTIMIZATIONS=y
|
||||
|
||||
# logging
|
||||
CONFIG_LOG=y
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
CONFIG_LOG_BACKEND_RTT=y
|
||||
|
||||
|
||||
CONFIG_ASSERT=y
|
@ -15,6 +15,7 @@ CONFIG_UART_NRFX=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_GPIO_NRFX_INTERRUPT=n
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_FIH_PROFILE_MEDIUM=y
|
||||
CONFIG_BOOT_MGMT_ECHO=y
|
||||
CONFIG_BOOT_SERIAL_CDC_ACM=y
|
||||
CONFIG_BOOT_SERIAL_UART=y
|
||||
@ -27,7 +28,7 @@ CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP=y
|
||||
CONFIG_SINGLE_APPLICATION_SLOT=y
|
||||
CONFIG_BOOT_VALIDATE_SLOT0=y
|
||||
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
CONFIG_RTT_CONSOLE=n
|
||||
CONFIG_USE_SEGGER_RTT=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
|
11
nordic/trezor/radio_test/sysbuild/mcuboot_debug.conf
Normal file
11
nordic/trezor/radio_test/sysbuild/mcuboot_debug.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
|
||||
# logging
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
7
nordic/trezor/radio_test/sysbuild/mcuboot_prod.conf
Normal file
7
nordic/trezor/radio_test/sysbuild/mcuboot_prod.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
CONFIG_BOOT_PRODUCTION_KEY=y
|
7
nordic/trezor/trezor-ble/prod.conf
Normal file
7
nordic/trezor/trezor-ble/prod.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
CONFIG_NRF_APPROTECT_LOCK=y
|
@ -27,7 +27,7 @@ CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP=y
|
||||
CONFIG_SINGLE_APPLICATION_SLOT=y
|
||||
CONFIG_BOOT_VALIDATE_SLOT0=y
|
||||
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
CONFIG_RTT_CONSOLE=n
|
||||
CONFIG_USE_SEGGER_RTT=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
|
11
nordic/trezor/trezor-ble/sysbuild/mcuboot_debug.conf
Normal file
11
nordic/trezor/trezor-ble/sysbuild/mcuboot_debug.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
|
||||
# logging
|
||||
CONFIG_RTT_CONSOLE=y
|
||||
CONFIG_USE_SEGGER_RTT=y
|
||||
|
7
nordic/trezor/trezor-ble/sysbuild/mcuboot_prod.conf
Normal file
7
nordic/trezor/trezor-ble/sysbuild/mcuboot_prod.conf
Normal file
@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
# This is a Kconfig fragment which can be used to enable debug-related options
|
||||
# in the application. See the README for more details.
|
||||
|
||||
CONFIG_BOOT_PRODUCTION_KEY=y
|
Loading…
Reference in New Issue
Block a user