Hi I'm working on STM32L476RG board when I'm using SPI Peripheral as Receive only mode .In this when im receiving 4 channels data SPI is generating 5 times clock instead of generating 4 times clock.What is the reason for that.
Try to use the normal SPI mode (4 wire) where the MOSI signal die in the chip (no GPIO).
Then check if by properly writing on the data register in 4 bit mode (make sure you do a BYTE write access to the DR) to see what happens. Did not experiment on SPI beyond the 8 and 16 bit mode, just guessing.
Retrieving data ...