SD + Mega32 + VS1001 = no play :(

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello

I use Chans tinyFFs and it works with my sd-Card.
Furthermore, i let the vs1001 do some beeps.

But the playroutine doesn't work. It does the for-loop for sending 512 byte once and then gets stuck, reading the next 512 byte.

Anyone an idea, where the error could hide?
Thank you
Regards

unsigned char play_file(){
	
	
	unsigned short i=0;
	VS1001_SW_reset();
	for(;;){

			result= f_read(&file, buffer, 512, &br);
			if (result || br == 0) break;   // error or eof
			for(i;i<512; i+=32){
				VS1001_send_SDI_32(&buffer[i]);
				while(PIN_VS1001_DREQ!=1){};
			}			
	}
	f_close(&file);
	return Success;
}