Forum Discussion

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

Base Address of EPCS

Forgive me if this should be something I should know already or should be obvious, I've only been at this a short time now... I'm having a bit of trouble as I try to do my first programming of the EPCS device on my DE2-70 board. I'm following the tutorial on the Nios Wiki (http://www.nioswiki.com/operatingsystems/uclinux/epcsguide) which seems pretty strait forward. I'm at the point where the SREC file is programmed and I need the base address of the EPCS chip from SOPC builder. I'm using one of the demonstration projects from the new CD Terasic just released for the board (v1.2 fixed some projects for use with Quartus 9.0) as a starting point to get something working.

The DE2_70_NET project contains a DE2_70_SOPC.sopc file, but when I open it in SOPC builder, there is no EPCS component to be found. For any of the demo projects, for that matter. So I tried omitting the address but it obviously complained that it needed it to program the device.

Do I have to add the component in SOPC builder?

Is it required that it's in the SOPC project or can I just feed it the physical address?

How do I find this address? Documentation, a scan of the board's memory/IO map?

I would think it would be the same for every project I use with the board but I need a little help getting this going. Someone who knows the board could probably tell me what I'm failing at.

Anyway, thanks in advance for any help and advice!

3 Replies

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

    Hippo,

    Thanks for the reply. I might try adding the EPCS device myself. Does it serve any other benefit to add it to my system's design other than allowing me to program my FPGA config to it using this technique? Does it then become available for read/write from uClinux?

    Anyway, I'll toy around with it later tonight and post back to give this thread some closure if I have any decent progress.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you add an epcs controller, you will be able to access it as mtd under Linux/uClinux. That means, you may update the sof like this,

    cp your_fpga.img /dev/mtd0 # assume epcs is mtd0# your_fpga.img is msb<->lsb byte reversed from rbf

    - Hippo