Forum Discussion
Altera_Forum
Honored Contributor
13 years agoWell firstly I have already uploaded the .sof file to the processor successfully.
--- Quote Start --- I would test that your hardware connectivity is good by issuing the command `jtagconfig -n` - this should include a Nios II debug agent node. . --- Quote End --- What I see in the shell is :bash-3.1$ jtagconfig -n
1) USB-Blaster
020B30DD EP2C(15|20)
Node 0C006E00 JTAG UART# 0
Node 19104600 Nios II# 0 I would then test that you can download to the Nios II processor with a command such as `nios2-download <myfile.elf>`. --- Quote End --- Well the shell uploads the file fine : bash-3.1$ nios2-download D:/home/jbww/Design/Altera/Eclipse_v12/NiosProjects/ap
lc_binsr_tst/aplc_binsr_tst.elf
Using cable "USB-Blaster ", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 408KB in 7.0s (58.2KB/s)
Verified OK
Leaving target processor paused To actually run the code I go back to Eclipse, do "run as" "NiodII Hardware" : Now I get message "System Console Model in invalid" "Cannot Launch" Close Console - same message. Close programmer, Close Eclipse Load Eclipse, Load programmer Uoload .sof, run : "Downloading Elf failed" Close programmer load standalone programmer Uoload .sof, run : "Downloading Elf failed" Hmm, it is now a couple of days since I have been able to run a program ... Exit from programmer and eclipse. Run monitor program - successfully upload and run an example .s program. Close monitor program Run Standalone programmer, upload .sof Run Eclipse, run matrix solving program connects fine, uploads fine, solves matrix fine. OK, back to binsr program - clean, build (OK) upload : Executing: nios2-app-update-makefile --list-src-files --app-dir D:\home\jbww\Design\Altera\Eclipse_v12\NiosProjects\aplc_binsr_tst (D:\home\jbww\Design\Altera\Eclipse_v12\NiosProjects\aplc_binsr_tst) tst_binsr.c Downloading Elf Process Failed. So what is going on ? This has run fine previously. I will dig more. Hmm it seems to have been a corruption in the Makefile. I rebuilt the application, copied in the same .c file, and it now works fine.