cancel
Showing results for 
Search instead for 
Did you mean: 

STM32(G4) SPI, Hardware NSS with NSSP-Diabled does not work, only with NSSP-Enabled. What is the issue?

Hello,

the SPI does work with NSSP(Negative Slave Select Pulse-Mode), but it does not work if I disable NSSP. As someone pointed out the SPI NSS(P) may only work if the Pulldown of that pin is enabled, but I’m not 100% sure on that one, but it seems to wirk for NSSP-En that way. For NSSP-Disabled I could not get the SPI-Controller to control the NSS(CS).

I observed two issues:

1) On Reset the NSS(CS) is low and will stay low until the first SPI Transaction. I tried to set it via HAL_GPIO_WritePin( … , GPIO_PIN_SET); but that has no effect, maybe because the Pin is controlles by the SPI-HW.

2) Is the serious issue is, if I disable the NSSP, the CS does not work at all.

How can I make the Hardware NSS work with NSSP disabled?

Thanks a lot, Best Regards, Seppel

P.S.

This is the Setup and Waverforms for the NSSP-Disabled, I have a 2s delay on startup, which you can see on the scope-pictures.:

0693W00000Nsk9OQAR.png0693W00000Nsk9JQAR.png0693W00000Nsk99QAB.png0693W00000Nsk9EQAR.png0693W00000Nsk9dQAB.jpg0693W00000Nsk9YQAR.jpg 

This is the setup for the NSSP Enabled, the same was used for NSSP-Disabled(only that NSSP was set to disable. ,I have a 2s delay on startup, which you can see on the scope-pictures.:

0693W00000Nsk9TQAR.jpg

2 REPLIES 2
LHarm.1
Associate III

I am seeing the same issue. I am using a NucleoG474RE. Did you ever find a solution?

hmcb
Associate II

I am also having this issue using NucleoG474RE.
Hardware NSS works exactly as expected when NSSP=1 with a pulse between each word, but when NSSP=0, NSS is held low continuously.

Has anyone found a solution yet?