Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

NiosII program always reboot & need USB blaster

The NiosII's program is located in the onchip_memory. So I generate the SOF file with the onchip_memory.hex file and use it for downloading the FPGA. The FPGA starts but the program sems to be always reseted and when I disconnect the USB blaster it stops. My design sends messages on hyperterminal with an UART and I can see the well coming message always displayed. I use QuartusII9.1 sp1 and NiosIIe without debugger.

The program works well when I use IDE Eclipse to download it.

Thanks for your help.

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Do you have a watchdog?

    Do you have a JTAG Uart in your system?

    Is your sof time-limited?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't have watchdog or Jtag UART (only 3 poi 1 flash controller 1 UART232 & 1 onchipmemory). I use niosII/e & the SOF isn't time limited. I have just find a problem with the functions I used to access to the flash. When I remove all these functions the Nios program didn't reboot anymore, but I always need the USB Blaster. I noticed that the function alt_epcs_flash_init() didn't work when I used the Nios IDE to download the program but it works when the program is storaged in the onchip_memory with the hex file. I'm doing others test to understand. Thanks

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In fact I needed to force the epcs_flash_programmer in the altera_avalon_epcs_f.c file. The access to flash is ok and alt_epcs_flash_init() didn't work (as previously). Does anybody know the differences between the functions of the altera_avalon_epcs_f.c file and epcs_commands.c. It remains only the pb with the USB blaster.