Hi, I've programmed my MSP430F5529 as a CDC+HID, and every so often my computer will stay on BIOS for more than usual, and when it boots up, will report unknown device in device manager with code 43. I've tried the USB9 fix, but to no avail. I think the code I'm using for initialization, that was pulled from the USB API, already includes this fix, anyway. This is what I pulled out of USB_init(): /* If USB device is self-powered, USB_SUPPORT_SELF_POWERED = 0xc0 */ #if (USB_SUPPORT_SELF_POWERED == 0xc0) /* To fix USB9 enumeration issue */ USBPWRCTL = 0; #endif And I changed USB_SUPPORT_SELF_POWERED to 0xc0. Originally it was 0x80. That did not help, so I tried changing the following line: for (j = 0; j < 2000; j++) { for (i = 0; i < (DelayConstant_250us); i++) {//wait some time for LDOs (5ms delay) _NOP(); } } I changed j<2000 from j<20. Now it is 500ms. This probably won't help, but I am trying to recreate the problem to see if maybe it did. If this doesn't fix the problem, I might resort to looking for an error produced from USB initialization and restart the MSP430 if I see the error. Any other suggestions would help.
↧