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

EPCQ, Stratix V and Nios Flash Programmer issue

Altera_Forum
Honored Contributor II
1,154 Views

I have a custom Stratix V design with EPCQ256 connected in x4 mode. 

I can program the EPCQ through the FPGA with Quartus Programmer, but can't use the Nios Flash Programmer. 

 

My epcq ip core is at address 0x40000, so according to Table 5-1 of the guide the register should be at 0x40400 

 

nios2-flash-programmer complains thusly: 

 

Looking for EPCS registers at address 0x00040400 (with 32bit alignment) 

Initial values: 00000019 00000019 00000260 00000000 00000019 00000001 

Not here: reserved fields are non-zero 

 

I can use either the Nios or a JTAG Avalon master to examine these registers immediately after a reset, and some of these registers are never 0. 

 

However, I can run a Nios program and use the HAL routines (alt_flash_open_dev, alt_epcs_flash_get_info) to successfully open /dev/epcq and initialize it, so the HAL drivers don't find anything to complain about. 

The register contents are almost the same before and after opening and closing the device: 

reg offset before after 

register 100 0x00000019 0x00000019 

register 101 0x00000019 0x00000019 

register 102 0x00000260 0x00000260 

register 103 0x00000000 0x00000000 

register 104 0x00000019 0x00000019 <===== is this the problem? 

register 105 0x00000001 0x00000001 

register 106 0x00000019 0x00000000 

 

Any ideas? If register 104 is the problem, what could cause it not to read 0? Why don't the HAL routines complain? 

 

I'm using Quartus II 13.0, with patches 0.23 and 0.24 installed.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
394 Views

I have created a small reference design for my board that does work. It doesn't have all the peripherals and clock domain crossings of my full design, and runs at 50 MHz rather than 100 MHz. All the fitter and assembler settings are the same between the designs.

0 Kudos
Altera_Forum
Honored Contributor II
394 Views

I got this from Altera support: 

 

Due to current resource constraints, there is no plan to enable Nios II Flash Programmer to program EPCQ256 device as of now. The workaround is to use Quartus Programmer tool instead.  

 

:(
0 Kudos
Altera_Forum
Honored Contributor II
394 Views

Hello crabbyjacket, 

 

Please can you let me know what controller have used for epcq x4 mode. I am looking for a controller but could not find one.  

I have a epcq128 device that in x4 AS mode. Please can you let me know what are the components that I need to use from the MegaWizard. 

Thank you in advandce. 

 

Jayesh Tanwani
0 Kudos
Altera_Forum
Honored Contributor II
394 Views

Hey,  

One more help. Please can you share the deisgn's .qar for reference.  

If possible please can you mail it to jktanwani 'at' gmail 'dot' com 

 

Thank you, 

Jayesh Tanwani.
0 Kudos
Altera_Forum
Honored Contributor II
394 Views

Although the device is connected in x4, I'm using the Altera IP which only supports x1 in user mode.

0 Kudos
Altera_Forum
Honored Contributor II
394 Views

Hey, 

Thanks for such a quick reply.  

Is your design working fine? 

 

Thank you, 

Jayesh Tanwani
0 Kudos
Altera_Forum
Honored Contributor II
394 Views

I still have the problems noted in this thread and in this one about reconfiguration (http://www.alteraforum.com/forum/showthread.php?t=41429). 

 

It's usable, but very quirky. I think my problems are more related to Stratix V than being specific to the EPCQ IP.
0 Kudos
Reply