AnsweredAssumed Answered

Stm32 Spi Slave - How to detect Chip Select Edges?

Question asked by Joe on Oct 9, 2014
Latest reply on Oct 9, 2014 by Joe
Using:
       
  • Stm32F10x, F2xx, F4xx
  •    
  • gcc-arm-none-eabi-4_8-2014q2

On my Stm32, I've running a spi slave and serving events (RX/TX) within an ISR.
Slave select management is configured to hardware:

    ...
    spiInitStruct.SPI_Mode = SPI_Mode_Slave;
    spiInitStruct.SPI_NSS = SPI_NSS_Hard;
    ...

This works fine so far. My ISR is called in case of RXNE and TXE events.

Now, I wan't also to be notified each time the chip select goes active or inactive.
Would that also be handled over the spi module (same ISR) or do I have to setup the chip select pin (e.g. GPIOB, GPIO_Pin_12 for SPI2) for interrupt handling with an additional ISR (and if so, how to do this)?

Outcomes