8000 Update Arduino-usbserial.c by zhengqi-wang · Pull Request #1 · zhengqi-wang/ArduinoCore-sam · GitHub
[go: up one dir, main page]

Skip to content

Update Arduino-usbserial.c #1

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

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Update Arduino-usbserial.c #1

merged 1 commit into from
Jul 20, 2021

Conversation

zhengqi-wang
Copy link
Owner

Fix the unusable programming port by making the erase time longer (250ms->500ms).
According to the datasheet, the recommended erase time is greater than 220ms. In most cases the original program should be OK. However, in my case, the uploading is almost 90% fail rate (Device not found at comx port...). But I can manually press the erase button before the uploading, and it works well. After the proposed changes, the programming port works as expected and I no longer necessary to hit the erase button.

Fix the unusable programming port by making the erase time longer (250ms->500ms). 
According to the datasheet, the recommended erase time is greater than 220ms. In most cases the original program should be OK. However, in my case, the uploading is almost 90% fail rate (Device not found at comx port...). But I can manually press the erase button before the uploading, and it works well. After the proposed changes, the programming port works as expected and I no longer necessary to hit the erase button.
@zhengqi-wang zhengqi-wang merged commit b50a2e9 into master Jul 20, 2021
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

Successfully merging this pull request may close these issues.

1 participant
0