Does modify fuses in board txt affect this? disable CDC

Hello, I have problem, I want to hide my device from ports when I'm using this joystick program, but i want to hide my board from COM PORT (red circle). I have learn to program my board ISP (my leonardo programmed through isp with arduino uno).

does modify fuses in board txt affect this?

if not, what should i do to make it disappear from COM PORT after I upload the program through ISP?

Thank you

I guess your "ISP" should read "ICSP".

No. The fuses don't do anything on the USB.

Don't use the Serial object. I never tried myself but according to the code I would expect the CDC to not being activated then and your Leonardo will only show up in your "Ports" during 8 seconds after being reset (bootloader).

But I haven't seen your code, maybe your code is activating the CDC without your intention.

Nah. "ICSP" (In-Circuit Serial Programming) is a Microchip thing.
Atmel always called it "ISP" (In-System Programming)

The Arduino core code will normally keep a Com port active in order to facilitate subsequent upload requests. I don't know offhand if there is an easy way to turn that off. (It has nothing to do with the fuses.)

I dont use any serial related code. but i dont know if joystick library use it. but that 8 seconds will show me different port with different name "Arduino Leonardo Bootloader"

I just use Arduino joystick library, "FlightControllerTest" is the example and modify it to work with my button, I dont use any serial begin nor print.

i just found out that CDC is the one i should disable just like you said, but in my USBDesk.h file there is none something like this
//#define CDC_ENABLED //REMOVED BY BOB TO ALLOW ONLY USB KEYBOARD

yes you are right. no easy way to turn that off because i cant find any CDC_ENABLED thing on my files

I checked in the datasheet and you're right, Atmel called it In-System Programming, but Arduino always called the connector ICSP.

Uncomment the following line in USBDesc.h:

//#define CDC_DISABLED

Terminology is always an issue... This is the users guide for the Atmel Dragon programmer...

They also refer to it as SPI(ISP) together... later in the same manual...

:smiley_cat:

already found it in USBCore.cpp, in fact that my USBCore.cpp is different so i copied from this link, now the "COM PORT" is not visible from device manager ports.

but there is another problem, when i disable CDC, my DIY Joystick wont move at all. but when I enable CDC my DIY Joystick is moving.

yes, but I already successfully using isp/icsp/spi (so many aliases), and now I often using "upload using programmer" button in arduino

It's all semantics anyway... if you know what you're doing, it really doesn't need a name... it's just hard to convey what you are doing to others...

I call it isp also... :smiley_cat:

... and you opened another thread in the forum for that, didn't you?

Thank you pylon! I didnt think that my USBDesc.h and USBCore.cpp was different than yours. now I've change it.

before I think it was unrelated issue. the other one used for games. so i made another.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.