Search found 2818 matches

by Panu
Tue 2021-05-04 13:55
Forum: VS1010 Forum
Topic: FAT External flash memory with pic18f97j60
Replies: 2
Views: 1276

Re: FAT External flash memory with pic18f97j60

Hi!

VS1010 is a UART controlled MP3 player out of the box. Connect an SD card or a supported SPI flash and upload files via USB, then give the play command from UART to play a file

I think you should get a developer board and the VS1010 handbook to get started.

Good luck!

-Panu
by Panu
Wed 2021-04-28 12:47
Forum: VS1010 Forum
Topic: Write application on SPI flash without SD card nor USB
Replies: 7
Views: 1306

Re: Write application on SPI flash without SD card nor USB

Thank you very much Panu! Unfortunately I hard cost constraints, so I would add the circuitry for the SD card or USB only if absolutely necessary. You don't need to add circuitry for the SD card to your product pcb. Add the circuitry and the SD card to another board, and put just pads for CLK, CMD,...
by Panu
Thu 2021-04-15 10:50
Forum: VS1010 Forum
Topic: Write application on SPI flash without SD card nor USB
Replies: 7
Views: 1306

Re: Write application on SPI flash without SD card nor USB

Hi! There are a lot of possibilities, but they might involve more work than you think. But first, could you consider bringing SD_CMD, SD_DAT0 and SD_CLK to pads or pins on the PCB? IOVDD, GND and those 3 pins is all that is needed to connect an SD card. You could have an SD card on a separate PCB th...
by Panu
Sun 2021-04-04 0:34
Forum: VS1010 Forum
Topic: VS1010D USB Host Driver and MP3 play
Replies: 15
Views: 2455

Re: VS1010D USB Host Driver and MP3 play

Hmm, if you want to do it at the driver level, you probably could set player.auDec.cs.cancel = 1 right before the block read function in scsihost.c file returns S_ERROR, so any currently playing song would stop immediately and control returns to you from the player function. And perhaps also set pla...
by Panu
Sun 2021-04-04 0:26
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 14
Views: 1936

Re: Production programming using SPI Flash as program memory

Great that you found the root cause! Glad that it's working now.

-Panu
by Panu
Tue 2021-03-30 19:26
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 14
Views: 1936

Re: Production programming using SPI Flash as program memory

Well, if any writing has not occurred yet, then no, not really. But you must be extra careful when writing to the SPI flash, please see: http://www.vsdsp-forum.com/phpbb/viewtopic.php?f=15&t=2758 The corruption error occurs after loading usbhost4. Curious. Maybe there's some dependency of either...
by Panu
Tue 2021-03-30 14:50
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 14
Views: 1936

Re: Production programming using SPI Flash as program memory

Hmm. Strange.

Does your code write to the S: disk (SPI flash now)? Using fwrite or something like that?
by Panu
Mon 2021-03-29 19:46
Forum: VS1010 Forum
Topic: VS1010D USB Host Driver and MP3 play
Replies: 15
Views: 2455

Re: VS1010D USB Host Driver and MP3 play

Thanks for the report and great to see that your project is stabilizing. Strange that the IOCTL_RESTART didn't help, I thought it would for sure. But good that you have the workaround of playing a file in the beginning. It can be a silent file, too, and yes, it can play from SPI flash.

-Panu
by Panu
Mon 2021-03-29 18:54
Forum: VS1010 Forum
Topic: Production programming using SPI Flash as program memory
Replies: 14
Views: 1936

Re: Production programming using SPI Flash as program memory

Hi! The system timer interrupt runs once per millisecond. One of the things it does is check that address zero in X memory has the value zero. VSOS wants the first few words of X:memory to contain zeroes. This allows us to trap an early error from a few cases where there is an uninitialized object i...
by Panu
Sat 2021-03-27 18:58
Forum: VS1010 Forum
Topic: VS1010D USB Host Driver and MP3 play
Replies: 15
Views: 2455

Re: VS1010D USB Host Driver and MP3 play

Ok, just a quick comment since I'm in a hurry.. well, actually two. The crash-if-no-sd-play-first problem and the memory size. First of all, congratulations for getting it to work! 1) Uhhh... I'm really sorry to hear that you are experiencing hang-up if not playing something from the SD card first. ...