Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

EPCS init and using...

Altera_Forum
Honored Contributor II
1,244 Views

Hi every members of Nios forum, 

 

I'm currently try to use my EPCS memory on my development board. 

I've not found any "easy to understand" documentation about the using of this memory. 

So when I want to read the electronic signature with the function "alt_epcs_flash_query()" 

it return to me -ENODEV (no device found). 

When Quartus II programmer I can program EPCS (so it works !!). 

 

I'm newbie in nios development system and I just want to know if a little software to demonstrate 

how to accede this memory is available somewhere ? 

 

I just wan to know how can I init my epcs controller to accede to EPCS to write and read some data 

(changing FPGA confiig data). 

 

 

Thanks a lot 

 

Etienne
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
406 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

alt_flash_fd * my_EPCS ;  //declare handle 

my_EPCS=alt_flash_open_dev(EPCS_CONTROLLER_NAME);  //init handle[/b] 

--- Quote End ---  

 

then u can read\write\erase your flash using the file descriptor "my_EPCS" and the function of the HAL. In quartus 4.2 there is a bug in the init function of the EPCS, discussed in this forum. 

bye
0 Kudos
Reply