Skip to content

SD card issues #63

@MarianoDesivo

Description

@MarianoDesivo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions