#define ARDUCHIP_TRIG 0x41 //Trigger source
#define CAP_DONE_MASK 0x08
Above comment didn't help since the same values exist.
the get_bit fall back on a SPI read so are you sure your wiring is correct ?
With different Chip select pins for each SPI devices, I use the same SPI pins (MOSI, MISO, SCK) to connect to:
1. ARDUCAM
2. LoRa
3. SD card socket
ARDUCAM has also I2c pins (SDA and SCL) that are connected.
When all three devices are connected, it works with Arduino 101 but not with Nucleo64L476. Meanwhile, I have connected a 5.7 Kohm pull-up resistor with the MISO pin and another 5.7 Kohm pull-down with the CK pin.
The following is the relevant part of output after the system starts up:
Code: Select all
CPU is working with f= 80000000 Hz
LoRa init succeeded.
LoRa Simple Node
SD card exists on SmartEye (SN-side)
Initializing SD card...initialization done.
SD Card Volume size= 7616 Mb
-------------------------------------
ArduCAM Start!
SPI interface OK.
OV2640 detected.
Start Capture --> // This is the point where it stops (as already mentioned)
I have two questions:
1. What is the reason that ARDUCAM cannot work with STM32L476 or Nucleo64L476?
2. Do I need to install STM32 based ARDUCAM library or the one designated for Arduino should still work?