Page 1 of 1

Conflict between SD card and ArduCAM

Posted: Mon May 17, 2021 6:49 am
by mebab
Hi,
Does anybody know what is wrong with either of the SD card and ArduCAM libraries for STM32?
I have provided different chip select pins on my hardware and the same SPI connections to the SD card socket and ArduCAM. Both work fine alone with Nucleo 64.
If I have both, I cannot take any photo unless I run the ArduCAM setup every time that I take the photo which is not good!
I cannot keep the SD card file open if I want to take a photo and record data on SD! If I close the file, I can take the photo. However, the photo data is not correctly recorded!
This is the link for ArduCAM:
I used to have a simple SD card library included Arduino. Do I need to replace it with another library if I use STM32 with Arduino IDE?

Any help is appreciated

Re: Conflict between SD card and ArduCAM

Posted: Thu May 20, 2021 9:07 am
by fpiSTM
mebab wrote: Mon May 17, 2021 6:49 am I used to have a simple SD card library included Arduino. Do I need to replace it with another library if I use STM32 with Arduino IDE?
No you should not.

I never tested Arducam. Have you a logic analyzer to spy SPI data ?

Re: Conflict between SD card and ArduCAM

Posted: Thu May 20, 2021 4:44 pm
by mebab
No. I just have an oscilloscope and check cs and other SPI related pins. From the viewed signals, nothing is explored and either of the mentioned devices doesnt work as expected.