Build error during Modem Trace collection - nrf9160

Hello DevZone community,

For this ticket - devzone.nordicsemi.com/.../error-code-4-returned-by-lte_lc_conn_eval_params_get-function-after-12-hours

I have been trying to add modem trace CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y in my prj.conf configuration.
I am following this URL for the same.
infocenter.nordicsemi.com/.../collect_modem_trace.html

However, I'm encountering an error dduring build.

My Environment

NCS - SDK 1.9.1
Device - nrf9160 customized one

prj.conf

CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# General config
CONFIG_REBOOT=y
CONFIG_RING_BUFFER=y

# LOGGNG
CONFIG_LOG=n
CONFIG_CBPRINTF_FP_SUPPORT=y

# Console
CONFIG_PRINTK=y
CONFIG_UART_CONSOLE=n
CONFIG_SHELL=y
CONFIG_KERNEL_SHELL=y
CONFIG_DEVICE_SHELL=y
CONFIG_POSIX_CLOCK=y
CONFIG_DATE_SHELL=y
CONFIG_SHELL_STACK_SIZE=1536
CONFIG_SHELL_BACKEND_SERIAL=n

CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_BOOT_BANNER=n
CONFIG_THREAD_NAME=y

#enable RTT shell
CONFIG_USE_SEGGER_RTT=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN=32

# UART
CONFIG_UART_ASYNC_API=y

# Modem library
CONFIG_NRF_MODEM_LIB=y
CONFIG_MODEM_INFO=y

CONFIG_MODEM_KEY_MGMT=y
CONFIG_DOWNLOAD_CLIENT=y

CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_NETWORK_MODE_LTE_M=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_LOCK_BANDS=y
CONFIG_LTE_LOCK_BAND_MASK="0000000001000000000000000001"

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

# PDN library
CONFIG_PDN=y
CONFIG_PDN_SYS_INIT=n
CONFIG_PDN_DEFAULTS_OVERRIDE=y
CONFIG_PDN_DEFAULT_APN="iijmobile.biz"
CONFIG_PDN_DEFAULT_FAM_IPV4=y
CONFIG_PDN_DEFAULT_AUTH_CHAP=y
CONFIG_PDN_DEFAULT_USERNAME="mobile@iij"
CONFIG_PDN_DEFAULT_PASSWORD="iij"


# Stacks and heaps
CONFIG_HEAP_MEM_POOL_SIZE=33792

# for debug
CONFIG_DEBUG_THREAD_INFO=y

CONFIG_OPENOCD_SUPPORT=y
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_PRIVILEGED_STACK_SIZE=1024
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# Flash
CONFIG_SPI=y
CONFIG_FLASH=y

# I2C
CONFIG_I2C_NRFX=y
CONFIG_I2C=y

#IMU
CONFIG_SENSOR=y
CONFIG_ICM42605=y
CONFIG_ICM42605_TRIGGER_NONE=y

# json
CONFIG_JSON_LIBRARY=y

# float
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

# for Zmod library
CONFIG_FPU=y
CONFIG_FPU_SHARING=y
CONFIG_FP_HARDABI=y

CONFIG_CPU_LOAD=y
CONFIG_DATE_TIME=y
CONFIG_CJSON_LIB=y

# appication fota update configuration
CONFIG_FOTA_DOWNLOAD=y
CONFIG_FOTA_SOCKET_RETRIES=5
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y

#DFU 
CONFIG_DFU_TARGET=y

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_MCUBOOT_IMG_MANAGER=y

# Image manager
CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# Download client
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2048
CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y
CONFIG_DOWNLOAD_CLIENT_RANGE_REQUESTS=n
CONFIG_DOWNLOAD_CLIENT_LOG_LEVEL_DBG=n
CONFIG_DOWNLOAD_CLIENT_LOG_HEADERS=n
CONFIG_DOWNLOAD_CLIENT_TCP_SOCK_TIMEO_MS=600000 

# DFU Target
CONFIG_DFU_TARGET_STREAM=y
CONFIG_DFU_TARGET_FULL_MODEM=y

# Full modem firmware from external flash support
CONFIG_FMFU_FDEV=y
CONFIG_CDDL_GEN=y

#SPI NOR
CONFIG_SPI_NOR=y

#Stream flash
CONFIG_STREAM_FLASH=y
CONFIG_STREAM_FLASH_ERASE=y

#libmodem
CONFIG_NRF_MODEM_LIB_SYS_INIT=n

#Prevalidation is not yet supported by the modem firmware, so skip it for now.
CONFIG_FMFU_FDEV_SKIP_PREVALIDATION=n

CONFIG_NO_OPTIMIZATIONS=y
CONFIG_EXTRA_EXCEPTION_INFO=y
CONFIG_NCS_SAMPLES_DEFAULTS=n

# Crypto
CONFIG_OBERON_BACKEND=y
CONFIG_NORDIC_SECURITY_BACKEND=y
# Disable all non-used crypto
CONFIG_NRF_SECURITY_RNG=n
CONFIG_MBEDTLS_AES_C=n
CONFIG_MBEDTLS_CHACHA20_C=n
CONFIG_MBEDTLS_POLY1305_C=n
CONFIG_MBEDTLS_ECP_C=n
CONFIG_MBEDTLS_RSA_C=n
CONFIG_MBEDTLS_DHM_C=n
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_MBEDTLS_SHA384_C=n
CONFIG_MBEDTLS_SHA512_C=n
CONFIG_MBEDTLS_GCM_C=n
# This is the one we need
CONFIG_MBEDTLS_SHA256_C=y

CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=y

I am getting below build error.

-- Generating done
-- Build files have been written to: C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at C:/Users/ift_praveen/ncs/v1.9.1/nrf/modules/mcuboot/CMakeLists.txt:262 (message):
  

        ---------------------------------------------------------
        --- WARNING: Using default MCUBoot key, it should not ---
        --- be used for production.                           ---
        ---------------------------------------------------------
        



CMake Warning at C:/Users/ift_praveen/ncs/v1.9.1/zephyr/CMakeLists.txt:764 (message):
  No SOURCES given to Zephyr library:
  ..__..__..__Desktop__IM-830__WORK2.5__dev_lpwa__im830__boards__arm__im830_nrf9160


  Excluding target from build.


CMake Warning at C:/Users/ift_praveen/ncs/v1.9.1/zephyr/CMakeLists.txt:764 (message):
  No SOURCES given to Zephyr library: subsys__net__pkt_filter

  Excluding target from build.


-- Found partition manager static configuration: C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/pm_static.yml
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
Partition 'nrf_modem_lib_ctrl' is not included in the dynamic resolving since it is statically defined.
Partition 'nrf_modem_lib_rx' is not included in the dynamic resolving since it is statically defined.
Partition 'nrf_modem_lib_sram' is not included in the dynamic resolving since it is statically defined.
Partition 'nrf_modem_lib_tx' is not included in the dynamic resolving since it is statically defined.
Partition 'spm' is not included in the dynamic resolving since it is statically defined.
Partition 'spm_sram' is not included in the dynamic resolving since it is statically defined.
Partition 'sram_nonsecure' is not included in the dynamic resolving since it is statically defined.
Partition 'sram_secure' is not included in the dynamic resolving since it is statically defined.
Partition manager failed: End of last partition is after last valid address
Failed to partition region sram_primary, size of region: 262144
Partition Configuration:
nrf_modem_lib_ctrl:
  placement:
    after:
    - spm_sram
    - start
  size: 1256
nrf_modem_lib_rx:
  placement:
    after:
    - nrf_modem_lib_tx
  size: 8192
nrf_modem_lib_sram:
  size: 17640
nrf_modem_lib_trace:
  placement: {}
  size: 16384
nrf_modem_lib_tx:
  placement:
    after:
    - nrf_modem_lib_ctrl
  size: 8192
spm_sram:
  placement:
    after:
    - start
  size: 32768
sram_nonsecure:
  size: 229376
sram_primary:
  size: 211736
sram_secure:
  size: 32768

CMake Error at C:/Users/ift_praveen/ncs/v1.9.1/nrf/cmake/partition_manager.cmake:274 (message):
  Partition Manager failed, aborting.  Command:
  C:/Users/ift_praveen/ncs/v1.9.1/toolchain/opt/bin/python.exe;C:/Users/ift_praveen/ncs/v1.9.1/nrf/scripts/partition_manager.py;--input-files;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/spm/zephyr/include/generated/pm.yml;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/spm/modules/nrf/subsys/partition_manager/pm.yml.trustzone;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/mcuboot/zephyr/include/generated/pm.yml;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/zephyr/include/generated/pm.yml;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone;--regions;sram_primary;otp;flash_primary;--output-partitions;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/partitions.yml;--output-regions;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/regions.yml;--static-config;C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/pm_static.yml;--sram_primary-size;0x40000;--sram_primary-base-address;0x20000000;--sram_primary-placement-strategy;complex;--sram_primary-dynamic-partition;sram_primary;--otp-size;756;--otp-base-address;0xff8108;--otp-placement-strategy;start_to_end;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;NRF_FLASH_DRV_NAME
Call Stack (most recent call first):
  C:/Users/ift_praveen/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake:678 (include)
  C:/Users/ift_praveen/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/Users/ift_praveen/ncs/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ift_praveen/Desktop/IM-830/WORK2.5/dev_lpwa/im830/build/CMakeFiles/CMakeError.log".
ninja: error: rebuilding 'build.ninja': subcommand failed
FAILED: build.ninja 
                                                                                                           

I'm seeking assistance in understanding the possible causes of this error and any recommended solutions or workarounds to resolve it.
Any insights or experiences shared would be greatly appreciated.

Thank you in advance for your help!

Best Regards

Praveen Deshmane

Parents Reply Children
No Data
Related