Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | Downloading program to Nios

There are 5 messages in this thread.

You are currently looking at messages 0 to 5.

Downloading program to Nios - John - 2004-08-01 04:16:00

Dear all,

I am trying to download hello_nios.srec to nios, using the sdk by
typing the following command:

nr hello_nios.srec 

I am following the software tutorials provided by altera. for some
reason, it is not working, it gives:

[SOPC Builder]$ nr hello_nios.srec

nios-run: Ready to download hello_nios.srec

nios-run: Downloading......................
...........................................
...........................................

nios-run: Terminal mode (Control-C exits)
-----------------------------------------

and it stops here, and the program always not downloaded...

anyone has an idea what could be the problem...???

regards,
john



Re: Downloading program to Nios - Subroto Datta - 2004-08-01 10:30:00

Before downloading the srec, make sure that you
have programmed the FPGA
device on the board using the programming file generated by Quartus.

Hope this helps.

- Subroto Datta
Altera Corp.



Re: Downloading program to Nios - John - 2004-08-01 23:24:00

"Subroto Datta"
<s...@altera.com> wrote in message
news:<D87Pc.3805$t...@newssvr32.news.prodigy.com>...
> Before downloading the srec, make sure that you have programmed the FPGA
> device on the board using the programming file generated by Quartus.
> 
> Hope this helps.
> 
> - Subroto Datta
> Altera Corp.

Dear Subroto,

Do u mean the .sof file?

if you meant the .sof file, yes I did download it to the stratix chip
before running the .srec!

Thank you,
john
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.

Re: Downloading program to Nios - Victor Schutte - 2004-08-02 07:44:00

Before downloading type in:

nr -t


Enter a view times to see if NIOS dumps memory. If nothing happens check you
port/cable. Make sure the pins are correctly connected to the Rx and TX via
your FPGA.

Did you successfully downloaded a program before?


Looking at your 1st post it seems that if was actually downloading. If it
downloads and then stops/terminates then your program is crashing. Are you
compiling standard examples on the dev. board or have you modified your
hello_nios.c or running on your own board? One of the main problems I have
found was a dry joint/ missing pin on one of the addr/data lines. The
program downloads , but the memory is only receiving garbage. After
completion the Go command sends it to the execution point where it basically
runs random code. To verify this make sure you can do the 'nr -t' thing. If
you can then check your target memory e.g. 0x1000000  with "m1000000". If it
dumps memory then try and change it e.g. "m1000000:1234". Recheck the memory
with "m1000000" to verify that the memory is writeable and that the correct
data is stored. Also make sure that the next memory word is not altered
(very common).

Good luck

Victor

"John" <j...@hotmail.com> wrote in message
news:4...@posting.google.com...
> "Subroto Datta" <s...@altera.com> wrote in message
news:<D87Pc.3805$t...@newssvr32.news.prodigy.com>...
> > Before downloading the srec, make sure that you have programmed the FPGA
> > device on the board using the programming file generated by Quartus.
> >
> > Hope this helps.
> >
> > - Subroto Datta
> > Altera Corp.
>
> Dear Subroto,
>
> Do u mean the .sof file?
>
> if you meant the .sof file, yes I did download it to the stratix chip
> before running the .srec!
>
> Thank you,
> john



Re: Downloading program to Nios - John - 2004-08-03 02:17:00

thx Victor, it is working now.

Best regards,
John

"Victor Schutte" <v...@mweb.co.za> wrote in message
news:<cel9fb$e5u$1...@ctb-nnrp2.saix.net>...
> Before downloading type in:
> 
> nr -t
> 
> 
> Enter a view times to see if NIOS dumps memory. If nothing happens check you
> port/cable. Make sure the pins are correctly connected to the Rx and TX via
> your FPGA.
> 
> Did you successfully downloaded a program before?
> 
> 
> Looking at your 1st post it seems that if was actually downloading. If it
> downloads and then stops/terminates then your program is crashing. Are you
> compiling standard examples on the dev. board or have you modified your
> hello_nios.c or running on your own board? One of the main problems I have
> found was a dry joint/ missing pin on one of the addr/data lines. The
> program downloads , but the memory is only receiving garbage. After
> completion the Go command sends it to the execution point where it basically
> runs random code. To verify this make sure you can do the 'nr -t' thing. If
> you can then check your target memory e.g. 0x1000000  with "m1000000". If
it
> dumps memory then try and change it e.g. "m1000000:1234". Recheck the
memory
> with "m1000000" to verify that the memory is writeable and that the
correct
> data is stored. Also make sure that the next memory word is not altered
> (very common).
> 
> Good luck
> 
> Victor
> 
> "John" <j...@hotmail.com> wrote in message
> news:4...@posting.google.com...
> > "Subroto Datta" <s...@altera.com> wrote in message
>  news:<D87Pc.3805$t...@newssvr32.news.prodigy.com>...
> > > Before downloading the srec, make sure that you have programmed the FPGA
> > > device on the board using the programming file generated by Quartus.
> > >
> > > Hope this helps.
> > >
> > > - Subroto Datta
> > > Altera Corp.
> >
> > Dear Subroto,
> >
> > Do u mean the .sof file?
> >
> > if you meant the .sof file, yes I did download it to the stratix chip
> > before running the .srec!
> >
> > Thank you,
> > john