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

What is the program entry address

Altera_Forum
Honored Contributor II
1,056 Views

At last, I success to install eCos, compile programs. 

(Thank to bigboss25 in http://forum.niosforum.com/forum/index.php...977&#entry15977 (http://forum.niosforum.com/forum/index.php?showtopic=3926&st=0&p=15977&#entry15977) why this post isn't pinned?) 

Now, following "eCos for Nios II" document, I am trying to work with redboot. 

 

I successes to compile redboot (Thanks to graham615 in http://forum.niosforum.com/forum/index.php?showtopic=1895 (http://forum.niosforum.com/forum/index.php?showtopic=1895) When this will fixed?) 

Program it in the flash and talking to redboot over nios2_terminal. 

 

Now i tried to upload eCos tutorial program (hello), has compiled according to the first part in the manual. 

No reference in the document to this mission (Why?). 

After reading "eCos User Guide", and searching in the internet, i guess this should be like: 

load -v -r -b %{FREEMEMLO} hello 

(Or maybe without "-r" ?) 

Using tftp PUT command from windows CMDShell not succeed so I downloaded free SolarWinds TFTP Server. 

Now i can upload the file, but whenever i try to run it (go command?) the redboot is crashing and restart. 

 

I guess the entry point i passed to go command (or load command address?) in not good. 

Anyone can help me, and write the missing details?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
327 Views

Hi ! 

Refer to http://ecos.sourceware.org/docs-latest/red...boot-guide.html (http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html

If program(hello) is ELF file format.  

No need to use "-v -r -b" options. ELF file has infomations about entry point .... 

So, only "load hello" and "go" while network environment is OK.
0 Kudos
Altera_Forum
Honored Contributor II
327 Views

 

--- Quote Start ---  

originally posted by kohjy@Nov 2 2006, 02:39 PM 

hi ! 

refer to http://ecos.sourceware.org/docs-latest/red...boot-guide.html (http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html

if program(hello) is elf file format.     

no need to use "-v -r -b" options. elf file has infomations about entry point .... 

so, only "load hello" and "go" while network environment is ok. 

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

--- quote end ---  

 

--- Quote End ---  

 

 

I tried this but redboot restart immediatly. 

RedBoot> load hello Using default protocol (TFTP) <Bad format string: 1021B9C : 13 E000 1021DE0 1FFFB44 2 1022570 1021BEC 1> ... waiting for BOOTP information 

 

P.S. 

The program run well as stand alone
0 Kudos
Reply