Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD card issues #63

Open
MarianoDesivo opened this issue Nov 1, 2021 · 2 comments
Open

SD card issues #63

MarianoDesivo opened this issue Nov 1, 2021 · 2 comments

Comments

@MarianoDesivo
Copy link

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

@stephenhensley
Copy link
Collaborator

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

Are you working on some custom hardware?

@MarianoDesivo
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants