Forum Discussion

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

How can I get a 'hello_led'for Nios II?

I'm a beginner. Following the example of the course, I opened a project under NiosII IDE,and clicked C\C++ application. But I didn't find a 'hello_led' template there. Does anyone know how I can get a hello_led template here?Thank you!

2 Replies

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

    File->New->Project

    Select Altera Nios->Nios C/C++ application.

    Choose hello_world and associate to your sopc file.

    When sys library and all the stuff has been generated you can build your application.

    If you say hello_led I suppose you simply want make a led blink. Then you should have a pio connected to the led: use the pio register to set/clear the proper bit in order to drive the led
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Well thanks a lot. But I saw a hello_led project template just like the hello_world template in my course book. The version there is 5.1. But my nios II is 8.0. I can't find a hello_led under the Project Template. I can see hello_world there. So how can I get a hello_led under the Project Template? Should I download it somewhere?

    --- Quote Start ---

    File->New->Project

    Select Altera Nios->Nios C/C++ application.

    Choose hello_world and associate to your sopc file.

    When sys library and all the stuff has been generated you can build your application.

    If you say hello_led I suppose you simply want make a led blink. Then you should have a pio connected to the led: use the pio register to set/clear the proper bit in order to drive the led

    --- Quote End ---