Forum Discussion

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

C-Germs in NIOS 2

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

3 Replies

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

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

    nios2-elf-objcopy -O srec foo.elf foo.srec
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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