SPI should be configured while chip select pin is disabled. Tested with external flash on STM32 F4VE board.