Error in SDK v3.0.1 when flashing: unexpected argument --x-ext-mem-config-file found

When flashing with SDK v3.0.1 the following error occurs:


-- west flash: using runner nrfutil
-- runners.nrfutil: mass erase requested
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: *****\firmware\observer\build\merged.hex
error: unexpected argument '--x-ext-mem-config-file' found

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

Usage: nrfutil device <--json|--json-pretty|--skip-overhead> <--json|--json-pretty> <--x-qspi-config-file <PATH>>

For more information, try '--help'.
-- runners.nrfutil: Board with serial number 1050202762 flashed successfully.

If I use Toolchain and SDK v2.9.1 it works without problems:

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: reset after flashing requested
-- runners.nrfjprog: Flashing file: *****\firmware\observer\build\merged.hex
[ #################### ]   0.304s | Erase file - Done erasing                                                          
[ #################### ]   0.544s | Program file - Done programming                                                    
[ #################### ]   0.553s | Verify file - Done verifying                                                       
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 1050202762 flashed successfully.

Parents
  • Hello Marko,

    I am able to see the same error as you, but as mentioned by Libor Votocek, the nrfutil upgrade device command resolved my issue. I am also on Windows 11. I am sharing the logs where I saw the error message and then succeeded in flashing after running the command.

    Flashing build to 683816873
    C:\WINDOWS\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v3.0.0\zephyr\samples\basic\blinky\build --dev-id 683816873 --erase"

    -- west flash: rebuilding
    [0/5] Performing build step for 'blinky'
    ninja: no work to do.
    [2/5] No install step for 'blinky'
    [3/5] Completed 'blinky'
    [4/5] cmd.exe /C "cd /D C:\ncs\v3.0.0\zephyr\samples\basic\blinky\build\_sysbuild && C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.exe -E true"
    -- west flash: using runner nrfutil
    -- runners.nrfutil: mass erase requested
    -- runners.nrfutil: reset after flashing requested
    -- runners.nrfutil: Flashing file: C:\ncs\v3.0.0\zephyr\samples\basic\blinky\build\merged.hex
    error: unexpected argument '--x-ext-mem-config-file' found

    Usage: nrfutil device <--json|--json-pretty|--skip-overhead> <--json|--json-pretty>

    For more information, try '--help'.
    -- runners.nrfutil: Board with serial number 683816873 flashed successfully.
    * Terminal will be reused by tasks, press any key to close it.

    * Executing task: nRF Connect: Flash: blinky/build (active)

    Flashing build to 683816873
    C:\WINDOWS\system32\cmd.exe /d /s /c "west flash -d c:\ncs\v3.0.0\zephyr\samples\basic\blinky\build --dev-id 683816873 --erase"

    -- west flash: rebuilding
    [0/5] Performing build step for 'blinky'
    ninja: no work to do.
    [2/5] No install step for 'blinky'
    [3/5] Completed 'blinky'
    [4/5] cmd.exe /C "cd /D C:\ncs\v3.0.0\zephyr\samples\basic\blinky\build\_sysbuild && C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.exe -E true"
    -- west flash: using runner nrfutil
    -- runners.nrfutil: mass erase requested
    -- runners.nrfutil: reset after flashing requested
    -- runners.nrfutil: Flashing file: C:\ncs\v3.0.0\zephyr\samples\basic\blinky\build\merged.hex
    -- runners.nrfutil: Erasing non-volatile memory (ERASEALL)
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Reset
    -- runners.nrfutil: Board with serial number 683816873 flashed successfully.
    * Terminal will be reused by tasks, press any key to close it.

    Kind Regards,

    Abhijith

  • yes, its completely worked for me Smile 

Reply Children
No Data
Related