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.

MSP430F5659 USB virtual COM port

Ok so iv been working on a design and now i want to incorporate the usb interface into code.  I am able to program via the boot strap loader over usb however i need to establish a usb com port in order to view data from time to time on a serial port monitor.  I downlaoded the MSP430USB developers package_4_20_00 and loaded the program C0_Simple Send which was under examples and CDC_virtualCOMport.   It is not working at all iv tryed to fallow the code and i believe it fails to work in the USB_enable() function.  i believe this due to it never returning anything successful and i have tried changing a USBCNE and USBPLLCTL register before the if statement  checking it in order to force it to return successful and this does show a usb device on my device manager however it doesn't have the pid or vid and it returns error 43....   no surprise since it was forced to be successful.  

Does anyone have any experience with this processor or one of its series and the code for a virtualCOMport.   Any help would be greatly appreciated and if needed i will post whatever code requested.

  • Hi Robert,

    Are you using a TI Board or your own?
    If the USB BSL works, then the USB circuitry should be OK, but note that the USB BSL works with different crystals, but the USB examples are pre-configured to use a 4Mhz crystal.

    Are you using a 4Mhz crystal? if not, you can change the definitions in descriptors.h?
    I assume your project is configured to use F5659 correctly (which should initialize the correct XT2 pins in USB_enable()).
    Does the same happen with other examples which don't require drivers (i.e. HID)?

    Regards,
    Luis R
  • Luis,

      Thanks for posting so quick.

    I am using our own bored and the BSL works and i verified we did the usb circuitry the same.  After i posted i did figure that the Frequency was the problem cause we are using a 24Mhz crystal and i played around with how to change that.  You where right that it was the issue and descriptors.h was where i needed to be looking now it works great thank you.  For some reason when i connect with tara term to monitor the output it wont give me a new line with the carriage return and all that but ill figure that out.  thanks a lot.

**Attention** This is a public forum