It’s good to test the wiring one more time to check for shorts. CH341A PCB board trimmed and clean 7) Test the PCB rig When the PCB is trimmed and clean, it looks like this. Please forgive that there is still flux on the terminal base. The finished jumper board looks like this. They are thin so they leave enough room for the through-hole pins to fit. I used the legs from a spare resistor I had lying around. Here I cut the connection between the holes at location 6 with an X-acto knife and added the wire jumpers like in the diagram above. Hardware pin mapping between the CH341A ISP programmer and the SOIC8 test clip for ATtiny chips I’ll only add a total of 12 pins, not 16 pins, to this PCB board. The purple circles denote pins going down. Only one cut needs to be made at pin 6 to isolate those two holes. The plan is to use the empty PCB and create a hardware pin map between the CH341A socket and the ribbon cable connecting the SOIC8 test clip to the ATtiny chips. I use that to permanently map the CH341A pins to the SOIC8 ribbon cable for use with ATtiny chips. The ISP programmer came with a little PCB to make custom expansion projects I suppose. 6) Make a permanent AVR PCI programmer rig The on-board run light on the Digistump is lit awaiting a program for the bootloader. It worked great from the very first flash attempt. Sudo chavrprog - d tiny85 - a s / path/ to/ t85_default. Disco has this version, so here is how I installed it from the Disco repo but stayed on Bionic (credits to George Shuklin).
The programming tool (next section) requires version 1.0.22+ because the API changed slightly.
I’m running Linux Mint Bionic (18.04 LTS) which has only libusb 1.0.21.
#CH341A EEPROM PROGRAMMER INSTALL#
CH341A MiniProgrammer ISP programmer schematic Credit: 2) Install libusb-1.0 (version 1.0.22+) This jibes with the one schematic I found online for this common-yet-obscure ISP BIOS/EEPROM programmer. CH341A ISP programmer pin map to ATtiny chips Now I know which socket pins correspond to the ATTiny function pins (e.g. With an ohmmeter, I mapped the pins with side labels to the socket pins. 1) Map the CH341A 16 pin-outs to the ATtiny 8 pin-outs Not having a dedicated AVR SPI programmer, I want to make a permanent AVR programmer rig instead of using the Arduino UNO ISP sketch trick (I have over 30 ATtiny85 chips and growing). An inexpensive CH341A EEPROM/BIOS programmer from AliExpress.
#CH341A EEPROM PROGRAMMER SERIAL#
Tip: If the AVR chips are hard-bricked, we’ll need a high-voltage serial programmer (HVSP) to reset and rescue them.