c - Nios 2 "Hello World"? -


i've managed run complicated project on nios 2 altera de2 board created timer assembly , c code using input , output. nios 2 ide can download project de2 fpga , clock runs expected. don't understanding programming model , i'm trying understand basic hello world example , diagnostics example comes ide.

the hello world example just

/*  * "hello world" example.  *  * example prints 'hello nios ii' stdout stream. runs on  * nios ii 'standard', 'full_featured', 'fast', , 'low_cost' example  * designs. runs or without microc/os-ii rtos , requires stdout  * device in system's hardware.  * memory footprint of hosted application ~69 kbytes default  * using standard reference design.  *  * reduced footprint version of template, , explanation of how  * reduce memory footprint given application, see  * "small_hello_world" template.  *  */  #include <stdio.h>  int main() {   printf("hello nios ii!\n");    return 0; } 

but when compile , run "as nios 2 hardware", prints hello world standard out in ide, not download , run on board - isn't supposed that? point of example if does't run on board? did wrong, if since example compiles , runs? have set bsd editor something?

update

it's not working @ all. tried different combinations in bsp editor , none work. when try run project "nios ii hardware" nothing happens on board though says in ide project downloading board. why easy thing difficult? ux horrible , having guess not scientific.

enter image description here

the program running on board. program comments...

this example prints 'hello nios ii' stdout stream.

the stdout stream in case software terminal. nios ii board running hello world program , sending output computer. use screen on board you'll have include lcd display in configuration sopc builder, write lcd screen directly.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -