If the pin is in SPI mode, trying to toggle it will not affect SPI communication. But if it's initialized as GPIO last, then clearly SPI mode won't work.
Unclear what "code written earlier" means exactly. Surely you can edit code to do what you want instead of what it did before. The order in which code is executed is going to affect things.
"If you feel a post has answered your question, please click ""Accept as Solution""."
Thank You for response. I have activated SPI1 in f401re(nucleo board), but in code written earlier SCK was common GPIO, connected with LED, and this part of code wasn't commented. May it affect SPI functionality?
If the pin is in SPI mode, trying to toggle it will not affect SPI communication. But if it's initialized as GPIO last, then clearly SPI mode won't work.
Unclear what "code written earlier" means exactly. Surely you can edit code to do what you want instead of what it did before. The order in which code is executed is going to affect things.
"If you feel a post has answered your question, please click ""Accept as Solution""."