Using the Minipro Universal Programmer TL866CS

I wanted to program a couple PICs(16F54) and an EEPROM. This minipro programmer looked promissing, cheap and there seemed to be some open source support for it. I ordered it off Amazon. It looked great nice action on the ZIF socket. It took a little wrangling to get the software where I wanted it. This is that process.

Tools

Using the open source minipro software

  1. Installing the opensource minipro software was straight forward and worked as advertised. It does however complain that the firmware is out of date. At least on my programmer it did.

  2. It can be run from the build directory, but it is better if a deb is created or it is fully installed with make install.

  3. To get all the build dependencies I needed to as root: "apt-get install fakeroot dpkg-dev libusb-1.0-0-dev"

  4. To create a deb, the recomendded command did not work for me. I had to log in as root then run: "fakeroot dpkg-buildpackage -b -us -uc"

  5. If you install it by either running make install or by creating a deb package you will have access to its man page which covers all it use.

  6. The tool can use either raw bin files or standard hex files. I prefer the hex files as they are easier to hand edit. At least for the PIC16f54 I'm using the tool requires a full image size. If you just tack a byte onto the end of the address space in the hex file that solve the problem. I added this ":0103FF0000FD" as the second to last line.

  7. The basics of the command is "miniprohex -p -w " cahnge -w to -r to read the part into the file instead.

  8. Use minipro -l to get the list of supported parts to try to find the one you are trying to program.

Updating the firmware

  1. If you want to remove the nagging about the firmware problem or make sure you get full support you will need to update the firmware.

  2. If you have access to a windows machine with the official software and connect it to the tool once it will automatically update the firmware. If you want to do it the easy way.

  3. Using the opensource firmware updater is a little tricky, and may brick your device, but the minipro does have a bootloader that can be used to update even if the reflash fails. Actually for me the initial reflash failed. I just restarted the minipro by pulling the USB cable and plugging it back in. It went into the bootloader, and I was able to reflash it again and it took.

  4. The opensource firmware updater tool requires the latest version of the firmware image. When you install the windows tool it creates it as a file called update.dat. You can install the windows version under wine to get it to extract the file. You can get the latest version either from the autoelectric link above or below.

  5. The Firmware updater can be downloaded from github above. It is built using QT creator. If you open the .pro projrect file and hit the run button you will get a dialog.

  6. In the Dialog broswe to the update.dat file from the official tool.

  7. Select the correct model(for me it was TL866CS) from the radio buttons.

  8. Hit The flash button. You should see the indicator on the dialog flash. It will tell you when it is complete. For me this locked up the first time I tried it. I reset the flash programmer after giving it 15 minutes to be sure it was stuck. When it restarted the flash programmer could not identify the model reprogrammer I had and said it was stuck in the bootloader. This was fine though as it allowed me to try to flash it again and it worked the second time.

Reference