-
Notifications
You must be signed in to change notification settings - Fork 22
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
Simplify UPDI documentation #11
Comments
That I realize that part could be better. I am so deep into that stiff that
I'm bad at explaining it sometimes. If you could send in a pr that combines
fixes and annotations where information is missing that would be great a d
would expedite the process as this plays to my weak points( even if it's
not complete) and then I can build on that
…____________
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, Jan 12, 2023, 05:59 David Johnson-Davies ***@***.***> wrote:
The page:
https://github.com/SpenceKonde/AVR-Guidance/blob/master/UPDI/jtag2updi.md
is a bit daunting for someone just wanting to get UPDI to work with DxCore
or megaTinyCore.
It's great to have all that information available, but first there should
be a simple circuit that will work in most cases. After reading all your
advice I think this should be:
-------------------- To Target device
DTR| 470Ω BAT43 __________________
Rx |---------------------,-----------| UPDI
Tx |----/\/\-----|<|----' ,----| Gnd
Vcc|---------------------------/-----| Vcc
CTS| / |__________________
Gnd|-------------------------'
--------------------
I believe this will work whether or not the USB to Serial adapter has an
internal resistor in series with Tx, or the target device has a resistor in
series with UPDI. For most people the BAT43 will be easier to solder than
an SMD diode, and it's available at most hobby shops.
Put this first, and then have all the suggestions about what to do if you
don't have a Schottky diode available, etc., under a Further Information
heading.
—
Reply to this email directly, view it on GitHub
<#11>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW4VZPYNQTAHJPWRKS3WR7PYXANCNFSM6AAAAAATZDPVJU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hmm, was that diagram on the original issue? Because I notice that you've moved the 470 ohm resistor to the other side of the diode. I am.... unsure I guess is the best word.... of what the ramifications of this would be. Can you describe the reasoning behind that proposed change? This change would put me in a really awkward business pickle. Continue to sell hardware that doesn't conform to my recommendations? Or take a loss of $1000-2000 to provide hardware that does, after a 1 month delay for modification and production of every modern AVR design I sell, which doesn't support that configuration. Being as I'm getting forced to relocate again at the end of august, which a couple grand on moving expenses alone and yet more for inevitable knockon expenses, and considering what tindie has brought in lately (not fucking enough) I do not have the resources for the second option. So I'd have to sell boards with a known defect. But as I describe below, I think your approach has a very serious defect if you consider it in the context of designing a safe pcb for any available programmer. There are other issues with your proposed schematic, beyond that it puts me in an awkward position
Can you share what your reasoning was behind proposing a different topology? How would you address the fact that is is impossible to make a board safe to use with a naively constructed jtag2updi (these are still extremely common in the wild, as many people are using that as SerialUPDI, and putting the resistor on the programmer side is rare) which is compatible with that wiring scheme?
|
The diagram I copied from your original document was the one I thought you were recommending, which was:
where you say that the resistor can be in ONE of the three positions. I just chose one of them, to make it simpler. It would be just as suitable to have the diode and resistor positions swapped. I was trying to find the one that will work in 99% of situations. Perhaps I've misunderstood what the "best" circuit" should be, in which case by all means change it. I certainly didn't intend to cause you problems with your board sales. My main point was that you have given people 10 alternative wiring diagrams, which is daunting/confusing. Give them one that will probably work, and then if they have a problem, or want to save components, they can then read the "Advanced suggestions" section later in the README which will give the full list of alternatives. PS Sorry to hear that you're being forced to relocate. I hate moving, so I can imagine how you feel. |
By the way - feel free to totally ignore my original comment. It was just a suggestion. |
The page:
https://github.com/SpenceKonde/AVR-Guidance/blob/master/UPDI/jtag2updi.md
is a bit daunting for someone just wanting to get UPDI to work with DxCore or megaTinyCore.
It's great to have all that information available, but first there should be a simple circuit that will work in most cases. After reading all your advice I think this should be:
I believe this will work whether or not the USB to Serial adapter has an internal resistor in series with Tx, or the target device has a resistor in series with UPDI. For most people the BAT43 will be easier to solder than an SMD diode, and it's available at most hobby shops.
Put this first, and then have all the suggestions about what to do if you don't have a Schottky diode available, etc., under a Further Information heading.
The text was updated successfully, but these errors were encountered: