Search found 4 matches
- Fri 2022-10-14 13:22
- Forum: VS1010 Forum
- Topic: VS1010D USB Host Driver and MP3 play
- Replies: 36
- Views: 25951
Re: VS1010D USB Host Driver and MP3 play
Hi Hannu, Thanks for your reply. I tried: if (ioctl(VODEV('U'), IOCTL_RESTART, NULL) == S_OK) { // working } And while (ioctl(VODEV('U'), IOCTL_RESTART, NULL) != S_OK) { // loop until it works } Neither of them worked unfortunately. It just returns S_ERROR each time. I have been able to get everythi...
- Wed 2022-10-05 14:20
- Forum: VS1010 Forum
- Topic: VS1010D USB Host Driver and MP3 play
- Replies: 36
- Views: 25951
Re: VS1010D USB Host Driver and MP3 play
Just to follow up a bit on my previous question: I can run the usbhost4 library from the terminal, and before a first USB connection there will be repeated T1 messages (I presume a timeout) until a USB disk is attached VS1010> VS1010>f:/sys/usbhost4.dlx T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1T1...
- Tue 2022-10-04 12:57
- Forum: VS1010 Forum
- Topic: VS1010D USB Host Driver and MP3 play
- Replies: 36
- Views: 25951
Re: VS1010D USB Host Driver and MP3 play
Hello, I am using UsbHost4.dlx (running exactly once) for connecting USB Flash drives and reading mp3 files. In a main loop, I use the following to determine if the USB has been connected/disconnected: if ((PERIP(USB_UTMIR) & USB_UTMIR_LSTATE) != 0) { // USB connected, play some mp3s } else { //...
- Thu 2021-09-30 14:13
- Forum: VS1010 Forum
- Topic: VS1010 run levels 1, 2, 4 and 18 not working after SPI reformat
- Replies: 0
- Views: 5307
VS1010 run levels 1, 2, 4 and 18 not working after SPI reformat
Hello, I'm working with a custom board that doesn't currently have an SD Card configuration, instead there are 256kbytes of SPI Flash and I used run level 4 to mount the SPI flash as a USB drive on Windows for uploading dlx files. I recently had to reformat the SPI Flash drive from Windows. I then c...