Cannot Erase or Program QSPI Flash for Arria 10 Custom Board
Hi,
I am in the process of trying to bring up a custom Arria 10 board. Specifically, I am at the point where I need to program a boot image into the attached QSPI flash module (Micron MT25QU02G) using the quartus_hps utility. The first step is to erase the flash. When I issue the command, I get the following error:
$ quartus_hps -c 1 --boot 18 -o E
Info: *******************************************************************
Info: Running Quartus Prime Programmer
Info: Version 20.1.0 Build 177 04/06/2020 SC Pro Edition
Info: Copyright (C) 2020 Intel Corporation. All rights reserved.
...
Info: Processing started: Thu Nov 9 18:01:30 2023
Info: System process ID: 11272
Info: Command: quartus_hps -c 1 --boot=18 -o E
Current hardware is: USB-BlasterII [USB-1]
Hardware frequency: 6000000
Found HPS at device 2
Double check JTAG chain
HPS Device IDCODE: 0x4BA00477
AHB Port is located at port 0
APB Port is located at port 1
Double check device identification ...
Warning: Device is Arria 10 SoC
Setup non-secure transaction ...
Error: send_access_data() error while accessing AP Register
Error: Fail to READ ACCESS to the Physical Reg
Error: Fail to poll CPU 0 Debug Status and Control Register
Error: Fail to write 1 of DWORD(s) to address 0xFFD13000 through CPU 0
Error: Fail to set non-secure transaction for register 0xFFD13000
Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 115 megabytes
Info: Processing ended: Thu Nov 9 18:01:32 2023
Info: Elapsed time: 00:00:02
Info: System process ID: 11272
This error looks security related to me. I checked and it looks like register 0xFFD13000 controls the L4 peripheral firewall and can prevent access to the QSPI flash. How can I disable this security feature or set it correctly so that I can erase and program the QSPI flash?