Hi. I have a MSP430F5529 _LaunchPad, and I learn examples of ti.com to create a usb-device (example "USB Keyboard Using MSP430"). I make a standart hid-device with hid report type datapipe. I have use only 1 endpoint. I have made a program on PC to connect to my usb-device. It find my usb-device properly, but no data from my LaunchPad to my usb-host on my PC. I use a "usb descriptor tool" to make descriptor for my usb-device. I use a usb-sniffer. Now, there is a problem in my program of LaunchPad. Concretely, I found that the problem is in the procedure of copy data to usb-buffer (for sending to the host computer). Interestingly, in example of ti.com also have the same problem (or I don’t understood anyfing). When copying data to usb-buffer, the usb-buffer is not writable. It does not make any error message, and program works on. If, before the “USBCNF |= USB_EN;” run the “*((unsigned int*)(0x1C80)) = 0x1234;”, watch-control shows that it works perfectly. After the “USBCNF |= USB_EN;” it does not works (in example of ti.com too). As I understood, it must works with bit USB_EN. The USBKEYPID enable by 9628h. The UPLLENin USBPLLCTL is enable. I tried to change the UBME in endpoint_input_1, USBIEPCNF_n, but it does not changeable even when USBKEYPID enable. Please help.
↧