[STM32F103C8T6] SPI stuck on HAL_SPI_TransmitReceive using Receive Only Master mode but works on Full-Duplex Master
Hello, everyone this is my first post here.
I'm starting to learn Embedded Programming and I choose STM32F103C8T6 using Blue Pill development board. I'm trying to understand SPI communication, my goal is to read multiple input using 74HC165 IC. I'm able to read that successfully when I set SPI1 to use Full-Duplex Master. But since I just want to receive, I thought why not use the Receive Only Master to save 1 pin(SPI_MOSI) since it won't be used anyway, [but the problem is somehow when I use Receive Only Master the clock pulse is not generated for SPI_SCK pin] The clock turns out to be generated but it stuck on this line HAL_SPI_TransmitReceive when I debug it and I can't get over it . Can anyone help me understand what is going on and what I miss? I also attached the spi and main file.
Please let me know in case I need to provide more information and thank you in advance everyone!
