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
  • Hi Tom.Fu,

    Could you please try to update nrfutil with these commands and try again?

    nrfutil self-upgrade
    nrfutil upgrade device

    Hieu

  • 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.

Reply
  • 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.

Children
Related