-
Notifications
You must be signed in to change notification settings - Fork 148
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
Hardware reset ?? huh #217
Comments
The problem is that if you set the UPDI pin to work as a true hardware
reset, then you can't program it via UPDI. Because you no longer have a
UPDI pin, you have a reset pin. You need to use a HV programmer to reset
the pin to UPDI so you can program it again. That is why it is not an
option - because people would set it, not have HV programmer, and complain
that they had bricked their board (this is the same reason I don';t support
disabling reset on ATTinyCore.
It's an option with the optiboot (serial bootloader) board defs, so that
you can wire up the "autoreset" circuit after burning bootloader like that
(without that, optiboot UX is pretty crap). Judging from interest on my
Tindie store, very few people are doing that :-P
There is an open issue for adding support for HV UPDI programming. Some
guys claim to have gotten it to work using a PWM pin and cap/diode voltage
multiplier, and I think a zener to get the 12v, and IIRC a fet and a
transistor to apply it to the pin - so it's like a buck in parts tops
to make a nano into it. Nobody has gotten a PR to me or made clear exactly
what I need to do to get the core to work with it; it sounds like just some
different parameters for uploading to the board? Since many of my other
priorities are super urgent, and nobody seems to care about this very much
(nobody has mentioned it to me in months!), I'm not going to work on that
until I finish the action items that people are asking about.
…On Sun, Aug 2, 2020 at 6:27 AM Greg Dickson ***@***.***> wrote:
I have been trying to get my head around how to actually use the reset/upi
pin as a hardware reset.
I have used your software trick to great effect but I was wondering how to
just enable the pin directly.
attaching an interrupt or watch during loop for low on the pin == LOW then
calling the reboot function would work
But the datasheet seems to say by setting the RSTPINCFG to 0x2 would
enable it.
I only use the Arduino IDE to set the fuses and it doesnt seem to have it
as an option.
I can understand why too many choices = too many problems. 🔢
Is this just something that we need to do directly??
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#217>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW2SG74FOVJL3FM6HXDR6U5RZANCNFSM4PSPIS3Q>
.
--
____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: spencekonde@gmail.com
|
Hi Spence |
Just for anyone following who wants some very simple code that just works.
|
I have been trying to get my head around how to actually use the reset/upi pin as a hardware reset.
I have used your software trick to great effect but I was wondering how to just enable the pin directly.
attaching an interrupt to trigger it
or reading the pin during the loop
then calling the reboot function would work
But the datasheet seems to say by setting the RSTPINCFG to 0x2 would enable it.
I only use the Arduino IDE to set the fuses and it doesnt seem to have it as an option.
I can understand why too many choices = too many problems. 🔢
Is this just something that we need to do directly??
The text was updated successfully, but these errors were encountered: