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.

How to program for MSP430 using CDC?

Other Parts Discussed in Thread: MSP430USBDEVPACK

Hello,

I am new to this world of programming and do not really have experience in such project.

I want to write windows application to communicate with firmware written on MSP430 chip through USB. I have somehow figured that i can do that using CDC. It is also natively supported on windows platform. My confusion is do i need to download USB API stack to do so or it can be done natively from C#?

I do not have to write code for firmware simply need to communicate with it from windows app.

Any pointers to begin with would be greatly appreciated..

Thanks

  • dhaval pandya said:
    MSP430 chip through USB.

    Which chip exactly? Are you talking about msp430 having USB peripheral?

    Personally I better use msp430 chips with USCI peripheral and just 3Volts I/O serial interface USB dongle on PC side. There are many around, like this: https://www.sparkfun.com/products/9893

  • umm not sure, my client handed me this "Programmer’s Guide: MSP430 USB API Stack for CDC/PHDC/HID/MSC".

    I have to program read/write commands to read from and write to registers. The device having MSP430 will be connected to PC through USB via USB hub. I know things aren't pretty clear here and it would be difficult to get answered. Sorry i do not understand "Which chip exactly?"

    He is still working on actual device but we need to get started on it from windows end. Per him I have to use CDC and would get support from Windows OS itself to write Windows app.

  • If you are going to use CDC then it is likely that you need to use a virtual serial port (or virtual COM port) on your PC. You need the appropriate drivers from TI and your PC application should have a typical serial port connection (SerialPort class in .NET).

  • dhaval pandya said:
    "Which chip exactly?"

    There are 405 different variants of msp430 microcontrollers currently on product page. Which one exactly you are talking about? Please name part number.

    dhaval pandya said:
    The device having MSP430 will be connected to PC through USB via USB hub.

    Wait... You are PC software programmer? Anyway - For CDC you don't need any drivers whatsoever. CDC serial port means your USB serial adapter becomes standard serial port on computer, you can open it even using file i/o functions.

  •  

    Ilmars said:
    Anyway - For CDC you don't need any drivers whatsoever.


    He will need the INF file which can be generated by the USB Descriptor Tool.

     

  • Thanks for you reply, my confusion is -- I have to make read/write operations on registers and memory of the chip, would i need this http://www.ti.com/tool/msp430usbdevpack ?

  • dhaval pandya said:
    I have to make read/write operations on registers and memory of the chip

    This can be done using msp430 CPU instructions, not using USB.

  • yes however there needs to be an interface to do so from a Windows app, that is the reason i an wondering i may need to download USBdevpack

  • dhaval pandya said:
    yes however there needs to be an interface to do so from a Windows app, that is the reason i an wondering i may need to download USBdevpack

    Are you testing patience of everybody in this forum or what? Your question is answered already:

    Ilmars said:
    CDC serial port means your USB serial adapter becomes standard serial port on computer, you can open it even using file i/o functions.

    You need to develop firmware on msp430 using Code Composer Studio or similar development tool.

    Also you need to develop Windows application which works with serial communications (COM) port through file I/O API. To access serial communications port on Windows you don't need USBdevpack but Visual Studio or similar windows development tool. Please start with reading this:

    http://msdn.microsoft.com/en-us/library/ff802693.aspx

**Attention** This is a public forum