ok,
so..
iv been trying to find time to do fatFS implementation of USB and SD interfaces..
finally got round to it, and for the LIFE of me, the SD card interface just will not work.. i had the usb working, but when i put the sd and usb together, the fatfs library said the usb was write protected, and wouldnt return ok when opening a file on the SD card..
so i started over, fresh project.. and i used the microchip sample code, where they implement an SD interface for pic32..
however... i still cannot get it to work, i dont know why.. i have attached the code, its an mplab x project, but if someone could check it.. let me know if it works, or have a look and spot obvious mistakes it would be much appreciated, also any help trying to debug this issue as im currently very stuck in a very deep rut...
so..
iv been trying to find time to do fatFS implementation of USB and SD interfaces..
finally got round to it, and for the LIFE of me, the SD card interface just will not work.. i had the usb working, but when i put the sd and usb together, the fatfs library said the usb was write protected, and wouldnt return ok when opening a file on the SD card..
so i started over, fresh project.. and i used the microchip sample code, where they implement an SD interface for pic32..
however... i still cannot get it to work, i dont know why.. i have attached the code, its an mplab x project, but if someone could check it.. let me know if it works, or have a look and spot obvious mistakes it would be much appreciated, also any help trying to debug this issue as im currently very stuck in a very deep rut...
Attachments
-
699.5 KB Views: 20