Can HID bootloader and CDC device coexist in PIC controller?

Discussion in 'Embedded Systems and Microcontrollers' started by dikshitmm, Dec 17, 2010.

  1. dikshitmm

    Thread Starter New Member

    Dec 17, 2010
    6
    0
    Hi,

    I am using a PIC18F44J50 microcontroller board ( PIC Cocoon 2 ) for a project that involves communication with the PC.

    The support software for the board includes the HID bootloader preprogrammed into the device and I have the CDC serial demo from the Microchip library. Can I use the CDC serial demo along with the HID bootloader? I figure you need to define the board in CDC project files, but is that all? Or do I need to do something more with the code?

    Thanks,
    Mukund
     
  2. GetDeviceInfo

    Senior Member

    Jun 7, 2009
    1,571
    230
    your device then becomes a 'compound' device, and the scheduler handles the queries accordingly.
     
  3. dikshitmm

    Thread Starter New Member

    Dec 17, 2010
    6
    0
    Hi, figured it out. Only one of the drivers: HID or CDC is working at a time, depending on the setting of BM jumper. But t sure wastes some memory to have two sets of drivers that must have some kb of code in common. Is it possible to have a CDC bootloader?
     
Loading...