Been trying to program my at404 from arduino isp for days now, you sir are a life saver! I had no idea my attiny was of a different series with a different program method. I was finally able to upload my binary file! Thank you so much man 🙏
Probably worth soldering up an ATmega board instead of using a breadboard every time you program one. Or even program another 1604 for it, assuming the code can translate. Should also work with the new mega4808s and such. I made a board up with a CH340G and supporting components as a dedicated programmer just using the resistor method because the Spencekonde guy recommended it on the GitHub for being faster. No clue how to debug through it, then again I don’t know if the arduino environment will debug through jtag in the first place. The board would be smaller if I’d used a CH340N, but considering those aren’t in stock I’m happy enough with it. Also modified a clothespeg to use as a 3-pin spring loaded programmer, so I can just put some pads on the edge of a board instead of adding a pin header. Not sure if the jtag-to-UPDI arduino will work as a programmer for use with MPLAB (which IIRC is necessary for some peripherals like the touch pad thing), for that purpose I think I’ve seen someone make a native-USB programmer with a mega32U4, but don’t quote me on that.
i’m waiting for some CH340in parts from AliExpress so I hope they actually do come and are real. i’ve never even used any debug feature on a chip including FPGAs, I wonder if I should look into what that offers. But for these relatively simple projects it may not be necessary.
Looks like the CH340N is still being sold inexpensively on Ali Express. Get in touch, will send you a ch340e and ch340n, if you are Stateside. My problem is sourcing these newer AT chips, which are not common on Ali. My favorite method for creating an ISP for the old AVRs is to use an attiny85, with the reset fused out (TinyISP). It does the whole USB to SPI thing without the need for a crystal. The BMP: a kind of universal JTAG programming/debugging device, built with a mega32u4: github.com/blackmagic-debug/blackmagic/wiki
@@GnuReligion I’ve switched over to ordering ICs in bulk off LCSC (who IIRC are the same company as JLCPCB) due to getting fake IR2148s and even fake TL072s, and things being left out of larger orders. Means I have to plan out every order in advance to offset the shipping fee, but once I do it takes less time to get here and with less uncertainty about shipping. I chose the tiny1614 and tiny214 because they had decent specs, were cheap, and were in stock on LCSC while tiny85s and mega328Ps weren’t. The tiny84s were in stock though, which is kinda odd because they have more pins than an 85, guess that means the shortages really are influenced by what dev-boards are popular.
@@GadgetReboot Have you seen this upload error before: avrdude warning: bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE avrdude warning: bad response to enter progmode command: RSP_NO_TARGET_POWER avrdude error: bad response to read memory command: RSP_NO_TARGET_POWER avrdude: AVR device initialized and ready to accept instructions avrdude error: bad response to read memory command: RSP_NO_TARGET_POWER avrdude error: unable to read byte at address 0x0000 avrdude error: read operation not supported for memory signature avrdude error: unable to read signature data for part AVR32DB32, rc=-2 avrdude error: unable to read signature data, rc=-2 avrdude error: bad response to leave progmode command: RSP_NO_TARGET_POWER avrdude done. Thank you.