Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHPS QSPI flash programming
Hi, I have an issue with QSPI flash programming by quartus_hps utility. I use EDS 14.1 and run quartus_hps in its command line. I've made custom preloader to boot from QSPI flash and program the ...
Altera_Forum
Honored Contributor
11 years agoYep, I can. I run Altera-SoCFPGA-HardwareLib-QSPI-CV-GNU example as well. The problem arises when execution reaches alt_qspi_enable()->alt_qspi_device_rdid()->alt_qspi_stig_rd_cmd()->alt_qspi_stig_cmd_helper() function (the last one). There is a piece of code:
do
{
reg_value = alt_read_word(ALT_QSPI_FLSHCMD_ADDR);
if (!(reg_value & ALT_QSPI_FLSHCMD_CMDEXECSTAT_SET_MSK))
{
break;
}
} while (timeout-- || infinite);
if (timeout == (uint32_t)-1 && !infinite)
{
status = ALT_E_TMO;
} where the execution hangs till timeout. It seems the code fails to read something from flash via QSPI. In the time of polling flash via QSPI there is no activity on the bus, I checked it with oscilloscope.