Dual upload error

I am using arduino portenta h7 on win10.

I tried to use the code made in arduino due. The arduino due code contains the Serial1 command.

The problem is that I tried to upload this code to arduino potenta h7 as it is. So, I connected a USB to serial device to the TX and RX of the arduino portenta h7, and an arduino potenta C-type usb. And when I tried to upload, a strange phenomenon occurred. When uploading, COM10 disappears in the device manager. Arduino portenta h7 was connected to COM10. Or an error occurs when I open the serial monitor of arduino IDE. I think the arduno IDE seems to try to upload to two devices at once. Is there a way to fix it?


upload message

스케치는 프로그램 저장 공간 120880 바이트(15%)를 사용. 최대 786432 바이트.
전역 변수는 동적 메모리 57160바이트(10%)를 사용, 466464바이트의 지역변수가 남음. 최대는 523624 바이트.
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2020 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets

Opening DFU capable USB device...
ID 2341:035b
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08040000, size = 120888
Download [====================== ] 88% 106496 bytesInvalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Cannot open DFU device 2341:035b
Download [=========================] 100% 120888 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state

The upload messages is displayed even though there is no USB to serial on the arduino portenta h7.