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++

.elf file

Altera_Forum
Honored Contributor II
1,048 Views

We have received an .elf files from our suplliers and try to run it here on our board. We're encountring difficulty running this file. we don't seem to be able to download this file in the SDRAM in the correct format which enable us to run it properly. Please let us know if there are certain steps that need to be taken to be able to start running off of a .elf file. 

 

Thanks, 

Koorosh
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
335 Views

Hi koorosh, 

 

> let us know if there are certain steps that need to be taken to be able to start 

> running off of a .elf file. 

 

All you should have to do is open a shell window and execute: 

 

$ nios2-download -g file.elf 

 

You might also want to make sure the sections are mapped to meaningful 

memory regions. You can use objdump for this: 

 

$ nios2-elf-objdump -h file.elf 

 

If everything looks good, but you're still having problems, you might want 

to use nios2-console -- this will let you load, peek, poke, whatever. 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
335 Views

 

--- Quote Start ---  

originally posted by smcnutt@Mar 21 2006, 12:08 PM 

hi koorosh, 

 

> let us know if there are certain steps that need to be taken to be able to start 

> running off of a .elf file. 

 

all you should have to do is open a shell window and execute: 

 

$ nios2-download -g file.elf 

 

you might also want to make sure the sections are mapped to meaningful 

memory regions. you can use objdump for this: 

 

$ nios2-elf-objdump -h file.elf 

 

if everything looks good, but you're still having problems, you might want 

to use nios2-console -- this will let you load, peek, poke, whatever. 

 

regards, 

--scott 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=13646) 

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
335 Views

 

--- Quote Start ---  

 

Hi koorosh, 

 

> let us know if there are certain steps that need to be taken to be able to start 

> running off of a .elf file. 

 

All you should have to do is open a shell window and execute: 

 

$ nios2-download -g file.elf 

 

You might also want to make sure the sections are mapped to meaningful 

memory regions. You can use objdump for this: 

 

$ nios2-elf-objdump -h file.elf 

 

If everything looks good, but you&#39;re still having problems, you might want 

to use nios2-console -- this will let you load, peek, poke, whatever. 

 

Regards, 

--Scott 

 

Scot, 

Your SUGGESTION WORKS, thanks for your help. 

Koorosh
0 Kudos
Reply