Connecting Arduino Yun SPI with DeadOn RTC DS3234

Hi,

I cannot make sense of the information from the serial monitor using the DeadOn RTC DS3234 breakout and latest Arduino Yun board. I get almost random data. 1/2 times there is output to the serial monitor. 2/10 times it is the correct time.

I have the SPI connected on the Yun ICSP header.

  • RTC CS/SS - Yun D10
  • RTC MOSI - ICSP Pin 4
  • RTC CLK - ICSP Pin 3
  • RTC MISO - ICSP Pin 1
  • RTC VCC - ICSP Pin 2
  • RTC GND - ICSP Pin 6

I have bought 2x separate DeadOn RTC's and both behave the same way.
I have tried the Arduino power pins and the ICSP power pins and both behave the same way.

I am using the example sketch provided with the SparkFun_DS3234_RTC_Arduino_Library.
Arduino Create web editor (same results with desktop app)
Chip Select is Digital Pin 10.
Serial Baud is set 9600.

This was the closest to the time being correct but the alarm pin wasn't even defined in the sketch. Output lasted 2 seconds.

19:32:12 | Thursday - 11/9/17
ALARM 2!
24:02:71 |

Otherwise usually get this...

00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!
25:165:165 PM | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!
25:165:165 PM | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 - 165/165/165
ALARM 1!
ALARM 2!

Something must be right for the correct time to have been programmed to the RTC.
Best regards,

Alex