How to program firmware to external SPI Flash of nRF54L15

Hi Support Team 

We follow the guidance of the following link to program firmware to external SPI Flash of nRF54L15,but it failed.

https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-device/guides/programming_external_memory.html#example-for-spi-on-nrf54l15

The following screenshot is schematic of external flash connected with nRF54L15.


And the attachments are the .json file I used for the nRF Util command and the log. Could you help analyze this issue? Many thanks.

{
    "firmware_config": {
      "peripheral": "SPIM00"
    },
    "pins": {
      "sck": 26,
      "csn": 27,
      "io0": 6,
      "io1": 8,
      "io2": 67,
      "io3": 64
    },
    "flash_size": 8388608,
    "page_size": 4096,
    "sck_frequency": 8000000,
    "address_mode": "MODE24BIT"
  }
  
C:\mcDev\mc_code\l5_e1_sol\build_testuart>nrfutil device --x-ext-mem-config-file ./nrf54l15_spi_config.json program --firmware merged.hex --serial-number 69405822
error: unexpected argument '--x-ext-mem-config-file' found

  tip: a similar argument exists: '--x-qspi-config-file'

Usage: nrfutil device <--x-qspi-config-file <PATH>>

For more information, try '--help'.

C:\mcDev\mc_code\l5_e1_sol\build_testuart>

Parents Reply Children
  • I am experiencing the same problem here, and those update commands didn't fix anything:

    ninjastudio@Ninjas-Mac-Studio scan % nrfutil self-upgrade
    nrfutil is already the newest version (8.1.1)
    ninjastudio@Ninjas-Mac-Studio scan % nrfutil upgrade device
    nrfutil-device is already the newest version (2.15.1)

  • OK, the documentation needs to be cleaned up a bit...

    In one section it states the command is: 

    nrfutil device program --x-ext-mem-config-file <path_to_config_file> --firmware <hex_file> --serial-number <serial_number> [--options]

    But just a few lines below it's is corrected as:

    nrfutil device --x-ext-mem-config-file ../../nrf-probe/resources/firmware_config/nrf5340dk_qspi_config.json program --firmware data_going_to_external_flash.hex --serial-number 1050065027

    With the note:

    The --x-ext-mem-config-file option is available from the nrfutil device command level, hence program in this example appears after the flag.

  • Thank you, Application Ninja, for the update and report. I will notify the documentation maintainer of the issue.

    Please note that the --x prefix to a command or option in nRF Util denotes that it is experimental and, while rare, might change. This seems to be one of those cases. Please also keep that in mind when using experimental features in the future.

Related