Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"collect2.exe: error: ld returned 1 exit status" #279

Open
ItsGosho opened this issue Jan 29, 2021 · 0 comments
Open

"collect2.exe: error: ld returned 1 exit status" #279

ItsGosho opened this issue Jan 29, 2021 · 0 comments

Comments

@ItsGosho
Copy link

When the any of the serial methods from Arduino is used the error in the title prevents me from
building. Because of that I can't use any of the Serial methods when debugging.

The following will pass:

#include <Arduino.h>
#include "avr8-stub.h"

void setup()
{
  debug_init();

}

void loop()
{
  int a = 5;
}

But any of the following will not:

#include <Arduino.h>
#include "avr8-stub.h"

void setup()
{
  debug_init();

Serial.begin(9600);
Serial.print("Because of that is the coolect2.exe: error: Id returned 1 exit status");
}

void loop()
{
  int a = 5;
}

or

#include <Arduino.h>
#include "avr8-stub.h"

void setup()
{
  debug_init();

Serial.begin(9600);
}

void loop()
{
  int a = 5;
  Serial.println("Because of that is the coolect2.exe: error: Id returned 1 exit status");

}
@ivankravets ivankravets transferred this issue from platformio/platformio-core Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants