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

nRF9160 PSM current consumption test problem

Hi Nordic:

I burned the AP & Modem firmware in the picture below, and found that the current consumption when entering PSM is 500μA. Please help to analyze. What caused it?

Attachment is hardware & software & log. nrf9160.docx

Many thanks

Parents
  • Hi,

     

    The base current when UART is on, is 500 uA, so when testing with at_client, this is expected. Disabling UART in at_client essentially breaks the application, so I would not recommend to optimize it further. In general, you can add "CONFIG_SERIAL=n" to the prj.conf to disable uart printing, but there's a catch with this as there's a secure and non-secure image running.

    When testing PSM with an application, remember to disable serial in the secure part, spm, as well. This can be done by adding this to the CMakeLists.txt file in your project folder, just below the "cmake_minimum_version" line:

    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/spm.conf")
      set(spm_CONF_FILE
        prj.conf
        ${CMAKE_CURRENT_LIST_DIR}/spm.conf
      )
    endif()
    
     
    
    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf")
      set(mcuboot_CONF_FILE
        prj.conf
        ${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf
      )
    endif()
    
     
    
    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
      set(mcuboot_DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
      set(spm_DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
    endif()
    

     

    then you create a file named "spm.conf", with CONFIG_SERIAL=n.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    The base current when UART is on, is 500 uA, so when testing with at_client, this is expected. Disabling UART in at_client essentially breaks the application, so I would not recommend to optimize it further. In general, you can add "CONFIG_SERIAL=n" to the prj.conf to disable uart printing, but there's a catch with this as there's a secure and non-secure image running.

    When testing PSM with an application, remember to disable serial in the secure part, spm, as well. This can be done by adding this to the CMakeLists.txt file in your project folder, just below the "cmake_minimum_version" line:

    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/spm.conf")
      set(spm_CONF_FILE
        prj.conf
        ${CMAKE_CURRENT_LIST_DIR}/spm.conf
      )
    endif()
    
     
    
    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf")
      set(mcuboot_CONF_FILE
        prj.conf
        ${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf
      )
    endif()
    
     
    
    if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
      set(mcuboot_DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
      set(spm_DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay")
    endif()
    

     

    then you create a file named "spm.conf", with CONFIG_SERIAL=n.

     

    Kind regards,

    Håkon

Children
Related