Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

elf2flt usage

Altera_Forum
Honored Contributor II
2,724 Views

I have problem to convert compiled by nios2-ide elf-file to flat.  

 

It is easy to compile single c file using  

nios2-linux-uclibc-gcc hello.c -o hello -elf2fltbut its hard when there are included h-files in c-file... 

So i try to compile it by nios2-ide and then convert to flat  

 

how can I convert large c-projects to flat format? m b there are some other ways...
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
1,444 Views

I apologize for my silly annoying questions. plz, someone helps me. 

how you write, debug and compile the big programs for uclinux without mmu?  

I prefer useing in work nios2-ide. It is difficult to me to write programs in text editor, I have got used to debug programs by using breakepoints in nios2-ide. 

tell me what software you use for a writing programs for uclinux without mmu.  

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

I learned that it in fact is possible (and done by some members here), to use Eclipse as an IDE for Linux application programs (with and without MMU). Eclipse can be configured to help with perform editing, "make"ing and debugging. Regarding debugging they say it's possible to do remote debugging via TCP/IP using the gdb stub provided with the distribution.  

 

It's also known that debugging threaded application does not work correctly yet. AFAIK, it will be fixed for the MMU enabled branch, though. 

 

The Altera NIOS2-IDE is of no use here. Eclipse needs to be configured separately to allow for compiling and debugging Linux user land applications. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

thanks a lot.

0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

I have installed eclipse. It works and can compile even Hello World. Now it is necessary for me to setup it.  

Probably it is necessary for me to install compiler nios2-linux-uclibc-gcc and parameter -elf2flt. how can it be made? 

how can i debug programs using address space, interupts, dma, etc. of nios by eclipse?
0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

I do know that it is possible to make Eclipse use the uCLinux-NIOS tool chain as a compiler. But I don't know how to configure it to do so.  

 

I do know that it is possible to make Eclipse use the uCLinux-NIOS gdb stub as a user-land-debugger. But I don't know how to configure it to do so.  

 

We were talking about using Eclipse as a tool for user land programs, so dma, interrupt etc are not discussed in tis issue. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

do you want to tell, there is no graphic interface for writing drivers and programs using hardware of mine fpga? only text editor and gdb in terminal? 

There should be a means of development of programs using hardware derectly. 

I know how to make it in nios2-ide without uclinux but I don`t know how to make it for uclinux noMMU.
0 Kudos
Altera_Forum
Honored Contributor II
1,444 Views

Drivers can't be debugged with gdb. Here kgdb needs to be used, but AFAIK, most developers don't use a debugger with this stuff, but just log file output. 

 

Of course you can use Eclipse to edit Kernel drivers and you can configurte Eclipse to compile them 

 

AFAIK, technically, it is possible to use KGDB with a serial interface to debug Kernel drivers and configure eclipse to remote-control KGDB, but I am not aware of anybody doing this. 

 

It might be possible to run the komplete system (Kernel and applications) with nios2-ide but I don't know if this makes much sense. Maybe someone who tried it might jump in here. 

 

-Michael
0 Kudos
Reply