STM32F4 halfduplex spi receives only high bits

I’m working on a project that uses the stm32f4 hal library and halfduplex spi.
I had halfduplex working before but it just complete broke without me doing anything with the code.
same setup in stm32cubeide works perfectly fine.
I made a test project copying the auto generated code from stm32cubeide and that has the same problem.
What could have just broken it over night?