Hello all,
I'm currently working with CCSv5.4 on the MSP430F5529 Experimenter board. I'm am developing a code that will take ADC samples and transfer them through USB via CDC COM port to a host application.
I'm having trouble setting up the code to make the device recognized by the computer. I've been looking at example codes that work(C1-C6 in API CDC Examples), and am unable to distinguish the difference. Here's the basic setup of my code:
//USB Includes
#include "USB_API/USB_Common/device.h"
#include "USB_API/USB_Common/types.h"
#include "USB_config/descriptors.h"
#include "USB_API/USB_Common/usb.h"
#include "USB_API/USB_CDC_API/UsbCdc.h"
#include "usbConstructs.h"
#include "F5xx_F6xx_Core_Lib/HAL_UCS.h"
#include "F5xx_F6xx_Core_Lib/HAL_PMM.h"
...
...
VOID Init_Ports (VOID);
VOID Init_Clock (VOID);
int main(void)
{
//USB SETUP
USB_init();
USB_setEnabledEvents(
kUSB_VbusOnEvent + kUSB_VbusOffEvent + kUSB_receiveCompletedEvent
+ kUSB_dataReceivedEvent + kUSB_UsbSuspendEvent + kUSB_UsbResumeEvent +
kUSB_UsbResetEvent);
USB_connect();
if (USB_connectionInfo() & kUSB_vbusPresent){
USB_handleVbusOnEvent();
}
USB_connectionState();
...
...
Is there anything else I need to be including? I do have the USB Config folder, which contains descriptors.h,descriptors.c, UsbIsr.c, and 1CDC_descTool.inf.
Thanks in advance!
David