SLM SDK Ver 2.7.0 doesn't work without external flash?

Hi,

I have been debugging with Serial LTE Modem(SLM) without an external flash .

I made the circuit of nRF9160 (SICA) without the external flash (MX25R6435F?) , I would like to work the latest version SLM without the external flash.

I wrote the fimware with the application version(XSLMVER:'2.7.0') , but the firmware of nRF9160 didn't say "Ready", it doesn't seem to work well.

But, the fimware with the application version(XSLMVER:'2.4.0') works well without the external flash.

On debugging this, I found that SLM seems to access the external flash because the signal from nRF9160 to the external flash confirmed.

Does the SLM require the external flash? I don't know why SLM doesn't work on XSLMVER:'2.7.0'

If possible, would you tell me why to need the external flash and how to fix(avoid the external flash).

Best regards.

  • Sorry for the late replying.

    Building slm "(omitted the PATH)"
    
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/Users/shibuta/project_2024/develop/workspace7/slm
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/ncs/v2.7.0/zephyr/.cache
    -- Zephyr version: 3.6.99 (C:/ncs/v2.7.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.7.0/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/ncs/v2.7.0/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Found devicetree overlay: C:/Users/shibuta/project_2024/develop/workspace7/slm/boards/nrf9160dk_nrf9160_ns.overlay
    -- Found devicetree overlay: C:/Users/shibuta/project_2024/develop/workspace7/slm/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Generated zephyr.dts: C:/Users/shibuta/project_2024/develop/workspace7/slm/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/shibuta/project_2024/develop/workspace7/slm/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/shibuta/project_2024/develop/workspace7/slm/build/zephyr/dts.cmake

    the continue is here.

    warning: MQTT_LIB (defined at subsys/net/lib/mqtt/Kconfig:6) has direct dependencies NETWORKING with value n, but is currently being y-selected by the following symbols:
    Parsing C:/Users/shibuta/project_2024/develop/workspace7/slm/Kconfig
    Loaded configuration 'C:/Users/shibuta/project_2024/develop/workspace7/slm/build/zephyr/.config'
     - SLM_MQTTC (defined at C:/Users/shibuta/project_2024/develop/workspace7/slm\src/mqtt_c/Kconfig:6), with value y, direct dependencies y (value: y)
    
    warning: TFTP_LIB (defined at subsys/net/lib/tftp/Kconfig:6) has direct dependencies NETWORKING with value n, but is currently being y-selected by the following symbols:
     - SLM_TFTPC (defined at C:/Users/shibuta/project_2024/develop/workspace7/slm\src/ftp_c/Kconfig:11), with value y, direct dependencies y (value: y)
    
    warning: MQTT_LIB_TLS (defined at subsys/net/lib/mqtt/Kconfig:27) has direct dependencies MQTT_LIB && NETWORKING with value n, but is currently being y-selected by the following symbols:
     - SLM_MQTTC (defined at C:/Users/shibuta/project_2024/develop/workspace7/slm\src/mqtt_c/Kconfig:6), with value y, direct dependencies y (value: y)
    
    warning: HTTP_CLIENT (defined at subsys/net/lib/http/Kconfig:25) has direct dependencies NETWORKING with value n, but is currently being y-selected by the following symbols:
     - SLM_HTTPC (defined at C:/Users/shibuta/project_2024/develop/workspace7/slm\src/http_c/Kconfig:6), with value y, direct dependencies y (value: y)
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/ncs/v2.7.0/zephyr/cmake/modules/kconfig.cmake:392 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.7.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
      C:/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/shibuta/project_2024/develop/workspace7/slm/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/shibuta/project_2024/develop/workspace7/slm/build/CMakeFiles/CMakeError.log".
    FAILED: build.ninja
    
    C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.exe --regenerate-during-build -SC:\Users\shibuta\project_2024\develop\workspace7\slm -BC:\Users\shibuta\project_2024\develop\workspace7\slm\build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    
    FATAL ERROR: command exited with status 1:
    

    Best regards for details information.

  • By the way, I found another way to solve this problem,
    I deleted the "statement" of  the arduino_spi in a devicetree file,
    it was from 'slm/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay'

    Deleted was below.

    /* Enable external flash */
    /*
    &arduino_spi {
      mx25r64: mx25r6435f@1 {
     status = "okay";
      };
    };
    */
    
    &uart0 {
      /delete-property/ hw-flow-control;
    };Code


    And then, this problem solved (SLM begin replying) !
    I suppose the problem seems to have something with 'whether arduino_spi or not'.
    In addition this, I excepted the flash on the hardware nrf9160 side.
    How do you know anything else about the solution?

    Best regards.

Related