chipKIT dp32 and SD cards - problem

Post Reply
lpereira
Posts: 4
Joined: Sat Jul 16, 2016 1:00 pm

chipKIT dp32 and SD cards - problem

Post by lpereira » Sat Jul 30, 2016 1:22 am

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.

lpereira
Posts: 4
Joined: Sat Jul 16, 2016 1:00 pm

Re: chipKIT dp32 and SD cards - problem

Post by lpereira » Sat Jul 30, 2016 10:43 pm

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....

Post Reply