Skip to content

Error with this function Serial.println("!!!"); #1723

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

Closed
andreimo opened this issue Dec 5, 2013 · 3 comments
Closed

Error with this function Serial.println("!!!"); #1723

andreimo opened this issue Dec 5, 2013 · 3 comments
Labels
Component: Bootloader The bootloader is the program used to load the uploaded program into the microcontroller's memory Type: Duplicate Another item already exists for this topic

Comments

@andreimo
Copy link

andreimo commented Dec 5, 2013

When you set this Serial.println("!!!"); function in your code.
Receive error:
avrdude: stk500v2_ReceiveMessage(): timeout
Solution:
don use more that "!!!" in Serial.print;

@matthijskooijman
Copy link
Collaborator

IIRC !!! is some escape sequence in the bootloader, not sure if this can be fixed.

Note that '!!!' is not the same as "!!!". '' indicates a single character, not a string (and possibly '!!!' is translated to a three or four byte integer, which is still different from a string...).

@ffissore
Copy link
Contributor

ffissore commented Dec 5, 2013

@cmaglie is this a dup of #392 ?

@cmaglie
Copy link
Member

cmaglie commented Dec 6, 2013

Yes, that was a know bug in the Mega bootloader, you can workaround by removing the triple "!!!" or if you really need it, by updating the bootloader with the new one.

C

@cmaglie cmaglie closed this as completed Dec 6, 2013
@per1234 per1234 added Component: Bootloader The bootloader is the program used to load the uploaded program into the microcontroller's memory Type: Duplicate Another item already exists for this topic labels Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Bootloader The bootloader is the program used to load the uploaded program into the microcontroller's memory Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

5 participants