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.

Compiler/CC3200-LAUNCHXL: Smart Plug with Remote Disconnect and Wi-Fi Connectivity Issue

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: MSP430I2040, CC3200, UNIFLASH

Tool/software: TI C/C++ Compiler

Hi All,

I am working on TI reference design www.ti.com/.../TIDC-SMARTPLUG-WIFI using CC3200 and MSP40I2024 MCU.

I have connected the CC3200LAUNCHXL and MSP430I2040 EVB using SPI wires as per TI SmartPlug reference design as per below:

CC3200 LAUNCHXL                                                                          MSP430I2040 EVB

SPI_CLK   GPIO5                                                                                      CLK     GPIO22

SPI MISO   GPIO6                                                                                     MISO    GPIO23

SPI MOSI   GPIO7                                                                                     MOSI    GPIO24

SPI CS       GPIO8                                                                                     CS         GPIO21

INTR          GPIO15                                                                                   INTR     GPIO26

 

   The MSP430i2040_Source code contains "emeter-ng" and "emeter-toolkit" source code 

   where emeter-toolkit is the library and emeter-ng is the application project.

   Doubts:

  1. Which firmware should i load on MSP430I2040 EVB for SmartPlug 

  2. Only 5 pins enough to connect between CC3200 LAUNCHXL and MSP430I2040 EVB, or Do i need to change any other connection.

  Could you help to explain the steps to run complete SmartPlug source code in both EVB.

Thanks,

Afkar 

  • Hi Afkar,

    1. You will need to load the application to the MSP430. Your project should have the library linked to it during compile time. You can typically check this in the application project Properties->ARM Linker->File Search Path.

    2. That does look like all the necessary connections.

    Best regards,
    Sarah
  • Hi Sarah,

    Thank you for the reply.

    Yes I have checked smartplug_intg Application project properties which linked to below libraries and this application able to compile and load on CC3200 LAUNCHXL board, No issue

    $PROJ_DIR$\..\..\..\simplelink\ewarm\OS\Exe\simplelink.a
    $PROJ_DIR$\..\..\..\driverlib\ewarm\Release\Exe\driverlib.a
    $PROJ_DIR$\..\..\..\oslib\ewarm\free_rtos\Exe\free_rtos.a

    The problem is which application should I load to MSP430I2040 which i am not able to find.

    Can you help to find the application to load on MSP430I2040 EVB board.

    Thanks,

    Afkar 

  • Hi Afkar,

    In each source folder for CC3200 and MSP430, there is an IAR project (.ewp file ending). You can open these projects in IAR (CC3200 in IAR for ARM, and MSP430 in IAR for MSP430) to rebuild the executable.

    The CC3200 executable is the .bin in CC3200_Source\SmartPlug_Gen0_1.32_1.33\ewarm\Release\Exe. The MSP430i2040 executable is the .d43 file in MSP430i2040_Source\i2040_Source\AFEmetrology\emeter-ng\Debug\Exe. There is an example of how to download firmware to the MSP430 device in this TI Design guide: http://www.ti.com/lit/ug/tidu867/tidu867.pdf. For further questions on how to download to the MSP430i2040, please post on the MSP430 forum.

    Best regards,
    Sarah

  • Hi Sarah,

    Thank you for the reply.

    I will try to load the same firmware on MSP430I2040 EVB and let you know the outcomes.

    BTW just facing restart issue,

    When i load the firmware on CC3200 LAUNCHXL, it runs the program but when i restart the board mean to say unplug & plug the USB cable, it doesn't work any more, we need to load again the program.

    Do we need to change any jumper settings?

    Thanks,
    Afkar
  • Hi Afkar,

    Are you flashing the device with Uniflash or downloading the program with CCS? You will need to flash to the device in order to have the example saved on reset. Please follow these instructions: processors.wiki.ti.com/.../CC31xx_&_CC32xx_UniFlash_Quick_Start_Guide

    You can check your standard jumper settings here. Pay attention to SOP2 during flashing and when you want to run the program: www.ti.com/.../swru376d.pdf

    Best regards,
    Sarah