Forum Discussion

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

Run as Hardware

What is the details about the "Run as Hardware"?

========================================

1. What is the "Controller logic" or "boot loader" in NiosII side, especilly the JTAG UART?

2. How does it receive data from JTAG cable to volatile memory, such as SRAM or On-chip memory or SDRAM, and then run from the volatile memory?

3 Replies

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

    When you select "Run as hardware" from the IDE it does the following:

    1) downloads the code to the target using nios2-download. This will set up your uninitialised memory. nios2-download then starts the processor at the entry point specified in the ELF file.

    2) starts nios2-terminal to listen on the JTAG UART or UART specified.

    There is no boot loader on the target (Nios II) side in this case - the download is all done by the JTAG debug core built in to the processor.

    nios2-download talks to the JTAG debug core, nios2-terminal talks to the JTAG UART. They are separate command line applications which are pulled together by the IDE.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,wombat

    How can the JTAG Debug Core download the code into kinds of momery??

    Are there extra options during this process?

    If try to download the code to a external SSRAM, are there any extra works??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The JTAG debug core uses the processors data master to write to memory, so anything which is accessible from that master can be written. In addition, some on-chip ROMs are writable when the processor is in debug mode.

    The options available are displayed if you type `nios2-download --help`.