STM32L432kc using both SPI modules

Hi there, I’m trying to interface with some hardware via SPI. I’m using both SPI modules on the L432, one slave device per. Individually they work perfectly, however having both defined in the same program, i run into error 256. They share no pins, im running mbed os with rtos enabled. What could be wrong?

Error 256 from where? What call is returning that? Also, just so we can double check, what pins on the MCU is each SPI device connected to?