I can upload code to uno on the USB port but I can't upload code to nano on the same port. Even when the port works, the uploading message remains and it doesn't upload. I would be glad if you help me.
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM3"
Failed uploading: uploading error: exit status 1
You control that what you are sure about is true.
Uno r3 has Atmega16U2, Nano has FT232RL
And clones can have whatever.
Check what's written on the chip.