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/CC3100BOOST: TM4C1249XL BoosterPack 2 GPIO and Signal Muxing

Part Number: CC3100BOOST
Other Parts Discussed in Thread: CC3100, CC3100SDK

Tool/software: TI-RTOS

Hi,

I'm trying to get a CC3100 working in slot 2 of an TM4C1294XL using the HTTP GET project shown in the screenshot below:

TI-RTOS middleware handles the CC3100, so I believe all I have to do is update the initWiFi() method of EK_TM4C1294XL.c as follows:

I've also updated the wiFiCC3100HWAttrs constant as follows:

The pinouts I'm using are from Table 2.2 in the TivaTM C Series TM4C1294 Connected LaunchPad Evaluation Kit documentation (http://www.ti.com/lit/ug/spmu365c/spmu365c.pdf

Unfortunately, when I run the app it crashes with the following output:

Any ideas on what I've missed?

Thanks all!

Cheers,

Tim

  • Hi Jim,

    It looks like the application crash is happening when trying to open the spi communication interface to talk to the CC3100. This indicates that something wasn't correctly ported in your code when moving the CC3100 BP to slot 2. I'd recommend taking a look inside user.h within the simplelink host driver as a starting point for verifying the porting layer.

    Even though your only migrating to slot 2, it may be helpful to revisit the porting guide just to double check your configurations. This is found in the CC3100 SDK: CC3100SDK_1.2.0\cc3100-sdk\docs\simplelink_api\programmers_guide.html

  • Hi Austin,

    Thanks for your reply. Do you mean the user.h in the following location?:

    That user.h looks like part of the middleware. Am I ok to edit this file or should I start a new one in the root of my project?

    Cheers,

    Tim

  • Hi Austin,

    It looks like I need to include User.h in my project from the SDK, along with spi.h, spi.c board.h and board.c.

    I'll have to rename the board files given there's already a Board.h in the project.

    The spi and board files have a reference to pinouts in the CC3100_enable, disable and ire functions. I suspect these need updating.

    Unfortunately, when I drop these spi / board files in my project there are a stack of 'bool is undefined' and other strange errors generated from files in TI-RTOS.

    Is there a proper procedure for this?

    Let me know, thanks!

    Cheers
  • Ok I worked it out!

    In Board.h I just needed to set the following:

    #define Board_WIFI_SPI EK_TM4C1294XL_SPI3

    Without this setting, the program was looking for SPI2, which was not configured.