Using the programming port to upload can waste a lot of time compared to the native port.
Either of the USB ports can be used for programming the board, though it is recommended to use the Programming port due to the way the erasing of the chip is handled
Source: https://store.arduino.cc/usa/due
It would be interesting to have this speed difference information, because it is about 6.5 times.
Test code (Attached):
Sketch uses 519244 bytes (99%) of program storage space. Maximum is 524288 bytes.
Native USB Port: 31s
Programming Port: 3m20s
Note: Using the native port, it may be necessary to add a delay of 2s in the setup routine, in order to be able to see the initial messages on the IDE 1.8.13 serial monitor.
void setup() {
// put your setup code here, to run once:
delay(2000);
SerialUSB.begin(9600);
SerialUSB.println("Hello");
}
void loop() {
// put your main code here, to run repeatedly:
}
speed_test.zip (472.9 KB)