Forum Discussion

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

Compile a C program, upload and run it

Hi,

I'm pretty a newbee in the uClinux stuff on NIOS-II. My complements for this forum.

I have the uClinux working and running on my Altera Cyclone board. I'm very exited about it, but I'm still not able to compile my own C program for uClinux and let it run on the NIOS.

Can somebody please give me a tip or and example how to complile a simple program for uClinux and how to get it running on my demoboard?

Thanks,

Mr_Ibanez

2 Replies

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

    What type of errors are you getting? Is it a compile time error or are you not sure how to get it up to the board?

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

    --- Quote Start ---

    originally posted by ken@Jan 21 2005, 02:28 PM

    what type of errors are you getting? is it a compile time error or are you not sure how to get it up to the board?

    --- Quote End ---

    I couldn't get my own C file on the kernel.

    I allready solved the problem, the problem was in my makefile which wasn't right, and because of that, the building process didn't succeed.

    After building my linux -c application, I put the .exe file in directory etc of the filesystem and than I uploaded the filesystem to the nios and it works.

    So the make file was the bottleneck.