SPI NSS-Signal by Hardware, using IIS3DWB on an STM32L432 MCU
Hello!
We are developing with the sensor IIS3DWB. I am able to interface it by spi like mentioned in st's github example, and I'm able to use st's platform independend c-drivers. It works fine, I get Acceleration, Temperature, device-ID...
In that example the SPI is used in blocking mode and the NSS pin is set by software.
Now I want to drive the SPI (with st's SPI-HAL) in non-blocking mode, and I want to drive the NSS-Pin by hardware.
Refering the sensor's data sheet, it seems that I need to configure the SPI with CPOL high (CPOL-bit =1), and CPHA to second clock phase (CPHA-bit = 1). But the MCU's reference manual (RM0394, page 1326) says, that the NSS-Hardware-Output-Mode requires clock-pahse-configuration CPHA-Bit==0 (=first clock edge).
Is there any way to bring it to work? (If that helps: The sensor will be the only spi device connected to the mcu)
Does the sensor accept any other spi setup which is compatible to the MCU when the MCU generates the NSS by hardware?
Is there any further documentation or information about the sensor's spi interface than the sensor's data sheet?
Thank for your help! Kind Regards, Patrick
