arduino-examples icon indicating copy to clipboard operation
arduino-examples copied to clipboard

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

Open per1234 opened this issue 4 years ago • 3 comments

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 avatar Sep 26 '20 02:09 per1234

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 avatar Sep 26 '20 02:09 per1234

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

per1234 avatar Sep 26 '20 02:09 per1234

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.

CLAassistant avatar Apr 09 '21 16:04 CLAassistant