Forum Discussion

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

Compact Flash HW & SW Examples

Hi all,

I found this site:

http://www.niosforum.com/pages/project_det...p_id=67&t_id=17 (http://www.niosforum.com/pages/project_details.php?p_id=67&t_id=17)

and downloaded the the design file on that site to test.

But when I compile the standard.qpf in folder std_cf_2c35 using Quartus 6.0, it geneated an error:

error: node instance "ddr_control" instantiates undefined entity "auk_ddr_controller"

So, I have two questions:

1) Which 2C35 KIT? 2c35 dsp kit or 2c35 nios kit ??? Because 2C35 DSP kit doesn't have CF Card connector and 2C35 Nios Kit doesn't have DDRAM.

2) How to correct this error?

Thanks in advance,

Viet.

20 Replies

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

    --- Quote Start ---

    originally posted by viethoang@Jun 15 2006, 05:07 PM

    hi hippo,

    thank you very much for your help. i am just a beginner.

    i have fixed that problem.

    but i have another question.

    as your instruction:

    <div class='quotetop'>quote

    --- quote end ---

    --- quote start ---

    you need os support. there ucos/2, ecos, and uclinux.

    i prefer uclinux.

    http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux)

    --- Quote End ---

    I downloaded zImage for 2C35 board: zimage_std_2c35. And then I downloaded this image to 2C35 board (ofcourse, after download .sof for it). This process finished successfully. But when I ran nios2-terminal there&#39;s no response from the board, the Nios II Command Shell only displayed:

    [sopc builder]$ nios2-terminal --cable usb-blaster

    nios2-terminal: connected to hardware target using jtag uart on cable

    nios2-terminal: "usb-blaster [usb-0]", device 1, instance 0

    nios2-terminal: (use the ide stop button or ctrl-c to terminate)

    and did not return.

    What is this error? How can I solve it?

    Thanks.

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

    [/b]

    --- Quote End ---

    did you use this sof ?

    altera/kits/nios2_60/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof

    Please post it over uclinux forum.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo+jun 19 2006, 08:41 am--><div class='quotetop'>quote (hippo @ jun 19 2006, 08:41 am)</div>

    --- quote start ---

    <!--quotebegin-viethoang@Jun 15 2006, 05:07 PM

    hi hippo,

    thank you very much for your help. i am just a beginner.

    i have fixed that problem.

    but i have another question.

    as your instruction:

    <div class='quotetop'>quote

    --- quote end ---

    --- quote start ---

    you need os support. there ucos/2, ecos, and uclinux.

    i prefer uclinux.

    http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux)

    --- Quote End ---

    I downloaded zImage for 2C35 board: zimage_std_2c35. And then I downloaded this image to 2C35 board (ofcourse, after download .sof for it). This process finished successfully. But when I ran nios2-terminal there&#39;s no response from the board, the Nios II Command Shell only displayed:

    [sopc builder]$ nios2-terminal --cable usb-blaster

    nios2-terminal: connected to hardware target using jtag uart on cable

    nios2-terminal: "usb-blaster [usb-0]", device 1, instance 0

    nios2-terminal: (use the ide stop button or ctrl-c to terminate)

    and did not return.

    What is this error? How can I solve it?

    Thanks.

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

    [/b]

    --- Quote End ---

    did you use this sof ?

    altera/kits/nios2_60/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof

    Please post it over uclinux forum.

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

    [/b]

    --- Quote End ---

    Hi Hippo,

    Thanks for your answer.

    Yes, I used that .sof file. I don&#39;t know what happened.

    Do you have any idea?

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

    --- Quote Start ---

    originally posted by viethoang@Jun 13 2006, 05:47 PM

    i did as your instructions, but when i ran sopc builder to regenerate, it issued an error:

    ERROR: in F:/altera/mywork/CF/cf_examples_for_niosforum/std_cf_2c35/std_2C35.ptf, can&#39;t read Clock_Source setting for ddr_sdram instance of ddr_sdram_component v3.2.0.[/b]

    How can I fix this bug?

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

    --- Quote End ---

    [/b]

    --- Quote End ---

    I had a similar problem and I&#39;m hoping someone out there can provide some guidance on this one.

    Thanks,

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

    --- Quote Start ---

    originally posted by davew+jun 20 2006, 04:14 pm--><div class='quotetop'>quote (davew @ jun 20 2006, 04:14 pm)</div>

    --- quote start ---

    <!--quotebegin-viethoang@Jun 13 2006, 05:47 PM

    i did as your instructions, but when i ran sopc builder to regenerate, it issued an error:

    ERROR: in F:/altera/mywork/CF/cf_examples_for_niosforum/std_cf_2c35/std_2C35.ptf, can&#39;t read Clock_Source setting for ddr_sdram instance of ddr_sdram_component v3.2.0.[/b]

    How can I fix this bug?

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

    --- Quote End ---

    [/b]

    --- Quote End ---

    I had a similar problem and I&#39;m hoping someone out there can provide some guidance on this one.

    Thanks,

    Dave

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

    [/b]

    --- Quote End ---

    The new ddr core 3.4.0 needs a new resync clock.

    You may try another method, copy the project,

    altera/kits/nios2_60/examples/verilog/niosII_cycloneII_2c35/standard

    add cf component, wire it in top level to cf socket for cf drive or a 20x2 pin header for IDE HDD/DVD writer .

    assign the pins. and regenerate to build sof.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Hippo,

    How about my above question ( about uClinux on 2C35 board )?

    Do you have any idea or solution?

    I used the standard .sof file and the uClinux&#39;s Image that you posted.

    Any one know this problem?

    Thanks,

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

    --- Quote Start ---

    originally posted by viethoang@Jun 21 2006, 11:29 AM

    hi hippo,

    how about my above question ( about uclinux on 2c35 board )?

    do you have any idea or solution?

    i used the standard .sof file and the uclinux&#39;s image that you posted.

    any one know this problem?

    thanks,

    viet.

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

    --- quote end ---

    --- Quote End ---

    I don&#39;t have the dev board to test again right now.

    It will take a couple of days to get the board.

    I will let you know as soon as I get it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Hippo,

    You are so kind for begginers like me.

    Hope we will have answer for this problem.

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

    --- Quote Start ---

    originally posted by hippo+jun 21 2006, 10:32 am--><div class='quotetop'>quote (hippo @ jun 21 2006, 10:32 am)</div>

    --- quote start ---

    <!--quotebegin-viethoang@Jun 21 2006, 11:29 AM

    hi hippo,

    how about my above question ( about uclinux on 2c35 board )?

    do you have any idea or solution?

    i used the standard .sof file and the uclinux&#39;s image that you posted.

    any one know this problem?

    thanks,

    viet.

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

    --- quote end ---

    --- Quote End ---

    I don&#39;t have the dev board to test again right now.

    It will take a couple of days to get the board.

    I will let you know as soon as I get it.

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

    [/b]

    --- Quote End ---

    Hi Hippo,

    Did you re-test this project?

    Do you have any answer for this problem?

    I tried to run many times, but not success.

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

    Yes, I got the board yesterday.

    I tested the zImage_std_2c35 on Altera nios dev board 2c35 (not dsp board) on quartus II v6.0 and nios II v6.0.

    The kernel started without problem.

    For altera nios dev board cyclone2 2C35 edition (not dsp board),

    1. run quartus2, open project altera/kits/nios2/examples/verilog/niosII_cycloneII_2c35/standard

    (for DE2, use DE2_System/DE2_demonstrations/DE2_NET/ DE2_NET.sof)

    2. use quartus programmer to download standard.sof

    3. oepn a nios2 command shell from Windows Start-->Programs-->Altera-->Nios II 6.0 -->Nios II Command Shell

    Note the drives mapping in nios2 sdk shell, drive c: is /cygdrive/c/

    4. nios2-download -g zImage_std_2c35

    5. nios2-terminal

    What is your message during nios2-download?

    does it shown "starting processor at address 0x04800000" ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Jun 28 2006, 02:13 PM

    yes, i got the board yesterday.

    i tested the zimage_std_2c35 on altera nios dev board 2c35 (not dsp board) on quartus ii v6.0 and nios ii v6.0.

    the kernel started without problem.

    for altera nios dev board cyclone2 2c35 edition (not dsp board),

    1. run quartus2, open project altera/kits/nios2/examples/verilog/niosii_cycloneii_2c35/standard

    (for de2, use de2_system/de2_demonstrations/de2_net/ de2_net.sof)

    2. use quartus programmer to download standard.sof

    3. oepn a nios2 command shell from windows start-->programs-->altera-->nios ii 6.0 -->nios ii command shell

    note the drives mapping in nios2 sdk shell, drive c: is /cygdrive/c/

    4. nios2-download -g zimage_std_2c35

    5. nios2-terminal

    what is your message during nios2-download?

    does it shown "starting processor at address 0x04800000" ?

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

    --- quote end ---

    --- Quote End ---

    Hi Hippo,

    It&#39;s OK now http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif . Thank you very much and forgive me for disturbing you.

    Viet.