EPCS128 to EPCQ128A provides incorrect information using alt_flash...()
Our old FPGA module has a Cyclone III with EPCS128.
Because of the Cyclone III I am forced to use Quartus 13.1.4 Build 182 03/12/2014 SJ Full Version.
Since the EPCS128 is no longer available, I switched to the EPCQ128A.
There is a NIOS IP core in the FPGA that can access the EPCx using the QSYS epcs_controller.
It does this with the API functions alt_flash…().
alt_flash_open_dev() opens the EPCS/EPCQ perfectly.
alt_get_flash_info() also returns no errors, but incorrect information regarding the erase regions of the EPCQ flash.
It is clear to me that a region on the EPCS128 delivers
region_size 0x1000000 (size of the entire flash)
number_of_blocks 0x40 (64 blocks)
block_size 0x40000 (262,144 bytes/each block).
But what I don't understand is why I get identical data for the EPCQ128A.
There I actually expect
number_of_blocks 0x100 (256 blocks)
block_size 0x10000 (65,536 bytes/each block)
I haven't found an explanation for this yet.
AN822 describes that the EPCS128 is incompatible with the EPCQ128 in terms of sector sizes and this can lead to problems when using sector erase.
However, in the case described, the feedback about the sector sizes is also incorrect.
Does the 13.1.4 patch 4.70r possibly fix this error? Where do I get this?