Posted on May 17, 2011 at 13:24news of my problem. Read SPI->DR and write itself work only if CPHA=0 and CPOL=1 !! If CPOL=0 it doens't work. I do not understand why.
Posted on May 17, 2011 at 13:24i try this but it doesn't work : ... // SPI1 configuration (slave mode) SPI_I2S_DeInit(SPI1); SPI_StructInit(&SPI_InitStructure); SPI_InitStructure.SPI_DataSize = SPI_DataSize_16b; SPI_Init(SPI1, &SPI_InitStructure) //...
Posted on May 17, 2011 at 13:24Hello, I would use the SPI like a shift register (slave mode), ie transmit again the data received. how and when write SPI1->DR with the data in the same SPI1->DR ? It work OK with 2 SPI in slave mode(SP1 receiver and ...