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.

CC2642R-Q1: using Driverlib in the BLE5 Stack application

Part Number: CC2642R-Q1

I use the CC26X2 platform, SDK Version is 5.20.00.52. in my BLE Application. I use the SPI driver to communicate with another IC.

this IC need pull high CS line within 10us when no data communicaion is needed, otherwise,some function couldn't work.

the code piece is below, it couldn't meet my requirement.    

so, I use the "USING_DRIVERLIB" macro code.  it seems to directly operate the lower registers. it could meet my requirement(wihin 10us after write SPI data and pull up CS port)

but, I occured a problem : when system enter standby lowe-power mode ,and then exit this mode to the normal mode,  the SPI couldn't work, (the SPI clock dont work)

could you tell me the constraint of the driverlib  function and the TI-RTOS drvier function? 

could I use the driverlib funcition in the TI-RTOS project?

how can I reslove this problem of wakeup from standby mode. (I need the SPI work norml when exit the standby mode)  

  • Hi zhao,

    The SPI failure after exiting standby mode is most likely due to the application's Driverlib control of the PRCM.  My recommendation is that you would use the Power TI Driver instead, even if you still need to control SPI at the Driverlib level.  If this is unacceptable then you will need to closely follow Table 7-6 of the TRM and Section 4.3 of the TI Drivers Power Management to further understand the correct way for setting a CC26X2 device into standby mode and then recovering from it to go active.

    Regards,
    Ryan