Forum Discussion
Altera_Forum
Honored Contributor
15 years agopausing target processor: not responding
hi all,
i hav build a system in sopc builder using nios ii cpu, jtag_uart, esps_flash_controller, ddr_high_performance_memory_controller, tse_mac, sgdma_rx, sgdma_tx, flash_tristate_bridge, ext_flash, and an onchip_memory. i managed to compile it successfully. i downloaded the hardware image into fpga and now am trying to run a simple hello_word program on nios ii processor. but it is not happening. the following message is being displayed in the console. . . using cable "USB-blaster [USB-0]", device 1, instance 0x00 pausing target processor: not responding presetting and trying again : FAILED leaving target processor paused if anybody knows why this is happening pls help me. . . thank you. . .19 Replies
- Altera_Forum
Honored Contributor
hi,
thank you cris and kbs972 for ur replies. i rebuilt my system, i removed ext_flash component and instead of ext_flash i set on_chip memory as reset vector of nios ii. now pausing target processor problem doesn't exist. but nothing is getting printed in the console am getting the following messeges: nios2_terminal: connected to H/W target using UART on cable nios2_terminal: "USB-Blaster[ USB-0]",device 1,instance 0 nios2_terminal: (use the IDE stop button and Ctrl-C to terminate) but hello from nios ii is not getting printed. pls help me. thank you. - Altera_Forum
Honored Contributor
Check if you selected UART as stdout device.
Also make sure your target is running; if you have a spare PIO or a LED you can toggle it to monitor program execution. - Altera_Forum
Honored Contributor
hi,
yeah i have set stdout as jtag_uart and for toggling LED where i should write code, in nios or in quartus. . .?? - Altera_Forum
Honored Contributor
--- Quote Start --- and for toggling LED where i should write code, in nios or in quartus. . .?? --- Quote End --- In Nios program. Say you have a spare PIO port named led_out, possibly connected to LEDs. Then you can toggle the first pin by calling periodically this function:
This way you can easily monitor if your Nios program starts, keep running or hangs at some time. Regards Cris# include "altera_avalon_pio_regs.h" void PIO_pin_toggle(void) { alt_u8 pio; pio = IORD_ALTERA_AVALON_PIO_DATA(LED_OUT_BASE); IOWR_ALTERA_AVALON_PIO_DATA(LED_OUT_BASE, pio ^ 1); } - Altera_Forum
Honored Contributor
hi,
one more thing, i hav a software demo program which i should run on nios ii and i created a new project and tried to compile it. it is a demo program given by vendors. while building project am getting following error make -s all includes Creating generated_app.mk... Creating system.h... Apr 28, 2011 1:54:06 PM - (SEVERE) generate: java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.NumberFormatException: empty String make[1]: *** [system_description/../obj/system.h-t] Error 1 make: *** [system_project] Error 2 Build completed in 94.297 seconds does anyone have idea why this is occuring. . .??? pls help me. . . thank you. . . - Altera_Forum
Honored Contributor
Maybe the demo project was created with a different version of the dev tools.
Did you create a new project and then added demo source files, or did you import an existing project? Also check if your Nios projects points to the correct sopc system and possibly regenerate it. - Altera_Forum
Honored Contributor
--- Quote Start --- In Nios program. Say you have a spare PIO port named led_out, possibly connected to LEDs. Then you can toggle the first pin by calling periodically this function:
This way you can easily monitor if your Nios program starts, keep running or hangs at some time. Regards Cris --- Quote End --- thank you cris, i ll try this and let you know the result.# include "altera_avalon_pio_regs.h" void PIO_pin_toggle(void) { alt_u8 pio; pio = IORD_ALTERA_AVALON_PIO_DATA(LED_OUT_BASE); IOWR_ALTERA_AVALON_PIO_DATA(LED_OUT_BASE, pio ^ 1); } - Altera_Forum
Honored Contributor
--- Quote Start --- Maybe the demo project was created with a different version of the dev tools. Did you create a new project and then added demo source files, or did you import an existing project? Also check if your Nios projects points to the correct sopc system and possibly regenerate it. --- Quote End --- no cris those demo files are created with same version of dev tools. . . when i installed those software files they appeared in the nios ii IDE similar to other templet programs (e.g.hello world) i selected that templet and selected build project thats all. . . - CGiur
New Contributor
I know this is some 8 years late but just ran into it. In my case I hooked up a memory mapped slave (other than the internal bram) to the instruction master rather than data master of the nios2 in Qsys.