Skip to content

Board resets before compilation upon clicking upload #8146

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

Open
ivannunyadambiz opened this issue Oct 31, 2018 · 6 comments
Open

Board resets before compilation upon clicking upload #8146

ivannunyadambiz opened this issue Oct 31, 2018 · 6 comments
Assignees
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug

Comments

@ivannunyadambiz
Copy link

currently, when clicking 'upload' the connected target board gets put into reset, then compillation begins.
in the event of compilation errors, the board was reset, but no upload took place.

a better solution would be to wait with resetting the target until it's positive that compiling/linking succeeded and new data can be uploaded.

@per1234 per1234 changed the title board reset upon clicking upload Board resets before compilation upon clicking upload Oct 31, 2018
@matthijskooijman
Copy link
Collaborator

I've noticed this issue as well, I think it has been present for quite some while (at least a year, probably more).

@matthijskooijman
Copy link
Collaborator

W00ps

@facchinm
Copy link
Member

Mmmmh, I don't think it happens on all boards, since the uploader explicitly waits for the compilation to end successfully before kicking in. Could it be related to serial monitor opening/closing?

@facchinm facchinm self-assigned this Oct 31, 2018
@matthijskooijman
Copy link
Collaborator

I suspect that something indeed opens the serial port when the compilation starts (closing the serial port / monitor should not cause a reset AFAIK). I can't remember if this only happens when the serial monitor is opened, but I think it happens even without the serial monitor opened.

@cmaglie
Copy link
Member

cmaglie commented Nov 5, 2018

Instead I've never noticed this, could you post your setup so we can try to reproduce? In particular:

  • board used
  • operating system
  • IDE version
  • is the serial monitor is open when clicking upload?
  • a minimal sketch to see it happens...

@dochawk64
Copy link

This was just referenced at
http://forum.arduino.cc/index.php?topic=600452.0

It seems that, at least withy chinese nanos (both blue & black), resets occurs between compile and burn, after verification, and then again.

BUT only iff the serial monitor is open.

Also, both opening and closing the serial monitor trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug
Projects
None yet
Development

No branches or pull requests

6 participants