Hi thank you for replying. Yes, it makes sense to use either D pins or C pins. But I am unable to make changes on the hardware side, as it’s a printed circuit board. But is there any possibility, SPI2 can work by changing C3 pin to D4 in HAL layer? because according to stm32f2’s datasheet D4 has alternating function SPI3_SCK, so I am not sure, bit I might be able to use it for SCK?
and this was asked by me, so pins and code are already provided in this link. thank you