SpenceKonde / megaTinyCore

Arduino core for the tinyAVR 0/1/2-series - Ones's digit 2,4,5,7 (pincount, 8,14,20,24), tens digit 0, 1, or 2 (featureset), preceded by flash in kb. Library maintainers: porting help available!
Other
554 stars 144 forks source link

Upload sketch with SerialUPDI HV Programmer doesn't work #1076

Closed avandalen closed 6 months ago

avandalen commented 6 months ago

Hi, I'm working on a new description of how to burn the bootloader: https://avdweb.nl/arduino/attiny3217/bootloader-attiny3217

I have a problem with the megaTinyCore version 2.6.10 and the SerialUPDI_HV_Programmer

The used SerialUPDI HV Programmer is this: https://github.com/wagiminator/AVR-Programmer/tree/master/SerialUPDI_HV_Programmer

This works well: I can upload sketches with the SerialUPDI HV programmer, with the high voltage pulse disabled to an new and unused ATtiny3217.

Problem: Uploading sketches with the 12V pulse enabled, gives an error message, see below.

Can you try to upload a sketch to a new and unused ATtiny3217 with the 12V HV puls enabled?

Maybe it is necessary to first burn the bootloader (UPDI=UPDI, not reset pin) before being able to upload a sketch with HV pulse? The bootloader is maybe just needed to configures some fuses?

Note that, in the year 2020, I had successfully worked with the megaTinyCore and I was able to upload sketches via UPDI and also via the burned bootloader.

Arduino settings: Arduino settings

Scope UPDI with HV

Error messages without HV pulse OK.txt

with HV12V pulse NOT OK.txt

pcfreak1201 commented 6 months ago

May be the timing is too tight between pulse and prog? https://onlinedocs.microchip.com/oxy/GUID-A2109DC3-B5FF-4E1B-BDB5-622C21D35F43-en-US-5/GUID-93D88655-0A9C-4923-A03F-077491438F6F.html

avandalen commented 6 months ago

Maybe, but I cant do anything about it, it is controlled by the megaTinyCore and the Arduino IDE.

avandalen commented 6 months ago

I closed this issue because the actual problem was this: https://github.com/SpenceKonde/megaTinyCore/issues/1077