I need hekp whit a problem whit compilations

i need help with this problem in my led matrix code (using board as arduino due (native usb port)
my code:
void setup() {
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
}

void loop() {
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
delay(500);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
delay(500);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
delay(500);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
delay(500);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
delay(500);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
delay(500);
digitalWrite(2,LOW);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
delay(500);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,LOW);
digitalWrite(5,LOW);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
digitalWrite(9,HIGH);
delay(500);

}

the problem:
executing command:exit status 1
/usr/local/bin/arduino-cli compile --fqbn arduino:sam:arduino_due_x --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/535769409/build --build-path /tmp/arduino-build-C597ECD39F4990B9ABEF0A8A941818C9 /tmp/535769409/STEREN

/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-size -A /tmp/arduino-build-C597ECD39F4990B9ABEF0A8A941818C9/STEREN.ino.elf

Sketch uses 11292 bytes (2%) of program storage space. Maximum is 524288 bytes.

Upload started

Programming with: Serial

Restarting in bootloader mode

Flashing with command:C:/Users/greni/.arduino-create/arduino/bossac/1.6.1-arduino/bossac.exe -i -d --port=COM7 -U true -e -w -b C:/Users/greni/AppData/Local/Temp/arduino-create-agent024728867/STEREN.bin -R

No device found on COM7

Set binary mode

Send auto-baud

Set binary mode

Review:
Getting started with the Arduino Due | Arduino

Windows device manager should show the com-port that Windows assigns to the Due.

format code please
and the error clearly states "No device found on COM7". which means that port you declared a port in your program when in reality it is not connected to your device.

So how do I change the port? When I connect it, it's the only one that comes out, and if I put it without a port, it says that it's not connected. I already tried changing the cable to another port on my PC, but it only gives the same error, changing the port number.
and i am new using arduino.

Do you have drivers installed? Did you verify the board type?

ArduinoCreateAgent1.2.7?

Does the arduino appear in the device manager?

Please don't hijack threads @piuupiuupiuu1. I have deleted your post on this subject frmo the unrelated topic.

Hijacking is against the Arduino forum rules. The reason is that it may sidetrack the discussion, even preventing the creator of the topic from getting the assistance they need.

This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

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