It seems like some of your pins are configured oddly. SDI should be PIN_D1 and SDO should be PIN_D4 not the other way around like you have it. The usual hardware select pin for SPI2 is PIN_D3 but I suppose you are allowed to use anything you want. Just make sure you actually have your select line run to PIN_D6 like you claim.
Also, does the mmcsd_init() function set up the SPI parameters? Because you otherwise don't seem to be doing that.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum