Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

Problem with C2H

Altera_Forum
Honored Contributor II
1,020 Views

Hi, 

 

I have given a long C code to C2H for converting to HDL. On first run it gives error saying something like: 

 

Adrdress range of uart1.s1 overlaps with pll.s1, etc. In this run I used "auto-assign base address" option of SOPC builder.  

 

When I manually configured the base addresses in SOPC builder, C2H gives different error saying: 

 

Exception in thread "System Generation" java.lang.OutOfMemoryError: Java heap space 

at java.util.Arrays.copyOf(Unknown Source) 

at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) 

at java.lang.AbstractStringBuilder.append(Unknown Source) 

at java.lang.StringBuilder.append(Unknown Source) 

at com.altera.utilities.altNode.AltNodeXML$TElement.toString(AltNodeXML.java:853) 

at com.altera.utilities.altNode.AltNodeXML$TElement.toString(AltNodeXML.java:794) 

at com.altera.utilities.altNode.AltNodeXML.toXmlString(AltNodeXML.java:606) 

at com.altera.sopcreport.EnsembleReport.toXml(EnsembleReport.java:146) 

at com.altera.sopcreport.EnsembleReport.write(EnsembleReport.java:157) 

at com.altera.sopceditor.actions.GenerateSystemEdit.writeSopcInfo(GenerateSystemEdit.java:323) 

at com.altera.sopceditor.actions.GenerateSystemEdit$1.run(GenerateSystemEdit.java:193) 

at java.lang.Thread.run(Unknown Source) 

make: *** [c2h_hdl-t] Error 254 

 

 

I do not know what to do next. Why this is happening and what can be the solution. Can you give any suggestions?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
337 Views

When I first use C2H in nios ii 8.1,some errors occur .That is because the nios II 8.1 need a path which called "PC-NIOS_II-8.1-0.01.exe". After fix the path, I can use the C2H.

0 Kudos
Reply