AnsweredAssumed Answered

spi driver crash in KSDK_1.3.0

Question asked by keetle klf;skf on Nov 11, 2015
Latest reply on Nov 16, 2015 by keetle klf;skf

I am testing K64 spi module in KSDK_1.3.0 and KDS3.0.

 

I do like this:

 

uint32_t Spi_Init(void)

{

     .......                                                                                                                                                  // init mux pin, variable  etc.

 

     _int_install_isr(SPI0_IRQn, (INT_ISR_FPTR)SPI0_IRQHandler, NULL);

 

     DSPI_DRV_MasterInit(0, &spiBus_Status, &masterUserConfig);                                                     //return OK

        

     DSPI_DRV_MasterConfigureBus(0, &masterDevice, &calculatedBaudRate);                                   //return OK

 

     DSPI_DRV_MasterTransferBlocking(0, &masterDevice, sendBuffer, receiveBuffer, 6, 5000U);        // when the app start, it crash at here

}

 

I debug it and the app do like this:

 

when the appliaction start, it crash at "DSPI_DRV_MasterTransferBlocking".

 

the mqx issue "mqx_unhandled_interrupt" .

 

 

it crash when "OSA_SemaPost(&dspiState->irqSync)"  execute in function  "static void DSPI_DRV_MasterCompleteTransfer(uint32_t instance)";

 

what is wrong?

Outcomes