BLUENRG2 SPI slave mode issue (getting only the first byte of a frame)
Hello,
I'm working on a BlueNRG2 device.
I'm getting some trouble using the SPI in slave mode.
If I configure the SPI with SPI_CPOL_Low and SPI_CPHA_2Edge configuration, I can receive from the master all bytes.
If I configure the SPI with SPI_CPOL_Low and SPI_CPHA_1Edge I can receive from the master only the first byte after the CS falling edge (all the others bytes are lost). If the master raise and lower the CS and then start a new frame transmission, I receive only the first byte again.
I tryed also the SlavePolling project (in the "BlueNRG-1_2 DK 3.1.0" package) with a little modification in the processCommand function to collect all received bytes in a global array), but I get the same result (I can collect all bytes for the SPI_CPHA_2Edge configuration, I loose all bytes after the first for the SPI_CPHA_1Edge configuration).
Am I missing something? Or there is a limitation about the SPI edge configuration in slave mode?
Thankyou.
Best regards.
Saverio.