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

The upload "u" command in command sketch Arduino #57

Open
LimAnnY opened this issue Feb 2, 2017 · 3 comments
Open

The upload "u" command in command sketch Arduino #57

LimAnnY opened this issue Feb 2, 2017 · 3 comments

Comments

@LimAnnY
Copy link

LimAnnY commented Feb 2, 2017

While using the upload command, I am not able to upload any of sketch or xbm file, and i can't even type anything in serial terminal ?why is this happening, and any terminal can be used to upload the xbm file?thank you

@LimAnnY LimAnnY changed the title The upload "u" command in command sketch The upload "u" command in command sketch Arduino Feb 2, 2017
@hxw
Copy link
Collaborator

hxw commented Feb 3, 2017

The upload command start a process where the sketch reads ASCII bytes from the serial ports and extracts the hex data from this. Therefore you need a terminal emulator that supports an ASCII upload of the XBM file. One problem that can occur is that the upload is too fast and overwhelms the serial input buffer, so it is best if the upload program is able to add a few milliseconds of delay at the end of each line of data.

The upload does not echo anything until it has read the entire image, so if the buffer was overrun and bytes lost then it will be likely just waiting for more input.

I never had any success using the Arduino UI built in serial terminal with this command. Though you might be able to copy/paste the XBM file a line at a time. I usually used picocom (BSD/Linux).

@LimAnnY
Copy link
Author

LimAnnY commented Feb 3, 2017

thanks for your recommendation, sorry for asking another question, it mentions the serial terminal with ASCII upload capability ,is there any recommended? I would like to give it a try, the one i am using might be not compatible. thanks

@hxw
Copy link
Collaborator

hxw commented Feb 15, 2017

If you are on Windows, possibly PuTTY has this capability (I do not use Windows so do not really have any other useful suggestions)

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