chipKIT® Development Platform

Inspired by Arduino™

SD card libraries won't compile examples

Created Sat, 11 Jun 2011 23:42:14 +0000 by Pneumatic


Sat, 11 Jun 2011 23:42:14 +0000

I'm trying to use the adafruit data logging shield with the ChipKit32MAX.

However, the SD library examples won't even compile:

For the SD Card Info example, I get this error: In file included from /home/mitch/mpide/mpide-0022-chipkit-linux32-20110520/hardware/pic32/libraries/SD/SD.h:20:0, from CardInfo.cpp:20: /home/mitch/mpide/mpide-0022-chipkit-linux32-20110520/hardware/pic32/libraries/SD/utility/SdFat.h:26:26: fatal error: avr/pgmspace.h: No such file or directory compilation terminated.


Sun, 12 Jun 2011 02:24:10 +0000

There are no ./avr/ files as they are hardware specific. I'm not familiar with the library in question, but you might try commenting that reference out and seeing how the compile goes after that. Unfortunately I suspect you will run into other issues.