How to use M95P32 to replace the current external flash

Hi,

We're going to use external SPI EEPROM, but which is working on the DK board's MX25R64

How to configure MCUboot&OTA using external SPI EEPROM memory?

I expect to get all the configuration processes and files that must be modified, such as overlay and conf modification methods,Thanks!

OS: windows 10
Hardware used: nrf5340 dk
example:C:\ncs\v2.4.1\nrf\samples\matter\lock

Parents
  • Hi,

    First to check: It is possible to use external flash with either QSPI or SPI.
    And you want SPI, right?

    Regards,
    Sigurd Hellesvik

  • SunHuang said:
    Can you test it with the "v2.5.2\nrf\samples\matter\lock" to confirm whether there are build errors?

    Since it is 25 days since last time I looked at this ticket:
    Could you upload what I should test with the lock sample again?
    That way we are sure we avoid misunderstandings.

  • Hi Sigurd

    The information you have requested is attached below. Please accept my apologies for the delayed response.

    -- In: C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/mcuboot/zephyr, command: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe;C:/ncs/v2.5.0/zephyr/scripts/dts/gen_defines.py;--dts;C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/mcuboot/zephyr/zephyr.dts.pre;--dtc-flags;'-Wno-unique_unit_address_if_enabled';--bindings-dirs;C:/ncs/v2.5.0/nrf/dts/bindings;C:/ncs/v2.5.0/zephyr/dts/bindings;--header-out;C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/mcuboot/zephyr/include/generated/devicetree_generated.h.new;--dts-out;C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/mcuboot/zephyr/zephyr.dts.new;--edt-pickle-out;C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/mcuboot/zephyr/edt.pickle;--vendor-prefixes;C:/ncs/v2.5.0/nrf/dts/bindings/vendor-prefixes.txt;--vendor-prefixes;C:/ncs/v2.5.0/zephyr/dts/bindings/vendor-prefixes.txt
    -- Configuring incomplete, errors occurred!
    CMake Error at C:/ncs/v2.5.0/nrf/cmake/multi_image.cmake:449 (message):
      CMake generation for mcuboot failed, aborting.  Command: 1
    Call Stack (most recent call first):
      C:/ncs/v2.5.0/nrf/cmake/multi_image.cmake:178 (add_child_image_from_source)
      C:/ncs/v2.5.0/nrf/modules/mcuboot/CMakeLists.txt:268 (add_child_image)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/CMakeFiles/CMakeOutput.log".
    See also "C:/nordic/DL02_S2MB_KPD_Small/DL02_S2MB_KPD_Small_build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-Bc:\nordic\DL02_S2MB_KPD_Small\DL02_S2MB_KPD_Small_build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION=NONE '-DBOARD_ROOT=c:/nordic/dl02_s2mb_kpd_small;.' -DCONF_FILE=c:/nordic/DL02_S2MB_KPD_Small/prj.conf -DDTC_OVERLAY_FILE=c:/nordic/DL02_S2MB_KPD_Small/boards/nrf5340dk_nrf5340_cpuapp.overlay '-Sc:\nordic\DL02_S2MB_KPD_Small'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    config.7z

  • the error message is

    "
    -- Found devicetree overlay: /home/sihe/ncs/nrf/samples/matter/lock/child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay
    You must include the configuration of eeprom_m95p32
    "

    I guess that you are missing some configurations related to eeprom_m95p32 from child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay.

  • Hi Sigurd

    I changed "child_image\mcuboot\prj.conf "and "child_image\mcuboot\boards\nrf5340dk_nrf5340_cpuapp.overlay" but other errors occurred

    config & error message.7z

Reply Children
Related