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

  • Hello Didrik, 

    Thank you for your time and reply.

    after changing the dts conf file im830_nrf9160_common.dts

    /*
     * Copyright (c) 2018-2020 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    / {
    	model = "NRF9160";
    	compatible = "im830-nrf9160";
    
    
    	/* These aliases are provided for compatibility with samples */
    	aliases {
    		led-pwm = &pwm0;
    		buzzer-pwm = &pwm1;
    	};
    };
    
    &adc {
    	status = "okay";
    };
    
    &gpiote {
    	status = "okay";
    };
    
    &gpio0 {
    	status = "okay";
    };
    
    /* PWM0 is intended for LED(PWM Serial) control */
    &pwm0 {
    	status = "okay";
    	ch0-pin = <12>;
    };
    
    /* PWM1 is intended for buzzer control */
    &pwm1 {
    	status = "okay";
    	ch0-pin = <1>;
    	ch1-pin = <0>;
    	ch1-inverted;
    };
    
    
    &uart0 {
    	current-speed = <9600>;
    	compatible = "nordic,nrf-uarte";
    	status = "okay";
    	tx-pin = <15>;
    	rx-pin = <16>;
    };
    
    
    // &i2c1 {
    // 	compatible = "nordic,nrf-twim";
    // 	status = "okay";
    // 	sda-pin = <4>;
    // 	scl-pin = <3>;
    // 	clock-frequency = <100000>;
    // };
    
    // &uart1 {
    // 	current-speed = <9600>;
    // 	compatible = "nordic,nrf-uarte";
    // 	status = "okay";
    // 	tx-pin = <19>;
    // 	rx-pin = <20>;
    // };
    
    &uart1 {
    	compatible = "nordic,nrf-uarte";
    	current-speed = <115200>;
    	status = "okay";
    	tx-pin = <19>;
    	rx-pin = <20>;
    	rts-pin = <12>;
    	cts-pin = <13>;
    	hw-flow-control;
    };
    
    &spi2 {
    	compatible = "nordic,nrf-spim";
    	status = "okay";
    	sck-pin = <8>;
    	mosi-pin = <10>;
    	miso-pin = <9>;
    	miso-pull-up;
    	cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
    	icm42605@0 {
    		compatible = "invensense,icm42605";
    		label = "ICM-42605";
    		spi-max-frequency = <1000000>;
    		accel-hz = <100>;
    		gyro-hz = <100>;
    		accel-fs = <2>;
    		reg = <0>;
    		int-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
    	};
    };
    
    
    &spi3 {
    	compatible = "nordic,nrf-spim";
    	status = "okay";
    	sck-pin = <27>;
    	mosi-pin = <28>;
    	miso-pin = <30>;
    	cs-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
    	/* Added SPI3 support for 8MBytes flash memory  */
    	w25q64jv: w25q64jv@0 {
    		compatible = "jedec,spi-nor";
    		label = "w25q64jv";
    		size = <0x8000000>; //8MBytes
    		spi-max-frequency = <40000000>;
    		reg = <0>;
    		jedec-id = [ ef 40 17 ]; 
    		wp-gpios = <&gpio0 29 0>;
    		hold-gpios = <&gpio0 26 0>;
    	};
    };
    
    &timer0 {
    	status = "okay";
    };
    
    &timer1 {
    	status = "okay";
    };
    
    &timer2 {
    	status = "okay";
    };
    
    &flash0 {
    
    	partitions {
    		compatible = "fixed-partitions";
    		#address-cells = <1>;
    		#size-cells = <1>;
    
    		boot_partition: partition@0 {
    			label = "mcuboot";
    			reg = <0x00000000 0x10000>;
    		};
    		slot0_partition: partition@10000 {
    			label = "image-0";
    		};
    		slot0_ns_partition: partition@50000 {
    			label = "image-0-nonsecure";
    		};
    		slot1_partition: partition@80000 {
    			label = "image-1";
    		};
    		slot1_ns_partition: partition@c0000 {
    			label = "image-1-nonsecure";
    		};
    		scratch_partition: partition@f0000 {
    			label = "image-scratch";
    			reg = <0x000f0000 0xa000>;
    		};
    		storage_partition: partition@fa000 {
    			label = "storage";
    			reg = <0x000fa000 0x00006000>;
    		};
    	};
    };
    
    / {
    
    	reserved-memory {
    		#address-cells = <1>;
    		#size-cells = <1>;
    		ranges;
    
    		sram0_s: image_s@20000000 {
    			/* Secure image memory */
    		};
    
    		sram0_modem: image_modem@20016000 {
    			/* Modem (shared) memory */
    		};
    
    		sram0_ns: image_ns@20020000 {
    			/* Non-Secure image memory */
    		};
    	};
    };
    
    /* Include partition configuration file */
    #include "im830_nrf9160_partition_conf.dts"
    


    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


    pm_static.yml

    EMPTY_0:
      address: 0xc000
      end_address: 0x10000
      placement:
        before:
        - mcuboot_pad
      region: flash_primary
      size: 0x4000
    app:
      address: 0x20200
      end_address: 0x88000
      region: flash_primary
      size: 0x67e00
    mcuboot:
      address: 0x0
      end_address: 0xc000
      placement:
        before:
        - mcuboot_primary
      region: flash_primary
      size: 0xc000
    mcuboot_pad:
      address: 0x10000
      end_address: 0x10200
      placement:
        align:
          start: 0x8000
        before:
        - mcuboot_primary_app
      region: flash_primary
      size: 0x200
    mcuboot_primary:
      address: 0x10000
      end_address: 0x88000
      orig_span: &id001
      - spm
      - app
      - mcuboot_pad
      region: flash_primary
      sharers: 0x1
      size: 0x78000
      span: *id001
    mcuboot_primary_app:
      address: 0x10200
      end_address: 0x88000
      orig_span: &id002
      - app
      - spm
      region: flash_primary
      size: 0x77e00
      span: *id002
    mcuboot_secondary:
      address: 0x88000
      end_address: 0x100000
      placement:
        after:
        - mcuboot_primary
        align:
          start: 0x8000
        align_next: 0x8000
      region: flash_primary
      share_size:
      - mcuboot_primary
      size: 0x78000
    otp:
      address: 0xff8108
      end_address: 0xff83fc
      region: otp
      size: 0x2f4
    spm:
      address: 0x10200
      end_address: 0x20200
      inside:
      - mcuboot_primary_app
      placement:
        before:
        - app
      region: flash_primary
      size: 0x10000


    I am able to build the application. But could not able trace the modem log.



    I also tried using different serial ports but could not able to get the modem trace log.

    My modem firmware version is 1.3.2

    Kindly help me to resolve this issue. 

    Best Regards

    Praveen Deshmane 

  • Hi Didrik,

    Kindly help me to resolve this issue. 

    Thank You.

    - Praveen Deshmane

  • Hi, and sorry for the late reply.

    Due to summer vacations, we are a bit short on staff, which sometimes make it hard to answer all the questions in a timely manner.

    What are your application doing?

    In the project you sent me previously, the modem is never initialized, and therefore no traces from the modem is expected.

  • Hello Didrik,

    Thank you for your time and reply.

    Previously I sent the project folder with only main.c and configuration files because I didn't want to share the project source code here. It's a company project and confidential.

    Is there any way to share the source code confidentially?

    I am sorry for the trouble.


    Best Regards

    Praveen Deshmane

  • Praveen Deshmane said:
    Is there any way to share the source code confidentially?

    I have made the ticket private.

    Are you running the project on a custom board or a DK?

    If you are using a DK, the pins you have selected for UART1 (which is used for the modem trace) is not routed to any of the VCOMs of the on-board debugger.

    If you are using a custom board, how is it connected to the DK that you have selected in the Cellular Monitor?

Related