This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Redbear BLE v2 shield + Arduino DUE

I am trying to get the Arduino DUE up and running with the Redbear v2 BLE shield, and SDK 0.9.3.

It was a pretty trivial operation with Arduino YUN, but I not so much for DUE. I can get everything to run on YUN, including the basic communication ECHO sketch (confirming YUN <--> BLE communication) and Hello World (confirming YUN <--> external BLE Central device communication).

However none of them are working for me on DUE (my platform of choice). I suspect that I have the SPI divisor set incorrectly, and do not have a scope to directly check the clock rates. On the YUN, I am using the SDKs supplied SPI_CLOCK_DIV8, but this is not #def'd for SAM based hw platforms, which leaves me to try to guess. And I'm nearly positive that the YUN has a different master clock from DUE anyway.

I've seen other questions here about DUE and the RB BLE shield, so I assume it is possible? Any other pitfalls besides the SPI clock?

Related