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.

CC2538 ZStack SPI

Other Parts Discussed in Thread: CC2538, CC2530, CC2538-SW

Hi, 

I am using ZStack Energy, SmartRF06EB, CC2538.

I am trying to use the SPI facility in the SSI system for something, my research so far shows me that the HAL_SPI flag needs defining, but when this happens, "hal_spi.h" is included into the build, which does not seem to be set up for the CC2538, because IAR does not find the file.

I have searched the whole ZStack xx directory, and the only versions of hal_spi.h that I can find are intended for the CC2530 and the MSP5438.

I have also searched all over ZStack for anything SPI related, and I can't seem to find something useful for the purposes of a simple data-in data-out test.

I have just downloaded the cc2538-sw which looks helpful, butt is completely separate to ZStack. 

Did I miss something? Is there another way to use the SPI facility within ZStack? 

Thanks!

  • Dan,

    CC2538 project includes driver lib $PROJ_DIR$\..\..\..\..\..\Components\driverlib\cc2538\bin\iar\sdriverlib.lib . You already have all driver APIs included in your project workspace (including SSI). Since you have downloaded foundation software, please refer to spi_master.eww (spi_master.c) and see how SSI is used.  FYI - CC2538 uses SSI0 to access LCD on smartrf06.

    Saurabh