Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21420 Discussions

Nios processor C program

Elyouss
Beginner
1,282 Views

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 :

Elyouss_0-1657878777980.png

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 

0 Kudos
1 Solution
ShengN_Intel
Employee
1,234 Views

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.


View solution in original post

5 Replies
Elyouss
Beginner
1,275 Views

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

Elyouss_0-1657881315214.png

but it don't want to generate 

Elyouss_1-1657881418685.png

 

 

0 Kudos
Elyouss
Beginner
1,262 Views

and here the command for setting bits ;

Elyouss_0-1657891995757.png

 

0 Kudos
ShengN_Intel
Employee
1,235 Views

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.


ShengN_Intel
Employee
1,223 Views

Hi,


Any concern or follow up? Have your problem resolved?


Thanks,

Best Regards,

Sheng


0 Kudos
Elyouss
Beginner
1,214 Views

yes thank you very much and sorry for my late reply 

0 Kudos
Reply