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?

  • Other than modifying the core? (Which, BTW, doesn't affect the bootloader) – Ignacio Vazquez-Abrams Dec 3 '16 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 '16 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. – Ignacio Vazquez-Abrams Dec 4 '16 at 17:30
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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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