UPDI init failed: Can't read CS register #713
-
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 12 replies
-
Don't you love spending an hour debugging an issue just to figure out that the one single cold solder joint just happens to be the one most important pin on your micro 🙄🙄🙄. I'm all good with slow up to fast w/ no write delay for both boards I built up. Thanks for the effort you put into this tool |
Beta Was this translation helpful? Give feedback.
-
Yeah, I wish I could do better error reporting. That error is the "stk500
sync error" of updi, the kind of error you get whether it's a loose wire,
or you sawed the board in half and discarded the partnership the mcu
…____________
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 Thu, May 19, 2022, 01:36 Brian Team ***@***.***> wrote:
Don't you love spending an hour debugging an issue just to figure out that
the one single cold solder joint just happens to be the one most important
pin on your micro 🙄🙄🙄. I'm all good with slow up to fast w/ no write
delay for both boards I built up.
Thanks for the effort you put into this tool
—
Reply to this email directly, view it on GitHub
<#713 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW2DLQDJP5RQVBYFM3DVKXHMZANCNFSM5WK53SAQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've got 3 respins of new series of Serial Adapters on the way in any event (same error mirrored on all designs, only assembled 1 device of 1 out of 3 designs 2 of which will have a builtin UPDI functionality that will be going up for sale in Tindie, and we'll see if anyone is willing to pay for a serial adapter that isn't utter shit. |
Beta Was this translation helpful? Give feedback.
-
Sounds like a plan, please send me the links when you have posted it...
could use another reliable UPDI programmer, they are seeing a lot of use
these days :)
…On Thu, Jul 6, 2023 at 6:39 AM Spence Konde (aka Dr. Azzy) < ***@***.***> wrote:
I've got 3 respins of new series of Serial Adapters on the way in any
event (same error mirrored on all designs, only assembled 1 device of 1 out
of 3 designs 2 of which will have a builtin UPDI functionality that will be
going up for sale in Tindie, and we'll see if anyone is willing to pay for
a serial adapter that isn't utter shit.
—
Reply to this email directly, view it on GitHub
<#713 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQLJU5EZ3MRAZISJPXBPIMTXOX3KVANCNFSM5WK53SAQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
โจฮันเนส เฮอร์มานัส รีดลลิงไฮนสื / Jean Redelinghuys
โทร (+66) (0) 0829130280
E-mail: ***@***.***
|
Beta Was this translation helpful? Give feedback.
-
A report from the trenches: A board similar to this: https://www.amazon.com/dp/B00LZV1G6K Problem: same error: Solution: unsolder / remove both TX led D4 and RX led D4 from the board: http://nicecircuits.com/ch340g-usb-to-rs232-ttl-module-schematic-d-sun-v3-0/ |
Beta Was this translation helpful? Give feedback.
-
Oh, yeah for serial updi, I'm pretty sure we mention in the docs, there
much be **no** load on rx whatsoever, because it has to be driven low by
PA0. Unlike a normal i/o pin, where youll get 20 mA with under a volt of
drop, when the reset pin is doing output stuff - since thats the same pin
that the HV pulse is applied to - you get wet noodles for pin drivers,
which (see datasheet) are only speced for under 1v of drop with half of a
milliamp. It's kind of like having a aprx 2k resistor in series with the
output pin (not exactly, as it's a pullup much like the avr's own ones. SO
- you have an active low bidirectional data line, with the the updi
protocol having been designed so that, implemented correctly, no collision
happens.
What are the key things that need to work?
1. The programmer must be able to overcome the 35k-ish pullup resistance,
and all loads on that line, the diode or resistor between TX and the updi
line close enough to ground to read as zero. As it happens, the CH340G is
beefy as far as pin driving goes, so as long as you accounted for the
resistor on the board when sizing your additional resistor, if doing 4.7k
resistor. Using a diode, it *must* be a schottky, it fails to drive the pin
low enough to be seen - or worse, gets there but is flaky. A few weeks ago
someone posted upload log that eventually ended with a failure... and I
scroll up. It had experienced like half a dozen "errors" and managed to
pick itself back up. I never found out what was going on there, but I
strongly suspected either poor contact between pin and receptacle or one
side was occasionally missing pulses because ut was almost unable to see
the transition in time.
2. The target must meet a similar critera. And on tinyAVR this is where the
problems happen. Instead of nice beefy 20mA pins you get a scrawny runt of
a pin driver. It's so weak, that at 5v, driving to ground, just half an mA
of current will cause it to be unable to pull the pin down below 1v. Any
capacitance will slow the transitions. And, of course, an LED on RX is
guaranteed not to work on any tinyAVR. Dx/Ex are probably better behaved
than that.
3. Programmer must implement a protocol consistent with UPDI for that
family of chips (still a problem for some upload meathods.
Those are the main things. The tinyAVR reset pin is very weak (the pin that
takes the HV pulse is *always* very very weak as an output, so much so that
on Dx and Ex they declared the pin input only when used for GPIO (or rather
GPI).And stupid manufacturers just love putting onto USB-serial bridges
which don't have a separate pin to control the LEDs, bidirectional activity
LEDs, which the UPDI/Reset pin would be hard presed to illuminate.
…____________
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, Nov 7, 2023, 13:29 Andrei Pozolotin ***@***.***> wrote:
A report from the trenches:
A board similar to this: https://www.amazon.com/dp/B00LZV1G6K
Problem: same error: UPDI init failed: Can't read CS register:
Solution: unsolder / remove both TX led D4 and RX led D4 from the board:
http://nicecircuits.com/ch340g-usb-to-rs232-ttl-module-schematic-d-sun-v3-0/
[image: image]
<https://user-images.githubusercontent.com/1622151/281140382-87d2b71e-9716-4591-a6cd-16f364f798d9.png>
[image: image]
<https://user-images.githubusercontent.com/1622151/281140471-51d0f70c-cc68-461d-b772-004cb0955905.png>
—
Reply to this email directly, view it on GitHub
<#713 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW52REHCAQJIP2AZYETYDJ4Z3AVCNFSM5WK53SA2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TONJQGIZDCNA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
by the way, I am using your great breakout boards (thanks again): and I discovered that the CH340G adapter above, with leds removed, works just fine on linux via |
Beta Was this translation helpful? Give feedback.
-
I encountered a similar problem and spent a couple of days on it. If you use a board similar to this: https://www.amazon.com/dp/B00LZV1G6K, it turns out that a Schottky diode and a 1.5 k resistor (R4) are connected in series. As a result, the CH340 cannot lower the voltage to less than 1.4 volts on RX, or even 1.6. I did not remove the LED, I simply replaced R4 with 330 ohms, which was enough to reduce the lower level to 900 mV.This solved the problem, but probably this board should now only be used as a UPDI programmer.Here is the situation before replacing the resistor: |
Beta Was this translation helpful? Give feedback.
Don't you love spending an hour debugging an issue just to figure out that the one single cold solder joint just happens to be the one most important pin on your micro 🙄🙄🙄. I'm all good with slow up to fast w/ no write delay for both boards I built up.
Thanks for the effort you put into this tool