Skip to content

Adding the "dont_erase" option to board preferences #78

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
wants to merge 2 commits into from

Conversation

s-leroux
Copy link

Some AVR require to be erased before uploading a new program. But
the Arduino IDE always pass the '-D' (dont erase) option to avrdude.

This patch allow to disable this feature on a per-board basis.

Some AVR require to be erased before uploading a new program. But
the Arduino IDE always pass the '-D' (dont erase) option to avrdude.

This patch allow to disable this feature on a per-board basis.
When the "dont_erase" preference flag in not set or
is set to "true" (case insensitive) add the -D flag ("normal" behavior).

If the flag is set to anything but "true",
don't append the '-D' option to avrdude ("new" behavior).
@s-leroux
Copy link
Author

s-leroux commented May 1, 2012

In relation with issue #273 and Forum question: Arduino on ATtiny2313

zacmanchester referenced this pull request in zacmanchester/Energia Aug 23, 2012
Changed WDT tick per millis from a calculated value to a fixed value.
@ffissore ffissore added the New label Feb 27, 2014
@cmaglie cmaglie added Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix) Component: Uploading Uploading programs to an Arduino board labels Apr 8, 2015
@ffissore
Copy link
Contributor

When uploading via bootloader, no erase is performed any more, only when uploading via external programmer.

@ffissore ffissore closed this May 11, 2015
@ffissore
Copy link
Contributor

Erase is performed, I missed the end of the command line

@ffissore ffissore reopened this May 11, 2015
@ffissore
Copy link
Contributor

You can achieve the same result taking advantage of the current boards/platforms definitions (txt files)

Create a custom core with a custom board (for example: a copy of the Arduino Leonardo called "my leonardo") and replace avrdude with a custom uploader (for example "non_erasing_avrdude"). Create a new platform.txt (copying arduino one and change command line params

Select "my leonardo" from the Boards list and upload a sketch

@ffissore ffissore closed this May 11, 2015
@ffissore ffissore modified the milestone: Release 1.6.5 May 20, 2015
tbowmo pushed a commit to tbowmo/Arduino that referenced this pull request Jul 14, 2016
Small update to MysensorMicro sketch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE Component: Uploading Uploading programs to an Arduino board feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants