Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

a problem in uploading

Altera_Forum
Honored Contributor II
1,431 Views

i created a uCLinux kernel project in NIOS II with microtronics plugin, and it was built successfully.  

but when i tried to upload it to the board through jtag, the nios terminal show this: 

"------------------------------------------------ 

Microtronix Linux Extensions 

Version 1.4, Built June 20, 2005 

------------------------------------------------ 

(note: only Altera-provided flash components will 

work, since install.ptf was not found. This will 

probably be fine for you.) 

The flash programmer has been updated. Please see the 

documentation for instructions on how to update your command line. 

 

The flash programmer has been updated. Please see the 

documentation for instructions on how to update your command line. 

 

usage: nios2-flash-programmer [-h/--help] [-c/--cable <cable name>] 

[-d/--device <device index>] [-i/--instance <instance>] 

[-s/--sidp <address>] [-I/--id <id>] [-t/--timestamp <timestamp>] 

-b/--base <address> [-e/--epcs] 

<action> [-g/--go] 

 

actions can be either:  

[--erase-all | --erase <bytes>] [--no-keep-nearby] [--verify] <file>* 

--read <filename> [--read-bytes <start>+<size>] 

 

-h/--help Print this message 

-Q/--quiet Don&#39;t print anything if everything works 

--debug Print debug information 

 

-c/--cable <cable name> Specifies which JTAG cable to use (not needed if 

you only have one cable) 

-d/--device <device index> Specifies in which device you want to look for the 

Nios II debug core (1 = device nearest TDI etc.) 

-i/--instance <instance> Specifies the INSTANCE value of the debug core 

(not needed if there is exactly one on the chain) 

 

-s/--sidp <address> Base-address of System ID peripheral on target 

-I/--id <system-id-value> Unique ID code for target system 

-t/--timestamp <time-stamp> Timestamp for target-system (when last generated) 

--accept-bad-sysid Continue even if the system ID comparison fails 

 

-b/--base <address> Base address of FLASH/EPCS to operate on 

-e/--epcs This operation is on an EPCS flash 

-E/--erase <start>+<size> Erase a range of bytes in the flash, or the entire 

--erase-all flash before/instead of programming it. 

-P/--program Program flash from the input files (the default) 

--no-keep-nearby Don&#39;t preserve bytes which need to be erased but 

which aren&#39;t specified in the input file 

-Y/--verify Verify that contents of flash match input files 

<filename>* The names of the file(s) to program or verify 

 

-R/--read <file> Read flash contents into file 

-B/--read-bytes <start>+<size> Specify which bytes to read 

 

-g/--go Run processor from reset vector after program. 

 

Input files should be in Motorola S-Record format. Addresses within the files 

are interpreted as offsets from the base address of the flash. Output files 

written by the tool are in the same format. 

 

The flash programmer supports all CFI flashes which use the AMD programming 

algorithm (CFI algorithm 2) or the Intel algorithm (1 or 3)." 

 

what does this mean? thanks. 

 

by the way, my board is altera stratix II DSP board.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
329 Views

 

--- Quote Start ---  

originally posted by rainhawk@Jul 4 2006, 11:23 AM 

i created a uclinux kernel project in nios ii with microtronics plugin, and it was built successfully.  

but when i tried to upload it to the board through jtag, the nios terminal show this: 

"------------------------------------------------ 

microtronix linux extensions 

version 1.4, built june 20, 2005 

------------------------------------------------ 

(note: only altera-provided flash components will 

work, since install.ptf was not found. this will 

probably be fine for you.) 

the flash programmer has been updated.  please see the 

documentation for instructions on how to update your command line. 

 

the flash programmer has been updated.  please see the 

documentation for instructions on how to update your command line." 

<snipped some text here.>[/b] 

what does this mean? thanks. 

 

by the way, my board is altera stratix II DSP board. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16641) 

--- Quote End ---  

[/b] 

--- Quote End ---  

Are you working on which IDE? The Microtronic Linux distro supports 5.0. 

 

If you&#39;re working on 6.0, it could be that usage of the flash programmer has been changed. So read the instructions carefully and, if you can, make the adjustments to the command line.
0 Kudos
Altera_Forum
Honored Contributor II
329 Views

 

--- Quote Start ---  

originally posted by repa+jul 4 2006, 05:25 pm--><div class='quotetop'>quote (repa @ jul 4 2006, 05:25 pm)</div> 

--- quote start ---  

<!--quotebegin-rainhawk@Jul 4 2006, 11:23 AM 

i created a uclinux kernel project in nios ii with microtronics plugin, and it was built successfully.  

but when i tried to upload it to the board through jtag, the nios terminal show this: 

"------------------------------------------------ 

microtronix linux extensions 

version 1.4, built june 20, 2005 

------------------------------------------------ 

(note: only altera-provided flash components will 

work, since install.ptf was not found. this will 

probably be fine for you.) 

the flash programmer has been updated.  please see the 

documentation for instructions on how to update your command line. 

 

the flash programmer has been updated.  please see the 

documentation for instructions on how to update your command line." 

<snipped some text here.>[/b] 

what does this mean? thanks. 

 

by the way, my board is altera stratix II DSP board. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16641) 

--- Quote End ---  

[/b] 

--- Quote End ---  

Are you working on which IDE? The Microtronic Linux distro supports 5.0. 

 

If you&#39;re working on 6.0, it could be that usage of the flash programmer has been changed. So read the instructions carefully and, if you can, make the adjustments to the command line. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16642)</div> 

[/b] 

--- Quote End ---  

 

first, thanks for your reply very much~ 

But I am working on the NIOS IDE 5.1 with sp1. What should I do?
0 Kudos
Altera_Forum
Honored Contributor II
329 Views

 

--- Quote Start ---  

originally posted by rainhawk@Jul 4 2006, 03:45 PM 

first, thanks for your reply very much~ 

but i am working on the nios ide 5.1 with sp1. what should i do? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16644) 

--- quote end ---  

 

--- Quote End ---  

 

Well, switch to 5.0, if you can, just to make sure. 

 

If you can&#39;t, you have to figure out what the flags for 5.0 flash-programmer are, what they mean and what are their counterparts in 5.1, and change the calls accordingly.  

 

But remember, I&#39;m taking educated guesses here http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif so the problem could be originated somewhere else.
0 Kudos
Altera_Forum
Honored Contributor II
329 Views

 

--- Quote Start ---  

originally posted by repa+jul 5 2006, 01:29 pm--><div class='quotetop'>quote (repa @ jul 5 2006, 01:29 pm)</div> 

--- quote start ---  

<!--quotebegin-rainhawk@Jul 4 2006, 03:45 PM 

first, thanks for your reply very much~ 

but i am working on the nios ide 5.1 with sp1. what should i do? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16644) 

--- quote end ---  

 

--- Quote End ---  

 

Well, switch to 5.0, if you can, just to make sure. 

 

If you can&#39;t, you have to figure out what the flags for 5.0 flash-programmer are, what they mean and what are their counterparts in 5.1, and change the calls accordingly.  

 

But remember, I&#39;m taking educated guesses here http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif so the problem could be originated somewhere else. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16657)</div> 

[/b] 

--- Quote End ---  

 

thanks again~ 

but what is the "flags" for 5.0 flash-programmer? how can I figure it out?
0 Kudos
Altera_Forum
Honored Contributor II
329 Views

 

--- Quote Start ---  

originally posted by rainhawk@Jul 5 2006, 10:52 AM 

thanks again~ 

but what is the "flags" for 5.0 flash-programmer? how can i figure it out? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16658) 

--- quote end ---  

 

--- Quote End ---  

With flags I mean the parameters, sorry about that. Like 

nios2-flashprogrammer --sof=file  

etc. 

 

For me, typing in nios2-flash-programmer gives the following:$ nios2-flash-programmer 5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: No SOF file specified 5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: No flash base specified 5.7.2006 11:04:28 - (SEVERE) nios2-flash-programmer: Input file required when pr ogramming flash nios2-flash_programmer is a utility for programming various types of data into flash memory connected to an Altera FPGA. usage: nios2-flash-programmer                   Options may be specified in any order.    --base=<addr>              flash base address    --cable=<cable name>       JTAG cable name    --device=<device number>   JTAG index of FPGA    --epcs                     program an epcs flash    --erase                    completely erase the flash    --help                     print this message    --input=<file>             input Flash file to program    --instance=<node index>    OCI node index    --log=<file>               file for logging progress    --nothing                  only download flash programmer design and                               verify communication    --quiet                    only print errors    --relocate                 relocate code following a SOF (EPCS mode                               only)    --silent                   silent mode - same as quiet    --sof=<file>               location of target flash programmer                               design SOF.    --verbose                  lots of interesting information The nios2-flash-programmer utilizes a special target design to program the flash memory on a board.  This design is seamlessly downloaded to the target by nios2-flash-programmer when using a Nios Development Board.  If you wish to program flash on a custom board, you must first create your own flash programmer target design.  Please refer to the "Nios II Flash Programmer User Guide" for details of this procedure. You may use the --erase option either stand-alone, or with an input file to program.  If used with an input file, the flash will be completely erased before programming. The --relocate option is used with EPCS serial configuration devices. If data has already been programmed into the EPCS device, it will be relocated at a higher address to make room for the new data being programmed. 

So it seems clear that some things have changed in the flash programmer.  

 

I tried to find the command line call that is ran when you Upload the .bin but I couldn&#39;t, so I guess I was wrong about it being possible to change it then. So if you can&#39;t switch to 5.0, I guess I can&#39;t help you. Hopefully someone can.
0 Kudos
Reply