AnsweredAssumed Answered

How do you use DSPI_DRV_MasterTransferData in the fsl_dspi bean?

Question asked by Josh Jordan on Nov 18, 2014
Latest reply on Nov 19, 2014 by Josh Jordan

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:


  uint8_t rxbuf[256];

  uint8_t txbuf[256];

  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:



  b .

  .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?