1

My Sketch program is working perfectly as a specialized keyboard application on the Leonardo. I want to disable the development tools drivers from the USB, (COM PORT) leaving only the HID Keyboard drivers. I understand I will need to use the Arduino ISP or other method to load my code.

Is there any way to disable the drivers for the development tools from the on board USB, leaving just the HID drivers?

3
  • Other than modifying the core? (Which, BTW, doesn't affect the bootloader) Dec 3, 2016 at 21:51
  • @IgnacioVazquez-Abrams It would affect your ability to (easily) get into the bootloader since that relies on opening the (now non-existent) serial port at 1200 baud to trigger a reboot.
    – Majenko
    Dec 4, 2016 at 14:12
  • 1
    Never could get that to work. I just use Sparkfun's bootloader, which uses a double-press of the reset button to put it in programming mode. Dec 4, 2016 at 17:30

1 Answer 1

1

There is no easy way, no. You have to reprogram the core to break the connection between the USB interface and the CDC/ACM driver. That means working out a new set of descriptors, deleting chunks of code, patching around the newly created holes, etc.

3
  • I was afraid of that...
    – DuckPaddle
    Dec 3, 2016 at 23:48
  • Is this driver code publicly available somewhere?
    – DuckPaddle
    Dec 3, 2016 at 23:49
  • It is on your computer.
    – Majenko
    Dec 3, 2016 at 23:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.