Forum Discussion

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

Anyone use the USBHostSlave before?

Hi, hippo, http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

I think I will bother you again, but I really need your help.

I want to use the USBHostSlave as host distributed in opencores, and already use the usbhostslavewrap in the SOPC Builder, successfully generating the .ptf file and making compilation through Quartus. But when I download the .sof file into the dev board, software test code can not run in the board. I use the modelsim in Nios IDE, and get this,

# This testbench includes an SOPC Builder Generated Altera model:# &#39;sdram_test_component.v&#39;, to simulate accesses to SDRAM.# Initial contents are loaded from the file: &#39;sdram.dat&#39;.# ************************************************************# 410590 ns: WARNING: cpu_test_bench/M_wr_data_unfiltered is &#39;x&#39;# 411270 ns: WARNING: cpu_test_bench/M_wr_data_unfiltered is &#39;x&#39;# Break key hit # Break at C:/altera/quartus50/eda/sim_lib/stratix_atoms.v line 3128

in wave table, the value of usb host and device irq of cpu is x, what&#39;s the problem? I allocate the irq number to the usb host and device in SOPC Builder.

I wonder that do you use USBHostSlave before? can uClinux drive of usb host work normally?

I wonder that do you use USBHostSlave before? can uClinux driver of usb host work normally?

1 Reply

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

    I had never used the opencore usbhost. There migh be a Linux driver, but it might be too old and not maintained. I won&#39;t suggest it. You should consider newer USB host chip such as, isp1761.