Hello,
We would like to program the external flash connected to the nRF5340 via SWD during manufacturing.
Is this possible? Do you have any documentation that explains how to do it?
Thank you,
Hello,
We would like to program the external flash connected to the nRF5340 via SWD during manufacturing.
Is this possible? Do you have any documentation that explains how to do it?
Thank you,
Hi,
If your external flash is connected via QSPI with the dedicated pins as shown here under "Recommend usage":
https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html
Then you shall be able to use nrfjprog to program the QSPI:
nrfjprog --program <qspi_content.hex> --verify -f nrf53
This assumes that the input .hex file is offset'ed to the XIP area:
https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/memory/appmem.html
You can then use nrfjprog --readqspi readback.hex -f nrf53 to verify the written content.
Kind regards,
Håkon
Hi,
If your external flash is connected via QSPI with the dedicated pins as shown here under "Recommend usage":
https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/pin.html
Then you shall be able to use nrfjprog to program the QSPI:
nrfjprog --program <qspi_content.hex> --verify -f nrf53
This assumes that the input .hex file is offset'ed to the XIP area:
https://docs.nordicsemi.com/bundle/ps_nrf5340/page/chapters/memory/appmem.html
You can then use nrfjprog --readqspi readback.hex -f nrf53 to verify the written content.
Kind regards,
Håkon