Hello,I'm pretty new to embedded programming. I want to use the DE2 board as mp3 player, using the USB as input for my mp3 files. So I need an USB host controller. Since the SLS hc controller requires a license, I need to build my own but I can't seem to make it work. This is what i've done so far: In Qsys:
# define USB_BASEADDR 0x00800000 volatile int * hc_data = (int *) USB_BASEADDR; volatile int * hc_com = (int *) USB_BASEADDR+1; ... unsigned int ChipID = 1; *(hc_com) = 0x27; // hc_com=0x00800004 ChipID = *(hc_data); // hc_data = 0x00800000 printf("hc_data is : %4X\n", hc_data); printf("hc_com is : %4X\n", hc_com); printf("ChipID is : %4X\n", ChipID);But this returns 0 According to the datasheet it should return 3630h, what am I missing here? Any help would be appreciated.
Hey im hanging on the same problem. ChipID is 0 and also if i write and then read from the HcScratch register my value is not set. Did you found any solution on that?