Other Parts Discussed in Thread: MSP430WARE, MSP430F5510
Hi all,
While experimenting with the MSP430 USB stack v3.11, the following code in USB_init() from usb.c results in a UNMI:
//configuration of USB module
USBKEYPID = 0x9628; //set KEY and PID to 0x9628 -> access to
//configuration registers enabled
/* To fix USB9 enumeration issue seen by Matrox*/
USBPWRCTL = 0;
When the last line is executed, the code branches to 0xFFFA and resets.
Interestingly, in the previous version of the stack as included with MSP430ware, the last line is not present. When I test the code sans the line, the device enumerates properly.
Am I missing something here?
Tony
[Edit: it just occurred to me that setting USBPWRCTL to 0 also disables the 3.3V LDO, which I'm using to power the rest of the MSP430F5510. So obviously an NMI would occur. Is this a bug then, or are we supposed to just not use the LDO to bus-power the MSP430?]