Chip Select of SPI in Nucleo F401RE stuck low
Hi guys,
I m having an issue with my Nucleo F401RE. I m porting a code based on the use of SPI2 that worked very well on Nucleo G431RB. I made same setting on Nucleo IDE (see picture).

After inizialization of periperhals NSS (Chip Select) goes to high and everithing seems to work fine until the first transmission:
void SPI_TX_16b(uint8_t* pdata){
HAL_SPI_Transmit(&hspi2, (uint8_t*) pdata, 1, HAL_MAX_DELAY);
};
Then the NSS goes down and stucked there forever. In the picture (yellow is clk, green is data out, and violet is nss).
Any ideas?
Thanks


