Page 1 of 1

Samd21, ADXL345 and SPI

Posted: Sun Dec 31, 2017 6:29 pm
by erickinne
I've been fussing with getting the ADXL345 ( and the SAMD21 Mini ( trying to get them to talk. I'm using the example code from the ADXL345 Hookup Guide as well as hooking up the ADXL345 to the SAMD21 as directed for SPI connections. I've gone in and commented out most of the code to try and find what lines are causing the trouble and it seems as though the following line near the top is:


I'm not super experienced in troubleshooting hardware code beyond trying to print out lines as you go through the code, but I can't even get to far in the code and I don't see any errors in the arduino IDE.

Can anyone help?


Re: Samd21, ADXL345 and SPI

Posted: Tue Jan 02, 2018 12:06 pm
by lyndon
The SPI drivers on the Cortex MCUs uses different code than SPI on the Arduino Uno. Be sure you have the right version.