Possibly different frequency for bootloader and user code? #263
Answered
by
cpldcpu
TheLastGimbus
asked this question in
Q&A
|
I wanted to reduce power consumption of my board - one of the options is to reduce the clock speed Sadly, looks like USB comm (and thus, this bootloader) require 12MHz at least - legit 💯 But I don't plan using usb in my Arduino code tho... would it be ever possible to have different clock in bootloader and user code? |
Answered by
cpldcpu
Feb 3, 2022
Replies: 2 comments 4 replies
|
That is easily possible now. Just change the clockspeed in your user program. |
3 replies
Answer selected by
cpldcpu
|
Use e.g. https://github.com/SpenceKonde/ATTinyCore and choose the desired program frequency (F_CPU). The core sets the frequency after the bootloader and before your setup to the right value. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is easily possible now. Just change the clockspeed in your user program.