SD3234 & Micro SD Card Adapter not working together

Hi,

Following SPI related problem ..... My project must facilitate the following,
a data logger of a Thermocouple max32588 with a display and a micro SD card and a DS3234 rtc.
I experienced the follow. apart from each other the rtc and SD are working.
As soon as I connect the both items to the Arduino NANO and/or UNO makes no difference the clock is not working.
How I connect the RTC and SD

MOSI D11
MISO D12
CLK D13

CC (RTC) D9
CC (SD) D10

Is this a known problem? yes is there a link to the solution?
No what can cause the problem?

Is is advicable to control both items with SPI control like this for example?

pinMode(cs,OUTPUT); // chip select
// start the SPI library:
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE1); // both mode 1 & 3 should work
//set control register
digitalWrite(cs, LOW);
SPI.transfer(0x8E);
SPI.transfer(0x60); //60= disable Osciallator and Battery SQ wave @1hz, temp compensation, Alarms disabled
digitalWrite(cs, HIGH);

Any help is very apreciated,
Kind regards,
ilioSS

This
pinMode(cs,OUTPUT); // chip select
// start the SPI library:
SPI.begin();
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE1); // both mode 1 & 3 should work

should all be in setup(), along with the chip select for the SD card.
Write both chip selects high in setup() also:
digitalWrite(cs, HIGH); // for RTC
digitalWrite(csSD, HIGH); // for SD
Then in loop, make sure you only access one or the other at one time.

Hello Crossroad(s),

Thanks for your swift reply.
So as I expected for each item ( RTC, SD) I have to open do my think and close the SPI.
I will try and will post my result.
Kind regards,
ilioSS

just had the same issue with two spi devices of which 1 was an SD card. This topic solved my issue:

https://forum.arduino.cc/index.php?topic=360718.0

Hope it helps.