Nucleo-F411RE NSS pin does not go to High (SPI)[SOLVED]
Hello,
I am following a course on Udemy ("Mastering Microcontroller and Embedded Driver Development" if that matters) and I try to set my Nucleo as SPI master.
I set up the SPI but the NSS pin does not want to go high when I enable the peripheral.
A workaround is to set a pullup on that pin but I don't like the manual idea because as I understood that should happened automatically.
I don't want to bloat you with my code but if needed I can share it.
In general what I do is:
-Setup the USER button as input so when it is pressed to trigger the data send.
-Initialize the MOSI, CLK,NSS pins at GPIO alt fun, No pull ups, push pull, speed low(tried all 4 speeds).
-Initialize SPI2. BUS=Full duplex, Mode=Master, Speed (tried all), DFF=8, CHA=0,CPOL=0,SSM=0,SSOE=1.
This is the lesson's code actually
Also other students had the same problem as I saw in comments.
I hope some more experience could help!
Thank you in advance