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.

MSP430F5508 USB HID

Other Parts Discussed in Thread: MSP430WARE

Hi.

Currently i'm trying to run Example from USB Dev Package. schematic is : MCU + 8MHz rezonator, standart Capasitors and Rezistors fod VDD, PUR, RESET, etc. i've successfully compiled hid datapipe H1 example, mcu recognized by windows as HID with appropriate VID and PID, but PC part of an example gives the error "Incorrect function.unable to write". this is the part of an example based on libusb. java hid example doen't start and i not really intrested in java... example compiled in visual studio 2012 under win8. in MCU part of the code i only changed descriptors.h to "#define USB_XT_FREQ_VALUE       8.0 " and "#define USB_XT_FREQ       USBPLL_SETCLK_8_0" according to my 8MHz  quaz. tryed to use "USB Generic HID Communications 3_0_0_0" (example based on this lib mostly used with PIC chips and i successfully used it with these MCUs but not satisfied, or simply more intrested in msp430) with the relatively same error "writeReportToDevice(): -> Write report failed!". tryed to change example to blink the LED to be sure MCU is not HALTED or RESET, LED is blinking as it must...

what am i doing wrong and where to dig? it seems the issue in MCU part. not posting the whole code, because it's the same as in USBDevPackage with minor changes mentioned above.thanx for any advice.

  • You can try CDC examples, because for them there is no need for PC side application, only terminal, just to be sure that everything is OK with your setup.

  • it's easier to say than do((( on win8 pro a well know issue with unsigned driver appears when i try to install driver for CDC example. and even if successfully install driver, i can't find any info about settings for virtual com-port, i mean baudrate, parity, data-bits, stop-bits, etc. anyway thanx.

  • the hid demo app from msp430ware work ok, i can control MCU from HOST PC?  but there is no sources for this app, and if i use more recent hid demo it even does not start (i mean hid demo packed as jar, not exe). where can i get the sources for exe version of the app? cpp files  nad visual studio project provided in jni folder with jar-app isn't working, it even does not adopted for msp430 examples, theres not "LED ON!, "LED OFF!", it's just a copy of usbhid library...

**Attention** This is a public forum