I have created a blank project using kinetis sdk (it forces you to use kinetis sdk) and processor expert for the K22FN512 that has nothing but a fsl_dspi bean added. The auto-init options are checked and I have verified that MasterConfigureBus gets called within PE_low_level_init. In addition to including stdint.h, the following is the code I have added to the blank project:
DSPI_DRV_MasterTransferData(FSL_SPICOM1, 0, txbuf, rxbuf, 10);
This code compiles without any warnings or errors but when it runs it ends up at the default interrupt handler in an endless loop. Pausing the debugger shows that it is here:
.size Default_Handler, . - Default_Handler
I've given this code plenty of time to run and have concluded that it is never going to exit this loop. It looks like there is supposed to be an interrupt handler for the fsl_dspi bean but I don't see any options for that in processor expert. What am I missing?