This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

simplelink_cc2640r2_sdk_1_40_00_45 spi 初始化就死机

在使用这个sdk 时候, 加上spi的初始化以后,void bspSpiOpen(uint32_t bitRate, uint32_t clkPin),就死机。不知道什么原因。
{
   SPI_init();
   if (spiHandle == NULL)
   {
       /*  Configure SPI as master, 1 mHz bit rate*/
    SPI_Params_init(&spiParams);
    spiParams.bitRate = 1000000;
    spiParams.mode         = SPI_MASTER;
    spiParams.transferMode = SPI_MODE_BLOCKING;
    spiParams.frameFormat = SPI_POL0_PHA0;

    /* Attempt to open SPI. */
    spiHandle = SPI_open(Board_SPI0, &spiParams);

    if (spiHandle == NULL)
    {
      Task_exit();
    }
   }
}