From 46efd500d99aa3784cfaa07511ddc6f134ae3dd4 Mon Sep 17 00:00:00 2001 From: Jan Kowalewski Date: Thu, 12 Dec 2024 15:52:15 +0100 Subject: [PATCH] boot: zephyr: boards: add ctcc/nrf52840 and ctcc/nrf9161 targets Add ctcc/nrf52840 and ctcc/nrf9161 board targets. Signed-off-by: Jan Kowalewski --- boot/zephyr/boards/ctcc_nrf52840.conf | 20 ++++++++++++++++++++ boot/zephyr/boards/ctcc_nrf9161.conf | 15 +++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 boot/zephyr/boards/ctcc_nrf52840.conf create mode 100644 boot/zephyr/boards/ctcc_nrf9161.conf diff --git a/boot/zephyr/boards/ctcc_nrf52840.conf b/boot/zephyr/boards/ctcc_nrf52840.conf new file mode 100644 index 000000000..ec8ea7f9f --- /dev/null +++ b/boot/zephyr/boards/ctcc_nrf52840.conf @@ -0,0 +1,20 @@ +# Disable logging +CONFIG_LOG=n +CONFIG_CONSOLE=n +CONFIG_UART_CONSOLE=n + +# MCUBoot serial configuration +CONFIG_MCUBOOT_SERIAL=y +CONFIG_BOOT_SERIAL_ENTRANCE_GPIO=n +CONFIG_BOOT_SERIAL_CDC_ACM=y +CONFIG_BOOT_SERIAL_WAIT_FOR_DFU=y +CONFIG_BOOT_SERIAL_NO_APPLICATION=y +CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=5000 +CONFIG_BOOT_USB_DFU_WAIT=n + +# Required by USB +CONFIG_MULTITHREADING=y + +# USB +CONFIG_USB_DEVICE_STACK=y +CONFIG_USB_DEVICE_REMOTE_WAKEUP=n diff --git a/boot/zephyr/boards/ctcc_nrf9161.conf b/boot/zephyr/boards/ctcc_nrf9161.conf new file mode 100644 index 000000000..da32ec9f3 --- /dev/null +++ b/boot/zephyr/boards/ctcc_nrf9161.conf @@ -0,0 +1,15 @@ +# Disable logging +CONFIG_LOG=n +CONFIG_CONSOLE=n +CONFIG_UART_CONSOLE=n + +# MCUboot serial configuration +CONFIG_MCUBOOT_SERIAL=y +CONFIG_BOOT_SERIAL_UART=y +CONFIG_BOOT_SERIAL_ENTRANCE_GPIO=n +CONFIG_BOOT_SERIAL_WAIT_FOR_DFU=y +CONFIG_BOOT_SERIAL_NO_APPLICATION=y +CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=5000 + +# SPI NOR +CONFIG_SPI_NOR=n