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.

msp430f5527 USB

Other Parts Discussed in Thread: MSP430F5527

hello,
I am trying to avoid FT232, and send 16b number to msp430f5527 mcu.
i downloaded usb dev package, but was unable to porter code for my board ( i am using msp430 launchpad as programmer)
can any one  help ? ( all i need is send number via labview to hyperterminal, and read that number with mcu, after that, send that number  to 16b dac via spi )

  • Hi,

    Linas Karpavicius97132 said:
    i am using msp430 launchpad as programmer

    I think you can't use the Lauchpad to program the MCU from the F55xx.

    Best regards,

    AES

  • Linas Karpavicius97132 said:
    was unable to porter code for my board

    Why were you "unable"?

    What problem(s), precisely, did you encounter?

     can any one  help ?

    How do you expect anyone to be able to help you resolve your problem(s) if you don't say what those problems are!!

  • since i made pcb with two usb connectors one to mcp430 usb, second to ft232, i can easy ascess msp430f5527 from computer by using ft232, so i can program it with launchpad. (Echo code from samples worked greait )
    Problem is if i try to compile usb code from examples i get milions of errors in code.
    i am trying to use this code:
    \MSP430_USB_Developers_Package_3_11_00\MSP430_USB_API_Stacks\examples\cdcExamples\CCS\C1_Example
    Maybe some one can tell me what should be changed to be able to compile and flash it via launchpad ?

  • Linas,

    Linas Karpavicius97132 said:
    since i made pcb with two usb connectors one to mcp430 usb, second to ft232, i can easy ascess msp430f5527 from computer by using ft232, so i can program it with launchpad.

    Can you give addcional info about your implmentation?

    Linas Karpavicius97132 said:
    \MSP430_USB_Developers_Package_3_11_00\MSP430_USB_API_Stacks\examples\cdcExamples\CCS\C1_Example

    I build this example  with the CCS5.1 without problems. Could you post here some of the errors?

    Best Regards,

    AES

  • Linas Karpavicius97132 said:
    if i try to compile usb code from examples i get milions of errors

    That probably means that you have just a few basic errors and the rest are all direct results of those basic errors - if you fix the basic errors, you will fix all the resultant ones as well!

    eg, if the basic error is that a header file could not be found, that will cause another error for every reference to every symbol that should have been declared in that header!

    Maybe some one can tell me what should be changed to be able to compile and flash it via launchpad ?

    Again, you haven't said exactly what errors you get - so it is impossible to say specifically what you must do to fix them!

    In general, you just need to read the error messgages:  they describe what the problem is - so you know what you have to fix!!

    This is all basic 'C' development stuff - nothing specifically to do with USB or TI or MSP430 or embedded microcontrollers...

  • ok, i fail to do that, so i started working with FTDI chip.
    now i have one question, what kind of routine should i use to send 16b under 1ms .
    i can send with labview LSB and MSB bytes in two packets, and third will be some kind CRC
    i can easy do echo at 480600bps ( 6MHz crystal 52 divider ) .
    But then i try to make some code in echo interrupt i get lot of weird stuff. code just stops working, even at very very slow speeds ( like 1s delay between packets), and after some time  mcu just stops making echo (  i don't use any loop, just if() )
    code looks like this in interrupt;
    #pragma vector=USCI_A0_VECTOR
    __interrupt void USCI_A0_ISR(void)
    {
      switch(__even_in_range(UCA0IV,4))
      {
      case 0:
          break;                             // Vector 0 - no interrupt
      case 2:
      {
          while (!(UCA0IFG&UCTXIFG));
          UCA0TXBUF = UCA0RXBUF;
         a++;
         if(a==1)
            {
                j=UCA0RXBUF;  
            }
        if(a==2)
            {
                k=UCA0RXBUF;
            }
        crc=UCA0RXBUF;
        if(crc==85)
            {
                k=k<<8;
                offset = k + j ;
                PrintInt(offset);//(print Offset to lcd)
                a=j=k=offset=0;
            }
        if(a>=3)
            {
                a=0;
            }

      }
        break;
      case 4:
          break;
      default:
          break;
      }
    }
    85 is fake crc, so i know that is third packet, and i can make 16b integer ( i have declared  i j k a offset as long) and print it to lcd.
    if some one can give advice that would same me alot of time, since i hit a wall and i have no idea where problem is

**Attention** This is a public forum