How to flash binary into nRF5340 DK external flash using nrfjprog command line tools.

Hello

I am working on to flash my firmware binary into external flash by using nrfjprog commandline tools.

I have used below command to program and verify the external flash programming.

1) nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --log abc.log

2) nrfjprog --family NRF53 --verify zephyr.hex --log abc.log

But it gives below error, can anyone tell me what command should I have to use to program the external flash?

Parents
  • Hi,

    Command qspieraseall can be used for erasing external flash.

    nrfjprog --qspieraseall


    Afterwards, you can proceed to programming the application. When programming, you could try adding --verify to the first line, like this

    nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --verify

    After you erased external flash, you could also specify the core you want to use when programming

    nrfjprog --family NRF53 --coprocessor CP_APPLICATION --program zephyr.hex --qspisectorerase --verify


    Please let me know the results of the above-mentioned approaches.

    Best regards,
    Dejan

  • nrfjprog --qspieraseall

    nrfjprog --family NRF53 --program zephyr.hex --qspichiperase --verify

    nrfjprog --family NRF53 --coprocessor CP_APPLICATION --program zephyr.hex --qspisectorerase --verify

    The above command works for me now, I am not sure why it was not working previously, I had change nothing in my system.

    Thanks,

    Kaushik

Reply Children
Related