2016-03-28 03:38 AM
Hello?
I'm using STM32F446RE chip and STM32Cube_FW_F4_V1.7.0 library. I have tried to use hardware SPI NSS(SPI_NSS_HARD_OUTPUT). But, I can't. It's not working.... Would you please inform me how to use hardware nss functionality? Thank you.2016-03-30 05:57 AM
Hello kwon.tony.001,
I suggest you to use the last library version STM32Cube_FW_F4_V1.11.0You can refer to the manual , exactly in (26.3.5 Slave select (NSS) pin management) section (page 856) to have more idea about configuration hardware SPI NSS.You can also use CubeMX to generate a project with your own configuration.-ForumSTM32-2016-04-08 05:41 AM
Thank you for your comment.
But, I can't download the 'STM32Cube_FW_F4_V1.11.0'. Whre can I find? Thank you. Tony Kwon2016-04-08 07:07 AM
Hello,
The 'STM32Cube_FW_F4_V1.11.0' library is available :http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/LN1897/PF259243Regards2016-04-09 04:16 AM
Hello?
I can only download version 1.10 from the address. Anyway, I have tested with v1.10 but, the hardware SPI CS is still not working. Regards, Tony Kwon2016-04-11 05:58 AM
Hi,
What did you mean about ''It's not working'' ?We need more details about your problem.Is the software driving working as expected ?-ForumSTM32-
Regards2016-04-20 05:12 AM
Thanks for your reply.
As you know that there are 4 signals(CLK, MOSI, MISO, NSS) in SPI communication we are using.
If I set the hardware SPI NSS option(SPI_NSS_HARD_OUTPUT), the NSS signal must move up and down automatically while the data is transferred. But, the NSS signal is held on just LOW. It's not moving.
Regards,
Tony Kwon
2016-04-26 09:04 PM
STM32F427 has similar issues. I got 2 SPI working with NSS, other 2 did not work with NSS. To solve the issue you may assign NSS as GPIO CS.
2016-04-27 12:21 AM
I've got the same issue. However the reference manual says
''NSS output enabled (SSM = 0, SSOE = 1)This configuration is used only when the device operates in master mode. TheNSS signal is driven low when the master starts the communication and is keptlow until the SPI is disabled.''So this is not a ''bug''.