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.

GERMS in NIOSII

Altera_Forum
Honored Contributor II
1,958 Views

My Question is with GERMS and NIOS II does the command (detailed below) still support writing to flash memory? 

 

M0700000:AAAA AAAA 

 

(This is a example write to memory including flash that was used in previous versions of NIOS) 

 

 

Thanks for your help!!
0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
1,263 Views

Yeah,I got a similar question with you: 

 

Can GERMS monitor be used in NiosII?And,how?
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

Yes, Germs can be implemented in NIOSII it requires the following, 

 

1) Add "Legacy On Chip Memory" component. 

(a) Select ROM in the Attributes Tab 

(http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif Select GERMS in the Content Tab 

© Press finish and then name your component 

 

2) Make sure you have a Uart that you can talk to GERMS with, 

I use a RS232 port at 115200 baud 

 

3) Goto More CPU settings and select Legacy SDK support. You must 

select this or the GERMs monitor will not get compiled at compile time. 

 

4) Change the "Reset Address" "Memory Module" to the name of the Legacy on  

chip memory that you made above. 

 

5) Under "Host Communications" in the Legacy section change it to the Uart you 

want GERMS to communicate on. 

 

After you have done the above compile your NIOS and then compile your Quartus  

project and GERMS should bootup for you. 

 

My original question pertains to CFI for flash, and was it ported to GERMS in NIOSII? 

 

Good LUCK!!
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

Sorry Somehow I screwed up the formating above!!!!

0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

Thanks to btaylor! 

 

But when I added the Legacy On-chip Memory into my design, 

 

I found SOPCBuilder gave warning message about its not recommending 

 

of use Legacy SDk. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

So I wonder whether there is an alternative way to implement the function of  

 

GERMS but without using Legacy SDK?
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

freezy2000 

 

I also got the same warning when I compiled my NIOS Core, I still went ahead a finished compiling the 

entire project and the tried talking to the GERMs mointor through nios2-run.exe terminal and was able 

to send GERMS some commands. I was able to write data to SRAM and it worked fine, I had trouble 

writting to FLASH however, it may be a problem on my circuit board that I have not yet discovered or 

maybe GERMS does not support CFI. Not sure at this point. 

 

There maybe away to use GERMs without Legacy SDK if you can find the GERMS.hex file and then 

use the ON Chip memory component in the MEMORY folder. Then change the reset location to that  

location. Maybe it would work. 

 

Good Luck with your efforts in using GERMS.
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

Btaylor 

 

You are not doing anything wrong. Someone screwed up. 

 

I have actually rewritten part of the GERMS monitor. I have lots of legacy stuff out there and actually prefer to use the simple RS232 progamming method for many obvious reasons.  

 

I would also have thought that my board was stuffed was it not for the fact that I used an old board with NIOS1. I would program the Flash with NIOS1, reload with NIOS2 and be able to read the data, but not write or erase. 

 

It all has to do with the byte, word and double word methods used to write to the Flash (also still have a problem writing to a CS8900 in NIOS2). I took the NIOS1 code and looked how the data was written and then rewrote the code for NIOS2 GERMS. So far it is working. 

 

 

It appears that most or all people are using the Flash Programmer via JTAG and thus have not experienced the problem. Those who do think they are doing something stupid and keeps quiet about it. 

 

 

I am rather busy at the moment but need to use the code myself in the next 2 weeks. If I have time I will post it. 

 

victors.
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

victors 

 

Thanks for the information. I look forward to seeing you post. I also have a lot of Leagacy first Generation NIOS out there 

and have just started working with NIOS II. I would like to see GERMS for NIOSII working. 

 

I appreciate your help! 

 

Btaylor
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

I am busy with a new NIOS II board for a client. Must have GERMS ready for that. When it is complete I will post it.

0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

Hi, 

 

I need to use GERMS with NIOS II. I have with me Quartus version 6. 

I tried to add legacy on chip memory. I was able top add it but i got error while generating system saying legacy SDK is not enabled.  

 

However i do not know how to enable it......... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

I would like to add GERMS in NIOS II . i am using QUARTUS verson 6. 

However when add the legacy on-chip memory and try to genrate it says Legacy SDK not enabled. I am not able to do so................. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

If this is not possible is ther any other alternative method ........ or anything other than GERMS...........
0 Kudos
Altera_Forum
Honored Contributor II
1,263 Views

 

--- Quote Start ---  

originally posted by faizal_kotta@Mar 22 2007, 03:40 PM 

i would like to add germs in nios ii . i am using quartus verson 6. 

however when add the legacy on-chip memory and try to genrate it says legacy sdk not enabled. i am not able to do so................. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif  

 

if this is not possible is ther any other alternative method ........  or anything other than germs........... 

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

--- quote end ---  

 

--- Quote End ---  

 

 

If you just want GERMS see this link - http://forum.niosforum.com/forum/index.php...c=3754&hl=germs (http://forum.niosforum.com/forum/index.php?showtopic=3754&hl=germs

 

In Quartus 6 you can reactivate the legacy sdk by editing your system .ptf file - look for the legacy_sdk items, but it is no longer supported and therefore could be removed/broken in a future release.
0 Kudos
Reply