Forum Discussion

Elyouss's avatar
Elyouss
Icon for New Contributor rankNew Contributor
3 years ago
Solved

Nios processor C program

Hello, I'm using the DE0 board from altera and I wrote a little program to toggle an output pin from high level to low level and vice versa. That's my program :

I'm not sure if he contains all the lines necessary to make my project work but, if it's the case, how can I convert my C program (I think that's the .elf) into an .sof for hardware application ?

Thank you very much in advance for the replies,

Sincerely

  • Hi,


    Make sure you're doing the steps correctly as stated in this video https://www.youtube.com/watch?v=joFaxLY-rUE. Based on Generate Completed window line 3, can you check the reason for causing that Failure compiling 'C:/Users/elyes/AppData...'. Alternatively, you can specify the HEX file with QIP.


    Best Regards,

    Sheng


    p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution and give Kudos.


5 Replies

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    Make sure you're doing the steps correctly as stated in this video https://www.youtube.com/watch?v=joFaxLY-rUE. Based on Generate Completed window line 3, can you check the reason for causing that Failure compiling 'C:/Users/elyes/AppData...'. Alternatively, you can specify the HEX file with QIP.


    Best Regards,

    Sheng


    p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution and give Kudos.


  • Elyouss's avatar
    Elyouss
    Icon for New Contributor rankNew Contributor

    I tried to put my memory init in the on_chip_memory peripherals on Qsys to make a .sof file

    but it don't want to generate

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    Any concern or follow up? Have your problem resolved?


    Thanks,

    Best Regards,

    Sheng


  • Elyouss's avatar
    Elyouss
    Icon for New Contributor rankNew Contributor

    yes thank you very much and sorry for my late reply