Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

quartus 10.0 sp1 open epcs error

hi all,

my quatus and nios II version are 10.0 sp1

In my sopc, I add a EPCS component and cpu reset is epcs

when I run nios2-flash-programmer, there is error:

No EPCS layout data --- looking for section [EPCS-000000]

I create a "nios2-flash-override.txt", its contents as follow:

[EPCS-000000]# EPCS64N (Eon-lead-free)

sector_size = 65536

sector_count = 128

when I run nios2-flash-programmer again, there is no error

But I run my software, I find that it can't operate epcs, this is my code:

alt_flash_fd *my_epcs; //define handle

flash_region* regions;

int number_of_regions;

my_epcs = alt_flash_open_dev(EPCS_FLASH_CONTROLLER_NAME);//

if(my_epcs == NULL)

{

printf("OPen EPCS failed\n");

}

the execute result is my_epcs = NULL, that means the code can't open the epcs

why ??? Please tell me the reason. help me!
No RepliesBe the first to reply