Working CDC USB device driver using PIC24FJ64zGB002.
File list:
Firmware
.......\MPLAB.X
.......\.......\build
.......\.......\.....\PIC24FJ64GB004_PIM
.......\.......\.....\..................\debug
.......\.......\.....\..................\.....\_ext
.......\.......\.....\..................\.....\....\1083301514
.......\.......\.....\..................\.....\....\..........\usb_function_cdc.o
.......\.......\.....\..................\.....\....\..........\usb_function_cdc.o.d
.......\.......\.....\..................\.....\....\1472
.......\.......\.....\..................\.....\....\....\main.o
.......\.......\.....\..................\.....\....\....\main.o.d
.......\.......\.....\..................\.....\....\....\usb_descriptors.o
.......\.......\.....\..................\.....\....\....\usb_descriptors.o.d
.......\.......\.....\..................\.....\....\926206843
.......\.......\.....\..................\.....\....\.........\usb_device.o
.......\.......\.....\..................\.....\....\.........\usb_device.o.d
.......\.......\.....\..................\.....\....\.........\usb_hal_pic24.o
.......\.......\.....\..................\.....\....\.........\usb_hal_pic24.o.d
.......\.......\.....\..................\production
.......\.......\.....\..................\..........\_ext
.......\.......\.....\..................\..........\....\1083301514
.......\.......\.....\..................\..........\....\..........\usb_function_cdc.o
.......\.......\.....\..................\..........\....\..........\usb_function_cdc.o.d
.......\.......\.....\..................\..........\....\1472
.......\.......\.....\..................\..........\....\....\main.o
.......\.......\.....\..................\..........\....\....\main.o.d
.......\.......\.....\..................\..........\....\....\usb_descriptors.o
.......\.......\.....\..................\..........\....\....\usb_descriptors.o.d
.......\.......\.....\..................\..........\....\926206843
.......\.......\.....\..................\..........\....\.........\usb_device.o
.......\.......\.....\..................\..........\....\.........\usb_device.o.d
.......\.......\.....\..................\..........\....\.........\usb_hal_pic24.o
.......\.......\.....\..................\..........\....\.........\usb_hal_pic24.o.d
.......\.......\dist
.......\.......\....\PIC24FJ64GB004_PIM
.......\.......\....\..................\debug
.......\.......\....\..................\.....\MPLAB.X.debug.elf
.......\.......\....\..................\production
.......\.......\....\..................\..........\MPLAB.X.production.elf
.......\.......\....\..................\..........\MPLAB.X.production.hex
.......\.......\nbproject
.......\.......\.........\private
.......\.......\.........\.......\configurations.xml
.......\.......\.........\.......\private.xml
.......\.......\.........\configurations.xml
.......\.......\.........\Makefile-genesis.properties
.......\.......\.........\Makefile-impl.mk
.......\.......\.........\Makefile-local-PIC24FJ64GB004_PIM.mk
.......\.......\.........\Makefile-LPC_USB_Development_Kit_PIC16F1459.mk
.......\.......\.........\Makefile-PIC24FJ64GB004_PIM.mk
.......\.......\.........\Makefile-variables.mk
.......\.......\.........\Package-LPC_USB_Development_Kit_PIC16F1459.bash
.......\.......\.........\Package-PIC24FJ64GB004_PIM.bash
.......\.......\.........\project.xml
.......\.......\.dep.inc
.......\.......\Makefile
.......\CleanUp - Keep hex.bat
.......\CleanUp.bat
.......\HardwareProfile - dsPIC33E USB Starter Kit.h
.......\HardwareProfile - dsPIC33EP512MU810 PIM.h
.......\HardwareProfile - LPC USB Development Kit - PIC16F1459.h
.......\HardwareProfile - LPC USB Development Kit - PIC18F14K50.h
.......\HardwareProfile - PIC18F Starter Kit 1.h
.......\HardwareProfile - PIC18F46J50 PIM.h
.......\HardwareProfile - PIC18F47J53 PIM.h
.......\HardwareProfile - PIC18F87J50 PIM.h
.......\HardwareProfile - PIC18F87J94 PIM.h
.......\HardwareProfile - PIC18F97J94 PIM.h
.......\HardwareProfile - PIC24EP512GU810 PIM.h
.......\HardwareProfile - PIC24F Starter Kit.h
.......\HardwareProfile - PIC24FJ256DA210 Development Board.h
.......\HardwareProfile - PIC24FJ256GB110 PIM.h
.......\HardwareProfile - PIC24FJ256GB210 PIM.h
.......\HardwareProfile - PIC24FJ64GB004 PIM.h
.......\HardwareProfile - PIC24FJ64GB502 Microstick.h
.......\HardwareProfile - PIC32 USB Starter Kit.h
.......\HardwareProfile - PIC32MX460F512L PIM.h
.......\HardwareProfile - PIC32MX795F512L PIM.h
.......\HardwareProfile - PICDEM FSUSB K50.h
.......\HardwareProfile - PICDEM FSUSB.h
.......\HardwareProfile.h
.......\main.c
.......\rm18F14K50.lkr
.......\rm18f4550 - HID Bootload.lkr
.......\rm18f4550 - MCHPUSB Bootload.lkr
.......\rm18f45k50_g.lkr
.......\rm18f46j50_g.lkr
.......\rm18f47j53_g.lkr
.......\rm18f87j50.lkr
.......\rm18f87j94_g.lkr
.......\rm18f97j94_g.lkr
.......\rotary.c
.......\rotary.h
.......\usb_config.h
.......\usb_descriptors.c