A stm32 chip configuration master-slave mode test encountered a problem!
I'm using a SPI1 as a master, SPI2 as a slave, SPI1 provides the clock to SPI2, SPI2 uses the SPI1 clock reference, and when I use __HAL_SPI_ENABLE(&hspi1), the SPI1 clock line pulses, which is fine.but when I call
uint32_t tmp = 0x12345678;
HAL_SPI_Transmit(&hspi2,(uint8_t*)&tmp,4,100);
When using SPI2 to output data, the clock line of SPI1 does not output pulses. I did not turn off SPI1, and SPI2 did not output data. I checked the status register and found no flags. The hardware connection has been connected to SPI1 and SPI2. Excuse me How could something like this happen?

