ATtiny85 (optiboot) unreliable reprogramming #556
Replies: 2 comments 2 replies
-
Hi heinerolli,
Did you try the 16MHz with PLL? Same problems? |
Beta Was this translation helpful? Give feedback.
-
Is that one of the serial pins? If so, yeah that would hose serial uploads,
and of course be a great way to make the bootloader malfunction and trigger
its bug, too!
…____________
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: ***@***.***
On Tue, May 4, 2021, 04:16 heinerolli ***@***.***> wrote:
Thanks for the detailed reply.
When it fails again, I will try to get the information to you.
Can you give me a hint how to retrieve that hex file - esp in the "fail"
case, where serial seems not to sync anymore?
Also, another question wrt "tuning" ATtinys clock frequency: I never did
this so far - as my understanding was that this tunes the behavior during
running the program, but not for serial programming. - is there a way to
optimize clock frequency also during serial programming? And if so - how?
.... I just realized a stupid mistake on my side: When doing serial
programming, I still had something connected to D1 (Dout from a HX711
module) That can cause trouble, I assume....
In my next reprogramming iterations, I will disconnect that and report
back, if that makes a difference.
(Reporting might take a while, as I am away from home for a while...)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#556 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW23BGYXJH5NWBEPNDLTL6UNXANCNFSM44BI43AA>
.
|
Beta Was this translation helpful? Give feedback.
-
I am using an ATtiny85 with optiboot at 8MHz (internal) and I burned the booloader via Arduino as ISP.
I wired it with all optional capacitors and diode as described in here.
So, burning works and the first couple(!) of reprogrammings via serial work as well.
However, after the 3rd or 4th serial programming, it fails as it seems not to sync.
After doing a re-burn bootloader, ot worls again for 3 to 4 times.
(I need to reprogram often to tune some paramters of the program. Also, the ATtiny is enclosed, so reburning is a pain)
Any idea what is going wrong / how I can make serial programming more reliable?
(running at 1 MHz seems to be a bit more reliable, but I need 8MHz)
Beta Was this translation helpful? Give feedback.
All reactions