I'm having slight problems communicating with my AXDL345. I know the problem isn't with the sensor, it works reliably with my Arduino. And last attempted 2 times I communicated with it (using SPI port 2), it worked fine.
Here is the code I'm using and associated example outputs:
Using SPI Port 1-
http://www.crennsmind.com/Code/Maple/SPI/ADXL345-Code_Current_SPI1.txt
http://www.crennsmind.com/Code/Maple/SPI/ADXL345-Example_Output_SPI1.txt
Using SPI Port 2-
http://www.crennsmind.com/Code/Maple/SPI/ADXL345-Code_Current_SPI2.txt
http://www.crennsmind.com/Code/Maple/SPI/ADXL345-Example_Output_SPI2.txt
Any ideas why that's happening?