Click here to Skip to main content
13,702,184 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

6.4K views
3 bookmarked
Posted 10 Jul 2018
Licenced CPOL

How to Delete COM Port to Make the Plug and Play Instant, No More Delay

, 17 Jul 2018
Rate this:
Please Sign up or sign in to vote.
Speed Arduino Boot

Introduction

This tip will show you how to remove the COM port and speed up the boot of the Arduino.

(Product Name is just a rename of Arduino Leonardo)

To

Using the Code

So, doing that is very simple, but keep in mind that if you want to be able to reupload a sketch to your board again, you need to reburn the bootloader on your board via a programmer as USBTinyISP, because the COM port is used when uploading a sketch, so the reburn will give back the COM port.

Also COM port is used for Serial Communication, so if you remove it, you will only have HID protocol to communicate with your PC.

Here is the instruction:

  • Just put in comment the line below in {Arduino Path}\hardware\arduino\avr\cores\Arduino\USBCore.cpp.
static u8 SendInterfaces()
{
    u8 interfaces = 0;

    // To comment to suppress COM port
        CDC_GetInterface(&interfaces);      
    
    PluggableUSB().getInterface(&interfaces);

    return interfaces;
}

History

  • 10th July, 2018: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

irakyu
France France
No Biography provided

You may also be interested in...

Pro
Pro

Comments and Discussions

 
QuestionUseless Pin
Member 869050418-Jul-18 5:58
memberMember 869050418-Jul-18 5:58 
AnswerRe: Useless Pin
irakyu21-Jul-18 1:00
memberirakyu21-Jul-18 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04-2016 | 2.8.180906.1 | Last Updated 17 Jul 2018
Article Copyright 2018 by irakyu
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid