Forum Discussion

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

EPCS init and using...

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    <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