Forum Discussion
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
Honored 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. - Altera_Forum
Honored 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
Honored Contributor
Yes, it's my own DE2-115 and I'm trying to run Linux. The output from jtagconfig
$ jtagconfig 1) USB-Blaster [2-4] 020F70DD EP3C120/EP4CE115 - Altera_Forum
Honored Contributor
--- Quote Start --- 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. --- Quote End --- The HW connections seem OK because jtagconfig reports the connection is there. But how can I check the base address? I don't have much more than what is online about DE2-115. I got the actual board but I don't think that I got a CD or any other "reference designs". I just want to try and run Linux with it. - Altera_Forum
Honored Contributor
Download the resource cd from here (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=139&no=502&partno=4). You may need to register.
I'm sure the H/W connections are fine - I'm not doubting the jtag connections. The base address is specified when you put your Qsys system together and instantiate the EPCS - assuming that's what you've done. Based on the fact you're trying to use 'nios2-flash-programmer' I hope you have a Nios in your system and an EPCS. Download the CD and look at some of the examples - there are quite a few you should be able to look for guidance. Cheers, Alex - Altera_Forum
Honored Contributor
I don't understand why I constantly must start over and with something else.
I try both this sample and the other with mmu and Linux and nothing works. There is absolutely no sustainability in the releases and nothing works for DE2-115. Been trying for weeks and all I could was get some pre-built uClinux running with a shell that had only root access. Altera, you don't supply working software. - Altera_Forum
Honored Contributor
--- Quote Start --- Download the resource cd from here (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=139&no=502&partno=4). You may need to register. I'm sure the H/W connections are fine - I'm not doubting the jtag connections. The base address is specified when you put your Qsys system together and instantiate the EPCS - assuming that's what you've done. Based on the fact you're trying to use 'nios2-flash-programmer' I hope you have a Nios in your system and an EPCS. Download the CD and look at some of the examples - there are quite a few you should be able to look for guidance. Cheers, Alex --- Quote End --- I don't need to put together something with Qsys because I use a prebuilt system. It's already loading
I'm trying to run the nios2-flash-programmer and I don't need to start over with something else.Info (209060): Started Programmer operation at Sun Mar 19 02:02:40 2017 Info (209016): Configuring device index 1 Info (209017): Device 1 contains JTAG ID code 0x020F70DD Info (209007): Configuration succeeded -- 1 device(s) configured Info (209011): Successfully performed operation(s) Info (209061): Ended Programmer operation at Sun Mar 19 02:02:46 2017
What are the possibilities to actually use the example with DE2-115 and not something completely different?nios2-flash-programmer --epcs --base=0x0a001800 tPad_Selector.flash Using cable "USB-Blaster ", device 1, instance 0x00 Resetting and pausing target processor: OK No EPCS layout data - looking for section Unable to use EPCS device Leaving target processor paused - Altera_Forum
Honored Contributor
debug output
nios2-flash-programmer --debug --epcs --base=0x0a001800 tPad_Selector.flash 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 Looking for EPCS registers at address 0x0A001A00 (with 32bit alignment) Initial values: 108001C4 1004D0FA 002EE03A 003F9C06 002EE03A 003F9506 Not here: reserved fields are non-zero Looking for EPCS registers at address 0x0A001B00 (with 32bit alignment) Initial values: 00000000 00000000 00000000 00000000 00000000 00000000 Not here: SPI_SLAVE_SEL has 0 valid bits (should be between 1 and 16) Looking for EPCS registers at address 0x0A001C00 (with 32bit alignment) Initial values: 00000000 00000000 00000260 00000000 00000000 00000001 Valid registers found EPCS signature is 0x16 EPCS identifier is 0x010216 No EPCS layout data - looking for section Unable to use EPCS device Leaving target processor paused - Altera_Forum
Honored Contributor
Can you help me or are you again going to point at a haystack and tell me to look for a needle?
The examples from Altera with the reference designs are a haystack and it is impossible to find anything relevant. Please notice that I'm trying to run one (1) command and program the flash memory. How difficult can it get? Will it take me decades? - Altera_Forum
Honored Contributor
It'll take you decades to get a supportive response, from the people who offer their own time to support this forum, if you continue to create posts like that. Stop moaning.
The debug output in your latter post contains the info needed for an answer. Add the following lines to your "nios2-flash-override.txt" file in your {QuartusInstalledFolder}\nios2eds\bin folder.
If the file's not there create it. Alex# EPCS64N(lead-free) sector_size = 65536 sector_count = 128