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.
12748 Discussions

Compact Flash HW & SW Examples

Altera_Forum
Honored Contributor II
2,544 Views

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.
0 Kudos
20 Replies
Altera_Forum
Honored Contributor II
1,800 Views

The example 2C35 is nios2 dev board, not dsp board.

0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 12 2006, 12:33 PM 

the example 2c35 is nios2 dev board, not dsp board. 

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

--- quote end ---  

 

--- Quote End ---  

 

 

Thanks for your answer. 

But, how about the error: 

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

Because as far as I know, the 2C35 Nios II development board doesn&#39;t used DDR. 

Thanks, 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- Quote Start ---  

originally posted by viethoang@Jun 12 2006, 01:44 AM 

but, how about the error: 

Error: Node instance "ddr_control" instantiates undefined entity "auk_ddr_controller"[/b]  

Because as far as I know, the 2C35 Nios II development board doesn&#39;t used DDR. 

Thanks, 

Viet.[/b] 

--- Quote End ---  

 

 

The CycloneII Developement Board does use DDR sdram. See the manual http://www.altera.com/literature/manual/mn...loneii_2c35.pdf (http://www.altera.com/literature/manual/mnl_nios2_board_cycloneii_2c35.pdf

I found out that you have to inclued some vhdl files of the ddr sdram megacore component.  

You can find them under <Your megacore directory>/ddr_ddr2_sdram-v3.3.0/lib. 

Just add the .vhdl files to your QuartusII project. 

 

Wolfgang
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

Thanks every body for helping me! 

I have another question, please help me. 

Does any one have examples (or know any documents) about read/write on CF card using file IO functions instead of using read/write byte. 

Thanks, 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- Quote Start ---  

originally posted by viethoang@Jun 12 2006, 05:12 PM 

thanks every body for helping me! 

i have another question, please help me. 

does any one have examples (or know any documents) about read/write on cf card using file io functions instead of using read/write byte. 

thanks, 

viet. 

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

--- quote end ---  

 

--- Quote End ---  

 

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/operatingsystems/%c2%b5clinux)
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

The CycloneII Developement Board does use DDR sdram. See the manual http://www.altera.com/literature/manual/mn...loneii_2c35.pdf (http://www.altera.com/literature/manual/mnl_nios2_board_cycloneii_2c35.pdf

I found out that you have to inclued some vhdl files of the ddr sdram megacore component.  

You can find them under <Your megacore directory>/ddr_ddr2_sdram-v3.3.0/lib. 

Just add the .vhdl files to your QuartusII project. 

 

Wolfgang 

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

 

--- Quote End ---  

 

 

Thank you very much! 

That problem was solved as your instruction. 

But there are two errors that I don&#39;t know: 

1) Error: Tcl error: can&#39;t find package ::ddr::settings 

2) Error: Evaluation of Tcl script auto_verify_ddr_timing.tcl unsuccessful 

How can I solve these errors? 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

1. install ddr core 3.4.0 

2. remove old ddr 3.3.0 lib path and ddr files in quartus II project files. 

3. enter sopc build , there will be warning for unassigned pin of ddr, and set them to "assgined in quartus II". 

4. regenerate sopc builder 

5. compile in quartus again.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 12 2006, 08:04 PM 

1. install ddr core 3.4.0 

2. remove old ddr 3.3.0 lib path and ddr files in quartus ii project files. 

3. enter sopc build , there will be warning for unassigned pin of ddr, and set them to "assgined in quartus ii". 

4. regenerate sopc builder 

5. compile in quartus again. 

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

--- quote end ---  

 

--- Quote End ---  

 

 

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. 

 

How can I fix this bug? 

Thanks, 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

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 </div> 

--- 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)[/b] 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

Hi, 

Anyone could help me? 

I have the same problem when I try on EP2S60ES with zimage_std_2s60

I don&#39;t know why. 

Thanks a lot. 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

Thanks Hippo, 

You are so kind for begginers like me. 

Hope we will have answer for this problem. 

Viet.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,800 Views

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" ?
0 Kudos
Altera_Forum
Honored Contributor II
1,749 Views

 

--- 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.
0 Kudos
Reply