arduino / arduino-examples

Arduino IDE bundled examples
Creative Commons Zero v1.0 Universal
90 stars 41 forks source link

ArduinoISP: Add an option to enable a 4 MHz clock signal on pin 3 #17

Open per1234 opened 3 years ago

per1234 commented 3 years ago

Moved from https://github.com/arduino/Arduino/pull/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.

per1234 commented 3 years ago

From facchinm on 2019-04-18

Hi @procsynth , thanks for your PR.

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 :wink:

per1234 commented 3 years ago

From @procsynth on 2019-04-23

Hi @facchinm, thanks for your reply. I did not think in the scope of the whole Arduino project. I'll make the changes requested, explain and test the code a little better when I have some time :)

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: per1234
:x: pr1csynth
You have signed the CLA already but the status is still pending? Let us recheck it.