This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 disable Bootloader and SPM uart console print

I want to disable MCUBoot, SPM debug log on UART. 

CONFIG_BSD_LIBRARY=y
CONFIG_GPIO=n
CONFIG_SERIAL=y
#CONFIG_STDOUT_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_AT_HOST_LIBRARY=n
CONFIG_TEST_RANDOM_GENERATOR=y
#CONFIG_HW_STACK_PROTECTION=y
CONFIG_REBOOT=y
CONFIG_NETWORKING=y
CONFIG_NET_BUF_USER_DATA_SIZE=1
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_RAW_MODE=y
#CONFIG_TRUSTED_EXECUTION_NONSECURE=y
CONFIG_LOG=n
CONFIG_LOG_DEFAULT_LEVEL=4

# Stacks and heaps
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_MAIN_STACK_SIZE=16384

# LTE link control
CONFIG_LTE_LINK_CONTROL=n
CONFIG_NO_OPTIMIZATIONS=y

CONFIG_MQTT_LIB=y
CONFIG_MQTT_LIB_TLS=y
#CONFIG_PROVISION_CERTIFICATES=y
#CONFIG_CERTIFICATES_FILE="certificates.h"


# SPI
#CONFIG_SPI=y
#CONFIG_SPI_SLAVE=y
#CONFIG_SPI_3_NRF_SPIS=y
# 2 = slave only
#CONFIG_SPI_3_OP_MODES=2
#CONFIG_SPI_ASYNC=y

# Application Upgrade support
CONFIG_BOOTLOADER_MCUBOOT=y

# Image manager
CONFIG_IMG_MANAGER=y
CONFIG_FLASH=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_DFU_TARGET=y

Parents
  • D:\ncs\nrf\subsys\spm\Kconfig

    You can find "config SPM_BOOT_SILENTLY" at line 38

    "default n" change to "default y" in line 40.

    close your project in SES.

    IMPORTANT: delete build_nrf9160_pca10090ns folder in your project.

    Open your project and build it again.

    Here is my bootloader log:

    \0\0\0\0***** Booting Zephyr OS build v2.0.99-ncs1 *****
    ***** Booting Zephyr OS build v2.0.99-ncs1 *****

Reply
  • D:\ncs\nrf\subsys\spm\Kconfig

    You can find "config SPM_BOOT_SILENTLY" at line 38

    "default n" change to "default y" in line 40.

    close your project in SES.

    IMPORTANT: delete build_nrf9160_pca10090ns folder in your project.

    Open your project and build it again.

    Here is my bootloader log:

    \0\0\0\0***** Booting Zephyr OS build v2.0.99-ncs1 *****
    ***** Booting Zephyr OS build v2.0.99-ncs1 *****

Children
No Data