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.

USB Application is not programming Properly to my Board

Other Parts Discussed in Thread: MSP430F5529

Hi Friends

I am interfacing USB with  MSP430F5529 controller.In that i designed USB part schematic same as in the slaa457.pdf(USB design using MSp430) but i am not able to Program Properly.In MSP430F5529 LP it was Programming well,and I am dumping code from USB developer package(i.e HID H1 LED ON/OFF) working well for launchpad not for my USB interface.When i start to debug the code it was Strucking permanently in the main.c as in below switch case
        switch(USB_getConnectionState())
        {
            Case ST_PHYS_CONNECTED_NOENUM_SUSP:
            
        _bis_SR_register(LPM3_BITS + GIE);          //-->>HERE I AM STRUCKING FOREVER
        }

My questions are,
    1.Is that source demo code in the USB developer Package only Supporting MSP430F5520 LP and Experimentary Board?
    2.If that demo code is valid Universaly to any type of USB interfaces then what and where should be the changes in the Enumerations.
    3.With respect to my USB interface  where should i select the GPIO's and where they were initialised.
    4.I am interfacing B TYPE USB to my Controller without Using any USB HUB IC(TUSB2046 IC) is there any Problem if IC was not used?
    5.If i interface USB directly to my host controller without using USB HUB IC what will be the Enumerations changes in the USB demo code?
    6.Any drivers should be installed exernally?
    7.I have to make any changes in hal.c/hal.h/descripter

8.I attached ccs window please refer.

If anyone has the demo USB code for Experimentary Board please share with me.



I am facing lots of problems here guys please help me,
Thanks lot in advance
Beeresh

  • USB is a complex protocol. It is not possible to help you without seeing the schematic of the hardware.

    How does this device look like when the host tries to enumerate it? (Look at the system log of a Linux host.)
  • Hi friends

    When i programmed USB code for HID led on/off to my board MSP430F5529 i am strucking in

    case ST_PHYS_CONNECTED_NOENUM_SUSP:
                    // Turn off LED P1.0
                    GPIO_setOutputLowOnPin(LED_PORT, LED_PIN);
                    __bis_SR_register(LPM3_bits + GIE);

    _NOP();

        break;

    Thanks in advance

  • Hi Beeresh, 

    I think what you're seeing is the device going into LPM3 at the line 250 of the code and when you press pause on the debugger it "looks" like you are stuck there but you really aren't, you're just in a low power mode and the CPU isn't running. Can you run the USB HID Demo that is available in the TI Resource Explorer and see if you can connect to the device and send commands?

    Also, I recommend taking a look at the Example Guide: MSP430 USB API Stack for a description of how the USB examples work.

    Best regards, 

    Caleb Overbay

  • Hi  Clemens

    Please refer my USB schematic  as per in the slaa457.pdf(USB design for MSP430).Take a look tell me sir any issues in hardware.please refer attached schematics of USB and Controller Part.In USB Schematic i am SHorting Jumper JP12(1,2).

    Thanks

  • Merging these two similar questions.
  • Hi caleb
    I attached the Schematics of both USB and Controller Part. can you Suggest me the is there any hardware issues?
    Thanks in advance
  • I do not see any obvious error in the schematic.

    How does this device look like when the host tries to enumerate it? (Look at the system log of a Linux host.)
  • Beeresh, here are the answers to your questions:

    1.Is that source demo code in the USB developer Package only Supporting MSP430F5520 LP and Experimentary Board?

       The examples that are part of the USB developers Package were designed to work with the MSP430F5529 LP and the MSP-EXP430F5529 board. 
    2.If that demo code is valid Universaly to any type of USB interfaces then what and where should be the changes in the Enumerations.

       Well to change to a differenct micro-controller, select the controller in the options tab for the HI_LedONOFF project in CCS.  The supported micro-controllers are listed in the device.h file
    3.With respect to my USB interface  where should i select the GPIO's and where they were initialised.

      hal.h file.  You can change the Port and Pin based on the schematic of the micro-controller you are using.
    4.I am interfacing B TYPE USB to my Controller without Using any USB HUB IC(TUSB2046 IC) is there any Problem if IC was not used?
      No.  The MSP-EXP430F5529 board does not have a HUB and the examples work fine.


    5.If i interface USB directly to my host controller without using USB HUB IC what will be the Enumerations changes in the USB demo code?

      There are no enumeration changes in USB demo code.
    6.Any drivers should be installed exernally?

      Not for HID and MSC examples.  If you are running CDC examples then you will have to install the .INF file that comes with the examples.


    7.I have to make any changes in hal.c/hal.h/descripter

    Since you have an 8MHz crystal then you will have to change the following values in descriptor.h file:

    #define USB_XT_FREQ_VALUE 4.0 // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT

    #define USB_XT_FREQ USBPLL_SETCLK_4_0

     

    to:

    #define USB_XT_FREQ_VALUE 8.0 // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT

    #define USB_XT_FREQ USBPLL_SETCLK_8_0 // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT

     

    So are you still getting the Error 403 message? Or are you getting USB Device Not recognized when you hook up the USB to the host? 

    Regards,

    Arthi

     

     

     

  • Hi Arthi
    Thank u very much...it worked when I correct crystal frequency to 8Mhz

    Thanks
    Beeresh

**Attention** This is a public forum