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.

cc3000 basic wifi application on msp430f5529 launchpad on CCS

Other Parts Discussed in Thread: MSP430F5529, ENERGIA, MSP430G2553, MSP430F5229

Hi, i recently downloaded the CC3000 SDK 1.12 from TI website. I want to try the basic wifi application on my msp430f5529 launchpad. But the application is configured for some other launchpad (fram launchpad, msp430g2553 launchpad) and the msp430f5529 experimenter board but not the launchpad. I have already ran the patch programmer for MSP4305529, and tried an CC3000 application for my launchpad from energia no problem there. Since the ports are different from the experimenter board, and that i am using cc3000BOOST rather than cc3000EM, i modified the board.h file from the f5529 experimenter build, and changed the corresponding lines to this version to fit my own hardware module:

#define SPI_IRQ_PIN       BIT0
#define WLAN_EN_PIN        BIT5

#define SPI_SIMO        BIT0
#define SPI_SOMI        BIT1
#define SPI_CLK         BIT2
#define RF_CS           BIT2


// Ports
#define SPI_SEL         P3SEL
#define SPI_DIR         P3DIR
#define SPI_OUT         P3OUT
#define SPI_REN         P3REN

#define RF_CS_SEL       P2SEL
#define RF_CS_OUT       P2OUT
#define RF_CS_DIR       P2DIR

#define SPI_IRQ_DIR       P2DIR
#define SPI_IRQ_IN        P2IN
#define SPI_IRQ_IES       P2IES
#define SPI_IRQ_IE        P2IE
#define SPI_IFG_PORT    	P2IFG

#define WLAN_EN_DIR       P6DIR
#define WLAN_EN_OUT       P6OUT

 Those are all the ports that are connected to the booster pack. But even so, i am not receiving anything through my backchannel UART COM port like i should, according to what i followed on this guide: http://processors.wiki.ti.com/index.php/CC3000_Basic_Wi-Fi_example_application_for_MSP430F5529. Is there something else i forgot to do to make the application work on the f5529 launchpad rather than experimenter board? Thank you!

  • Hi, i recently downloaded the CC3000 SDK 1.12 from TI website. I want to try the basic wifi application on my msp430f5529 launchpad. But the application is configured for some other launchpad (fram launchpad, msp430g2553 launchpad) and the msp430f5529 experimenter board but not the launchpad. I have already ran the patch programmer for MSP4305529, and tried an CC3000 application for my launchpad from energia no problem there. Since the ports are different from the experimenter board, and that i am using cc3000BOOST rather than cc3000EM, i modified the board.h file from the f5529 experimenter build, and changed the corresponding lines to this version to fit my own hardware module:

    #define SPI_IRQ_PIN       BIT0
    #define WLAN_EN_PIN        BIT5
    
    #define SPI_SIMO        BIT0
    #define SPI_SOMI        BIT1
    #define SPI_CLK         BIT2
    #define RF_CS           BIT2
    
    
    // Ports
    #define SPI_SEL         P3SEL
    #define SPI_DIR         P3DIR
    #define SPI_OUT         P3OUT
    #define SPI_REN         P3REN
    
    #define RF_CS_SEL       P2SEL
    #define RF_CS_OUT       P2OUT
    #define RF_CS_DIR       P2DIR
    
    #define SPI_IRQ_DIR       P2DIR
    #define SPI_IRQ_IN        P2IN
    #define SPI_IRQ_IES       P2IES
    #define SPI_IRQ_IE        P2IE
    #define SPI_IFG_PORT    	P2IFG
    
    #define WLAN_EN_DIR       P6DIR
    #define WLAN_EN_OUT       P6OUT

    Those are all the ports that are connected to the booster pack. But even so, i am not receiving anything through my backchannel UART COM port like i should, according to what i followed on this guide: http://processors.wiki.ti.com/index.php/CC3000_Basic_Wi-Fi_example_application_for_MSP430F5529.

    Is there something else i forgot to do to make the application work on the f5529 launchpad rather than experimenter board?

    Thank you!

  • Hi,

    The backchannel UART on MSP430F5529-LP works on a baudrate of 9600. We do have the CC3000 drivers ported for MSP430F5529-LP. Please check the link here: http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads_1.11.1. And look for LaunchPad - MSP430F5529LP

    Thanks & Regards,
    Raghavendra

  • I am having the same issue.  I downloaded the 1.12 version of the cc3000 sdk and the board .h file in the F5529 project is incorrect.  I downloaded the Launchpad -MSP430F5529LP patch, but windows does not recognize it and can't run it.

  • Hi Raghavendra, i downloaded the MSP430F5529-LP package and launched the patch programmer build from it. It seemed to work. Then i used the CC3000hostdriver and CC3000spi modules from the package and compiled the basic wifi application by replacing the corresponding modules to those. I still don't get anything on my UART when running Basic Wifi Application. I am indeed using a baudrate of 9600, since it is configured that way in the Basic Wifi Application.

    void DispatcherUARTConfigure(void)
    {    
         P4SEL = BIT5 + BIT4;                    // P4.4,5 = USCI_A1 TXD/RXD
    
        UCA1CTL1 |= UCSWRST;                    // **Put state machine in reset**
        UCA1CTL0 = 0x00;
        UCA1CTL1 = UCSSEL__SMCLK + UCSWRST;      // Use SMCLK, keep RESET
        UCA1BR0 = 0x2C;                         // 25MHz/115200= 217.01 =0xD9 (see User's Guide)
        UCA1BR1 = 0x0A;   						// 25MHz/9600= 2604 =0xA2C (see User's Guide)
    	
        UCA1MCTL = UCBRS_3 + UCBRF_0;           // Modulation UCBRSx=3, UCBRFx=0
        UCA1CTL1 &= ~UCSWRST;                   // **Initialize USCI state machine**
    	
    	/* Enable RX Interrupt on UART */
    	UCA1IFG &= ~ (UCRXIFG | UCRXIFG);
    	UCA1IE |= UCRXIE; 
    	g_ucLength = 0;
    }

    As far as i remember the ports 4.4 and 4.5 were the ones controlling the UART on my launchpad as well, but i guess my next test is to send a UART char at the very beginning of my code to see if the issue comes from the UART. Ill come back on that.

  • well now it works, i was able ping the device and assign a static IP. i don't exactly know what was wrong, maybe the cc3000 device was in a weird state and so i had to reset it but now it seems fine, but i still have lots of stuff to test.

  • I encountered the same issue as described in this post. I am using the MSP430F5529 Launch Pad and the CC3000 Boost, I downloaded the basic WiFi aplication for the MSP430F5229, installed it and ran it, but found that I got no response from the UART. I then found this post and made the same changes to board.h as Pierre describes. The code in my board.h now appears as shown below:

    There was still no response from the UART, so I tried debugging the code and found that it gets into a loop during initialisation and never exits from that loop. The loop is in the evnt_handler, an extract of the code is as follows:

    It seems that tSLInformation.usEventOrDataReceived is always zero and so the loop never exits.

    If anybody can tell me what I am doing wrong or can suggest an approach to resolving the problem it would be much appreciated.

  • The documentation says 115200 baud but the code says 9600, with a 115200 line commented out.

    Does the LED come on?  if so, initialization was completed.

    Check for the ISR getting called using a breakpoint.  Check for the uart send function being called using a breakpoint.

  • Hi Larry. thanks very much for your response.  I now have the basic WiFi application working.  My problem was that I needed to change the case statement in the ISR because the IRQ is on bit 0 not on bit4.

  • Glad you got it working.  I went thru the same process a few months ago.

    Just this week, however, I ported the demo app to our own board which moved the SPI port and other signals.

    I ran into several porting problems:  my spi port and uart pins were on the same port.  The uart pin configuration code overwrote the SPI pin configuration.  Also the LED port is defined in a #define statement, but the bits are hard coded in the .c file.  Also the USCI controller (B0) is hard coded and must be changed in the .c file.

    But now I have a USB port in the system!

    Regards