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

C-Germs in NIOS 2

Altera_Forum
Honored Contributor II
1,129 Views

I have done a few modifications to the C-Germs from NIOS 1 and programmed it into my target board. Memory commands and others work fine. 

 

Now I'm looking for a solution, to build a SREC file, that I can download over Germs. 

 

Up to now I'm using elf2flash without success: 

 

elf2flash --input=myapplication.elf --base=0 --end=0x7fffffff --output=myapplication.flash 

 

This makes a SREC without boot copier, that could be download. But when starting  

the application (g 0x01000000), nothing happens. 

 

Does anyone workout a flow using the Germs (C Germs) without use 

of legacy sdk restrictions. 

 

any help welcome 

 

p.s. I'm using version 5.1
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
362 Views

Here's how we generate an SREC for GERMS in our Nios II testing: 

 

nios2-elf-objcopy -O srec foo.elf foo.srec
0 Kudos
Altera_Forum
Honored Contributor II
362 Views

I've just uploaded an assembly version of GERMS to the "Post your own tested IP" section of the forum.  

This version of GERMS uses Altera HAL and fits in a 1 KByte memory. It works best with the upcoming Nios II 6.0 release (coming out very soon) but can be made to work with older releases. 

 

We use this version of GERMS at Altera for internal testing of the CPU. 

 

Feel free to use it with the understanding that it is not supported by Altera.
0 Kudos
Altera_Forum
Honored Contributor II
362 Views

 

--- Quote Start ---  

originally posted by james@Apr 24 2006, 11:12 AM 

here's how we generate an srec for germs in our nios ii testing: 

 

nios2-elf-objcopy -o srec foo.elf foo.srec 

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

--- quote end ---  

 

--- Quote End ---  

 

That works pretty good ! 

 

Thanks!
0 Kudos
Reply