While using HW SPI only for write purpose (only STM32 chip as master sends data through MOSI pin), is it possible to assign the MISO pin to general GPIO? I need it because the trace on PCB is already placed in this way.
In more details: the chip is STM32F103, HW SPI1 on pins PA5 (clock), PA6 (MISO) and PA7 (MOSI). The pin PA6 is traced for GPIO purposes on my PCB and needs to be used as output.
If I assign the MISO pin to GPIO output it still doesn't work. Looks like SPI still tries to use it within it's communication. In the code I use stm32duino within PlatformIO, but would appreciate any solution written in HAL or bare registers as well.