Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20869 Discussions

Cannot Erase or Program QSPI Flash for Arria 10 Custom Board

Richard_P
Beginner
1,086 Views

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? 

Labels (1)
0 Kudos
6 Replies
Richard_P
Beginner
1,025 Views

Hi, 

Here is an update on this issue. After making some changes/corrections to our custom FPGA designin Quartus Prime Pro, the previous security related errors have gone away. The quartus_hps utility is getting further along:

$ quartus_hps -c 1 --boot 18 -o S --exit_xip 1
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: Mon Nov 13 15:44:10 2023
Info: System process ID: 37540
Info: Command: quartus_hps -c 1 --boot=18 -o S --exit_xip=1
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 ...
Warning: Cold Reset ...
Halt CPU by setting Watchpoint
Warning: Not able to halt CPU 0
Boot Info: 3.0V QSPI Flash
Clock Select: 0
Start HPS Quad SPI flash programming ...
Initialize QSPI peripheral and flash controller ...
Assuming QSPI controller system clock is 50Mhz
QSPI controller baudrate setting: 32 (15)
Read Silicon ID of Quad SPI flash ...
Quad SPI Flash silicon ID is 0xFFFFFFFF
Error: Not able to map flash ID from flash database
Error: Quartus Prime Programmer was unsuccessful. 0 errors, 0 warnings
Error: Peak virtual memory: 115 megabytes
Error: Processing ended: Mon Nov 13 15:44:21 2023
Error: Elapsed time: 00:00:11
Error: System process ID: 37540

 

So, it looks like the quartus_hps utility is talking to the Micron MT25QU02G flash. But, the flash is reporting an invalid Silicon ID of 0xFFFFFFFF even though I am using the --exit_xip=1 option recommended in the forums when this error occurs. Any ideas as to what could be causing this error message?

 

Thanks,

Richard

0 Kudos
mabdrahi
Employee
1,014 Views

Hi Richard,


I will try at my end first.


Thank you,

Aliff


0 Kudos
mabdrahi
Employee
994 Views

Hi Richard,


Actually i have tried at my end, but i dont see the same thing as yours.

It might your custom board have design issue.


Can you recheck and compare Aria 10 devkit versus your design and also circuit.


Thank you,

Aliff



0 Kudos
mabdrahi
Employee
981 Views

Hi Richard,


Any more help needed?


Thank you,

Aliff


0 Kudos
Richard_P
Beginner
958 Views

Hi Aliff,

 

Thanks for your responses. At the moment we are fixing board issues, so no further help is needed until we get the board issues resolved.

 

Thanks again,

 

Richard

0 Kudos
mabdrahi
Employee
895 Views

Hi Richard,


I shall set this case to close pending. If you still need further assistance, you are welcome reopen this case within 20days or open a new case, someone will be right with you.

If you happened to close this case you will receive a survey. If you think you would rank your support experience less than 4 out of 5, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.

 

Thank you,

Aliff


0 Kudos
Reply