UPDI Failing #585
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 17 replies
-
I struggled with other UPDI programmers until the CH340G. It has been very reliable. Arduino 1.8.19 Megatinycore 2.5.4 [CH340G-Tx] --> [402Ω] [Cathode BAT54C - pin 3] --> [Anode BAT54C - pins 1*2] --> --> [CH340G-RX (UPDI)] You can try slowing down the baud to 57600. This is what a good programming event looks like:
If I disconnect UPDI from the chip, I get your error.
|
Beta Was this translation helpful? Give feedback.
-
hi, why the cap on UPDI to Vcc ?? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing an actual schematic. You've got a good point about the UPDI pin and reset. I'll pull that cap off and see what happens. But what happens with the parts that don't have the "extra" reset pin, you don't have a way to reset the part other than by cycling power? I've seen some references to pulling the UPDI pin high (looking at an errata for the MPLAB SNAP programmer) and I tried that briefuly with no help but maybe the cap was holding me back. |
Beta Was this translation helpful? Give feedback.
-
yes, for 0/1 parts or below 20pin 2 parts, there is no reset pin, if you want button here, idea is some disconecting switch on Vcc (enough mA) |
Beta Was this translation helpful? Give feedback.
-
So after removing the cap from the UPDI pin I was able to get the ping command to work but going back to Arduino and trying to program the part doesn't work. Here's what happens, looks like fuse writing is OK but my blank sketch fails to write `Sketch uses 354 bytes (2%) of program storage space. Maximum is 16384 bytes.
|
Beta Was this translation helpful? Give feedback.
well, datasheet tells about cap to ground, in case the pin is reset, but by default, most important function of PA0/RESET/UPDI pin is UPDI where capacitor is tackling with signal probably ... you reset the device with power-up well... in case you will move to optiboot (which has other quirks now, hopefully fixed soon) then you can have real reset on PB4 with autoreset RC circuit as below... I have BAT85+470ohm and also 10k from Vcc to RX (read somewhere here to overcome rx led on my CH340, dont know if its important though)