New User, PlatformIO not completing upload process

Hello,
I am new to coding for Arduino on VSCode and was wondering if anyone could assist me in figuring out how to fix an uploading issue I am having with VSCode and PlatformIO. I am trying to run a very simple program to make sure PlatformIO is working but it is not.

Source File:

#include <Arduino.h>

void setup() {
  // put your setup code here, to run once:
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(5000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  delay(5000);     
}

The following image is one that shows the part where the process gets stuck

Any help would be great! I’d be more than happy to provide any necessary files that could assist in solving the issue.

Hm, seems like the sam-ba upload tool just hangs. Can you flash your Due with the Arduino IDE? Do you have any serial monitor open for the board? (If yes, close it).

1 Like

I do not know if I should delete this post in case someone runs along the same silly issue. But long story short, it was the cable I used. I had gone through multiple forums trying different methods for an hour or two. Then I realized my cable was faulty.

Check your cables…

I appreciate the timely response though.