Forum Discussion

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

flash usage

I'm trying to follow the Altera DE2-115 with Linux sample from this link (http://www.alterawiki.com/wiki/linux_with_mmu_on_veek/t-pad#unfortunately.2c_if_you_don.27t_have_veek.2ft-pad_kit.2c_but_you_have_de2-115...).

The first part works but then I get


$ nios2-flash-programmer --epcs --base=0x0a001800 tPad_Selector.flash --debug
Reading override file "/opt/intelFPGA_lite/16.1/nios2eds/bin/nios2-flash-override.txt"
Using cable "USB-Blaster ", device 1, instance 0x00
Resetting and pausing target processor: 
OK
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x0A001800 (with 32bit alignment)
  Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
  Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x0A001900 (with 32bit alignment)
  Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C
  Not here: reserved fields are non-zero

Can you help me? Why doesn't it work?

12 Replies

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

    What hardware are you using? Is it a DE2-115 or are you simply using that link for reference?

    If it's you own hardware - what EPCS device are you using? And, if necessary, does it have an entry in the nios-flash-override file?

    If you're on a DE2-115 board then I suspect you've specified your base and/or boot addresses wrong when you've configured your Nios. Refer to one of the examples that come with the kit for reference.

    Cheers,

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

    Hi,

    There are few possibilities based on the error message, usually this is due to the flash programmer not able to find the EPCS flash.

    Please check the base address, and make sure the HW connections are OK.