chipKIT® Development Platform

Inspired by Arduino™

chipKIT dp32 and SD cards - problem

Created Sat, 30 Jul 2016 00:22:43 +0000 by lpereira


Sat, 30 Jul 2016 00:22:43 +0000

Someone has already successfully use SD cards in chipKIT dp32? I have tried either the SD library (chipKIT core 1.2.1) in the Arduino IDE 1.6.10 either the library (modified) SdFat (March 2015 version) with no success. The initialization always fails with the error (code, data-> 0x01, 0x00). I am using the default pins (SS-> 9, SCK-> 7 MISO-> 10 MOSI-> 18) and a SPI clock -> SPI_SIXTEENTH_SPEED. Also I verified that the SPI bus is OK (shorting MOSI<->MISO and see the correct send->receive character). I also tried several cards (2, 4, 8 GB, FAT32). I also tried several cards (2, 4, 8 GB, FAT32). It might be a power problem???? The hardware (card holder and wiring) is the same as used for days in Arduino M0, 101 and Due, without the slightest problem.Is nonetheless frustrating ... Thanks in advance.


Sat, 30 Jul 2016 21:43:49 +0000

Forget it! As I'm using the serial port 2, I need to remap it to simultaneously use the SPI1 port. Using mapPps, the serial port 2 is OK after remapped but the SPI1 port doesn't works well when I call the Serial1.begin function even without changes the default spi1 port pins! I will study this....