Is it possible to store code in on-board QSPI memory using commands of the DAP for cortex M-3 Design start Arty A-7? Browsed the commands and found nothing so far. Or it is the only one way to write the QSPI is to write it with combined .bit & .elf using dedicated programming tool?
My understanding is that the onboard QSPI is not generally accessible to program from the user IP in the FPGA - it is primarily used to boot the FPGA and initialise the fabric. This means there is no way that the DAP can write to this FPGA (certainly not trivially).
More particularly, in order to change the initialisation values of the ITCM block ram, the .bit file contents will need to be modified since this is what determines the block ram initialisation.
Hi and thanks for the interest on the topic. I certainly disagree that onboard QSPI is not accessible for user IP. Xilinx do offer AXI QSPI IP, yet another example for customer QSPI controller you can find here. Both controllers support the Execute In-Place (XIP) feature, so no block-RAM shadowing is needed for code execution. To store the code however is not trivial, as you noticed.