[ourarios – Mon Jun 04, 2018 12:17 pm] –
exemple .. arducam .. mini ..OV5642
but with STM32L4 IOT that supports arduino is not functional and the problem the SPI interface
I believe that you have the shield Arducam.
As far as I know, I don’t have this hardware, the shield take a photo then you have to download from the shield, using SPI, and record it on a SD, that use the same SPI.
Since Arduino has only 2k this is done alternating communications, you download a little chunk, then write it to sd, thake another chunk…
This require an arbitration over SPI using the SS signal and maybe this can be the issue: chosing the right SS pins, one for the arducam shield and one for the SD.
I see that some arducam shields has an sd slot but I don’t know if this SD is connected to Arduino or used by the shield. Maybe the problem is only to choose the right SS pin for communicating with the shield.
Take in account that STM32 works at 3.3V levels and maybe your shield not. Some Arducam works with RaspberryPI so uses 3.3V levels.
So we need to know which shield you have.