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.

RTOS/IWR1443BOOST: Getting SPI to run on dev board and related qs about process

Part Number: IWR1443BOOST
Other Parts Discussed in Thread: CC2650

Tool/software: TI-RTOS

Hello,

I'm trying to get SPI communication working on the IWR1443BOOST, and eventually communicate with a CC2650 dev board. Right now I'm just trying to get confirmation that I'm controlling the SPI pins. In particular, I want to be able to see a SPI clk signal working and observe it on a scope.

So far, I've added SPI code to the mmw_mss_xx14 demo project in main.c and linked the SPI driver. Specifically, I've initiated SPI params by adding it to MmwDemo_initTask and initialized SPI with SPI_init() in the same function. I've set up pinmux to bring out MibSpiA (copied over from the level sense demo with MSP432). I've chosen SPI Master as the mode (copied from SPI driver docs and seen in the pic attached here). I have not started SPI transaction (is this necessary for the clock to turn on or does it just put data on the line?)

My question is what's missing from my code that would enable the SPI clock pin to turn on? Also I'd like more explanation on how SYS/BIOS and TI-RTOS factor in this transaction. I'm a little confused since the IWR demo doesn't seem to depend on TI-RTOS but does use SYS/BIOS.

I'd appreciate any help on this. Thanks!

  • Sabrina Chang said:
    My question is what's missing from my code that would enable the SPI clock pin to turn on?

    The level sense demo correctly shows how to setup and run the SPI peripheral. What failure are you seeing?

    Sabrina Chang said:
    I'd like more explanation on how SYS/BIOS and TI-RTOS factor in this transaction

    The OOB and other demos runs on RTOS. Can you provide some more on what the what demo you are running?

    Regards,

    Charles O

  • Hi Charles,

    I'm just not seeing the clock signal on the pin I enabled in the pinmux. I've initiated parameters correctly (I believe) but have not started transaction, but I expected to be able to probe a clock signal on the pin.

    I'm running the C:\ti\mmwave_sdk_02_01_00_04\packages\ti\demo\xwr14xx demo with SPI coded added into it. I checked the dependencies and TI-RTOS is not used but SYS/BIOS is. I'm confused because I thought SYS/BIOS was needed for setting up TI-RTOS, and I'd like a simple explanation on how this all works. Thanks!