microtherion / ScratchMonkey

Arduino software programmer sketch, supporting ISP, HVSP, and HVPP
67 stars 25 forks source link

Is it possible to do HVPP on ATMega32U4? #13

Closed geocine closed 3 years ago

geocine commented 3 years ago

I don't know what I am asking but I am asking anyway, I recently got my ATMega32U4 bricked so hoping that HVPP is a solution.

microtherion commented 3 years ago

I'm afraid I haven't been doing any electronics for a couple of years, but judging from the 32u4 data sheet, yes, HVPP should be possible. I assume you've already tried serial programming without success?

geocine commented 3 years ago

Yes correct, I suspect I have locked myself out of RESET so looking into this option. If its not too much which part should I look into the datasheet?

microtherion commented 3 years ago

Sections 28.5 and 28.6 in the datasheet, "Parallel Programming". CTRL2-CTRL7 should correspond to PD2-PD7, CTRL0 to PE6, DATA0-DATA7 to PB0-PB7.

I did not publish pinouts for SMD parts, because the pins on these are often not accessible enough to bother trying to reprogram them. So what's your plan? Are you desoldering the MCU, or did you install it in a through-hole adapter?

geocine commented 3 years ago

I will try to figure out how to do this, thanks for the pointers. The pins your mentioned are all broken out on my custom arduino