Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
Hi cosmosd,
With Nios II you can use nios2-download to download an elf file to your target. Use the --help option for details, but to load and run: $ nios2-download -g myapp.elf If you use the jtag uart, start the nios2-terminal in a separate shell. Regards, --Scott - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by cosmosd@Oct 9 2005, 03:26 AM hello,can everyone tell me how to download a .srec or .bin file to nios2 dev board,in the nios1,i use nios-run in the shell,but in the nios2,i also use nios-run ,but it always says:waiting for target.....,why ,help me!<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10243)
--- quote end ---
--- Quote End --- The srec method still works ( to download to RAM). The nr abc.flash won't work. Someone screwed up. The GERMS monitor has faulty code in that does not write or erase the CFI flash. Has to do with byte and word write commands(assembly code in GERMS) First try to manipulate memory before trying to download. On the terminal type "nr -t". This should give you direct access to the GERMS monitor. Hit enter a few times. You must see a memory dump. If that does not work then something is wrong (baud rate etc...) If that worked then try to write and read from the memory block you are targeting. e.g. read from the location first: m40000 <enter> You should see a memory dump at 0x40000. Next write something to 0x40000. m40000:1234 Then read it again. If it differs then your memory is not correctly interfaced. You can also try to fill the block with a fixed value m40000-50000:1234 Dump the memory and see if a location or more has gone to cyber heaven ----- For all practical purposes Nios2 should download to RAM without a problem using nios-run. The only real problem is writing to flash. VictorS
- Altera_Forum
Honored Contributor
Hi VictorS
even i face the problem with cfi flash i am using NDB and HAL library and nios IDE for programming flash but my application simple printf is not working even if i am downloading the application in flash flash programming is done complete it is saying but when i reset cpu it is not doing anything(printing on the console) .sof is programmed into flash upon it is configuring the flash but application is not running. where could be the problem? can u please tell me thanks in advance prasad