Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP430F5659 has USB BSL

$
0
0
Hi Dennis, We are using USB HUB 4041 interfaced to MSP430F5659 controller. Using CDC example C3 We are able to load the driver and able to access the USB as serial port. But we are unable to send/receive the data from USB port. My observations are given below. 1. While debugging the USB code I found control goes to suspend event in USB ISR after some time. case USBVECINT_SUSR: USB_suspend(); if (wUsbEventMask & USB_SUSPENDED_EVENT) { bWakeUp = USB_handleSuspendEvent(); } break; 2. In main on USB_getConnectionState() call control goes to 1st and 2nd and then in main stays @ case shown in point 3 1st. //If VBUS present, PUR is high, but no enumeration yet if ((USBPWRCTL & USBBGVBV) && (USBCNF & PUR_EN) && (!(bEnumerationStatus == ENUMERATION_COMPLETE))){ return (ST_ENUM_IN_PROGRESS); } 2nd. //If VBUS present, PUR is high, and enumeration is NOT complete, and suspended if ((USBPWRCTL & USBBGVBV) && (USBCNF & PUR_EN) && (!(bEnumerationStatus == ENUMERATION_COMPLETE)) && (bFunctionSuspended == TRUE)){ return (ST_NOENUM_SUSPENDED); } 3. case ST_PHYS_DISCONNECTED: case ST_ENUM_SUSPENDED: case ST_PHYS_CONNECTED_NOENUM_SUSP: __bis_SR_register(LPM3_bits + GIE); _NOP(); break; Please let us know what could be the issue here. Nitesh

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>