Grounded in your hardware
Answers come from your project, PCB and datasheets, with the page cited.
Your PCB shows U5 = LIS3DSH MEMS sensor, powered from 3V, talking to the STM32 over SPI1 PCB-1.
SPI1 needs SPE set in SPI_CR1 before the first transfer 3.
