Forum Discussion

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

Getting started on SOPC

Hi All,

I am just starting to get into NIOS, and I thought that I start by going through the tutorials. I am currently going through the hardware tutorial for a Nios_HW_Tutorial_Stratix_1S10.

When I got to the stage of performing a "System Generation" in SOPC, it failes. The display output is not too helpful as the first error that it reported is a "not found", but does not indicate what it didn't find.

A copy of the output is shown below.

I was wondering if anyone has come across the same problem. I read through some of the documentation and I though having more than one installation of cygwin may cause this problem, I was not able to prove this.

Any ideas?

thanks,

Tehn Yit Chin

------------ Display Captured Below --------------------------------------------------

Altera SOPC Builder Version 2.81 Build 93

Copyright © 1999-2003 Altera Corporation. All rights reserved.

# 2004.08.17 13:17:16 (*) mk_custom_sdk starting

# 2004.08.17 13:17:16 (*) Reading project

# 2004.08.17 13:17:17 (*) Finding all available components

# 2004.08.17 13:17:20 (*) Finding all CPUs

# 2004.08.17 13:17:20 (*) Finding all peripherals

# 2004.08.17 13:17:20 (*) Finding software components

# 2004.08.17 13:17:20 (*) Generating gnu SDK for cpu

# 2004.08.17 13:17:20 (*) Copying Files for cpu

# 2004.08.17 13:17:20 (*) Generating Memory Map for cpu

# 2004.08.17 13:17:20 (*) Generating Makefile and excalibur.h for cpu

: not found

{

: not found

/cygdrive/c/altera/excalibur/sopc_builder/bin/nios_sh: 42: Syntax error: "else" unexpected (expecting "then")# 2004.08.17 13:17:21 (*) Wrote gnu tcl script for cpu

: not found

{

: not found

/cygdrive/c/altera/excalibur/sopc_builder/bin/nios_sh: 42: Syntax error: "else" unexpected (expecting "then")# 2004.08.17 13:17:21 (*) (Not building library; no nios-elf-gcc found.)

# 2004.08.17 13:17:21 (*) Building Flash_8MByte_contents.srec using "blank"

# 2004.08.17 13:17:21 (*) cd C:/altera/excalibur/sopc_builder/tutorials/Nios_HW_Tutorial_Stratix_1S10 ; nios-convert --outfile=Flash_8MByte_contents.srec --address_low=0 --address_high=65535

: not found

{

: not found

/cygdrive/c/altera/excalibur/sopc_builder/bin/nios_sh: 42: Syntax error: "else" unexpected (expecting "then")# mk_custom_sdk: WARNING 512 cd C:/altera/excalibur/sopc_builder/tutorials/Nios_HW_Tutorial_Stratix_1S10 ; nios-convert --outfile=Flash_8MByte_contents.srec --address_low=0 --address_high=65535

ERROR: Could not build Peripheral Contents for cpu

Error in processing. System NOT successfully generated.

3 Replies

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

    Try a hello world program for the compile. Looks like just a C syntax error (can't tell the error really though). Try the line number it gives you to debug the code.

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

    Thanks for the advise., but I have resolved the problem. I discovered that the PC I was using for the tutorial is really messed up with about 3 version of cygwin installed on it. I suspect that this is what is confusing the SOPC.

    To cut a long story short, C: drive was wiped cleaned and everything was installed cleanly. The compilation was OK from then onwards.

    Thanks,

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

    hehe ya, I've had who knows how many versions installed over time on this computer, now I get blasted with windows error every time I open the Cygwin shell or compile with the NIOS II IDE (the file not recognized, do you want to replace it from you're window CD error message)

    That makes me wonder what Cygwin actually does to you're computer (I have no idea, not a linux guy)