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

Fix the problem of unusable programming port for some Due boards #123

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

zhengqi-wang
Copy link

Fix the problem of unusable programming port for some Due boards by making the erase time longer.
https://forum.arduino.cc/t/cannot-upload-to-arduino-due-except-when-pressing-button-erase/517605

Add some readme information based on https://petervanhoyweghen.wordpress.com/2013/02/25/modifying-the-atmega16u2-firmware-on-the-due/

By adopting the proposed changes, the problem is generally solved. The problem will only occur when a heavy serial port usage is in the running program. It is reasonable and it can be overcome by pressing the erase button or clicking upload more times.

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 some mistakes and add some information to make it easier for future developments.
make the erase time longer to fix the unusable programming port for some board
Make the erase time longer to fix the unusable programming port for some Arduino Due boards.
@CLAassistant
Copy link

CLAassistant commented Jul 20, 2021

CLA assistant check
All committers have signed the CLA.

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.

2 participants