Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48
ArduinoISP: Add an option to enable a 4 MHz clock signal on pin 3#17
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This clock signal can be used to reprogram the fuses of an AVR thathas been set wrong (ie. when an external clock has been configured butthe board/chip does not have one).This is disabled by default. We check that we compile for known chipsbefore enabling the clock generation. Maybe there is other chips thatsupport this code.
Hi @procsynth , ArduinoISP sketch is meant to run on all Arduinos (also the ones with ARM chips), so it would be nice to keep the sketch functionalities in sync between all the targets. The functionality is interesting and should be expanded a bit, like having a couple of options for the pin and the frequency to use, and less magic numbers 😉 |
#ifdef ENABLE_CLOCK_GEN | ||
#if defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega88__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@facchinm requested changes on 2019-04-18
ArduinoISP sketch is meant to run on all Arduinos (also the ones with ARM chips), so it would be nice to keep the sketch functionalities in sync between all the targets.
Hi@facchinm, thanks for your reply. I did not think in the scope of the whole Arduino project. |
CLAassistant commentedApr 9, 2021
|
Moved fromarduino/Arduino#8757 by @procsynth
This clock signal can be used to reprogram the fuses of an AVR that
has been set wrong (ie. when an external clock has been configured but
the board/chip does not have one).
This is disabled by default. We check that we compile for known chips
before enabling the clock generation. Maybe there is other chips that
support this code.