title: Nios 2 "Hello World"?
body: <p>I've managed to run a complicated project on the Nios 2 Altera DE2 board where I created a timer with assembly and C code using the input and output. With the Nios 2 IDE I can download the project to the DE2 FPGA and the clock runs as expected.  But I don't understanding everything about the programming model and I'm also trying to understand the basic Hello World example and the diagnostics example that comes with the IDE.</p>
  
  <p>The Hello World example is just</p>
  
  <pre><code>/*
   * "Hello World" example.
   *
   * This example prints 'Hello from Nios II' to the STDOUT stream. It runs on
   * the Nios II 'standard', 'full_featured', 'fast', and 'low_cost' example
   * designs. It runs with or without the MicroC/OS-II RTOS and requires a STDOUT
   * device in your system's hardware.
   * The memory footprint of this hosted application is ~69 kbytes by default
   * using the standard reference design.
   *
   * For a reduced footprint version of this template, and an explanation of how
   * to reduce the memory footprint for a given application, see the
   * "small_hello_world" template.
   *
   */
  
  #include &lt;stdio.h&gt;
  
  int main()
  {
    printf("Hello from Nios II!\n");
  
    return 0;
  }
  </code></pre>
  
  <p>But when I compile and run this "as Nios 2 hardware", it only prints Hello World to the standard out in the IDE, it does not download and run on the board - isn't is supposed to do that? What is the point of the example if it does't run on the board? Did I do anything wrong, if so what since the example compiles and runs? Do I have to set the BSD editor to something?</p>
  
  <h2>Update</h2>
  
  <p>It's not working at all. I tried the different combinations in the BSP editor and none work. When I try to run the project as "Nios II hardware" nothing happens on the board even though it says in the IDE that the project is downloading to the board. Why is the easy thing difficult? The UX is horrible and having to guess is not scientific. </p>
  
  <p><img src="https://i.stack.imgur.com/8ETGJ.png" alt="enter image description here"></p>