oopsy icon indicating copy to clipboard operation
oopsy copied to clipboard

SD card issues

Open MarianoDesivo opened this issue 4 years ago • 2 comments

I have been trying to use the SD with oopsy, but I can't make it work

I have my daisy seed connected with the SD card, it has drumLoop.wav on it

On C++ I have tried this settings with WavPlayer.cpp:

With 400khz it works with 1 bit, but does not with 4 bits With 12.5Mhz it works with 1 bit, but does not with 4 bits (maybe 4 bits is not compatible with those frequencies) On 25Mhz it works on 4 bits On 50Mhz it works on 1 bit, but does not with 4 bits (maybe some inductance on one of the 3 bits left)

In Max/MSP, on source/genlib_daisy.h there is this code:

void sdcard_init() {
			daisy::SdmmcHandler::Config sdconfig;
			sdconfig.Defaults(); // 4-bit, 50MHz
			// sdconfig.clock_powersave = false;
			sdconfig.speed           = daisy::SdmmcHandler::Speed::STANDARD; //this line was commented, I don't know if it works
			sdconfig.width           = daisy::SdmmcHandler::BusWidth::BITS_4;
			handler.Init(sdconfig);
			dsy_fatfs_init();
			f_mount(&SDFatFS, SDPath, 1);
		}

So, changing speed and width on those lines I have tried: 25Mhz 4 bits and 1 bit, not working On default speed (I think it's FAST=50Mhz) 4 bits and 1 bit, not working

I used the 'sdcard-minimal.maxpat' example

MarianoDesivo avatar Nov 01 '21 03:11 MarianoDesivo

Hi @MarianoDesivo could you share a bit more information on your hardware connections?

Are you working on some custom hardware?

stephenhensley avatar Nov 01 '21 17:11 stephenhensley

Hello stephen

I connected everything following the daisy pod schematic, with five 47k pull-up resistors

I have only connected the SD card 9 pins, and ground+Audio-out for the speaker (the 2 GNDs are connected as you told me on other posts)

I can add some photos of the circuit if you need

MarianoDesivo avatar Nov 01 '21 21:11 MarianoDesivo