Author Topic: EEVblog #411 - MiniPro TL866 Universal Programmer Review  (Read 1441729 times)

msraya and 8 Guests are viewing this topic.

Offline Jose Luis Collado

  • Newbie
  • Posts: 7
  • Country: pe
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #500 on: April 26, 2014, 02:15:31 am »
Hi Linux-works ! If you have the Arduino IDE installed you will find the file:
\Arduino\hardware\arduino\bootloaders\optiboot\optiboot_atmega328.hex
If not, it's the same as the one provided in the Optiboot site.

Thanks a lot for your help !
 

Offline Jose Luis Collado

  • Newbie
  • Posts: 7
  • Country: pe
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #501 on: April 26, 2014, 02:30:01 am »
Thanks tsmith35, in my case I can program successfully with another programmer (arduinoISP), but I fail with the MiniPro at opening the same Hex file... Since there are no file format options to select using Hex files with the MiniPro software, I can't  select the proper format ( Intel 8 bit)... Anyway I think it's the de-facto standard for Hex files.
 

Offline Bimmeristi

  • Contributor
  • Posts: 13
  • Country: fi
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #502 on: May 01, 2014, 01:01:19 pm »
I need to read/write two chips(M27C2001-10C6) for MB w210 remap. Is there any what need to know, or can i read/write with default TL866 settings?
 

Offline trisonic

  • Contributor
  • Posts: 47
  • Country: it
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #503 on: May 02, 2014, 01:43:43 pm »
I need to read/write two chips(M27C2001-10C6) for MB w210 remap. Is there any what need to know, or can i read/write with default TL866 settings?

yes, you can program the M27C2001
Arduino, MODs e DIY: blackstufflabs.com
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #504 on: May 04, 2014, 05:57:11 am »
I have been playing with https://github.com/vdudouyt/minipro/ and I notice that even PICs with two config words (like 16F886) only have one config word. I tried a simple patch, but it looks like the underlying firmware may only read a fixed block.

Just a point to consider if anyone is interested. I don't know if the "official software" has the same issue or not.

Actually, that's not true. I opened V6 under Wine -- you can't actually connect to the USB but you can see the UI. Both config words are there. So it is possible.
« Last Edit: May 04, 2014, 06:12:12 am by wd5gnr »
 

Offline iesn

  • Contributor
  • Posts: 15
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #505 on: May 04, 2014, 12:21:10 pm »
I wonder if this is because these devices don't support HVPP only HVSP.

Nope. Atmel AVR devices currently supported in TL866 are splitted into two categories:

These devices support parallel and icsp(serial) programming.
Code: [Select]
Type:113(0x71)
AT90S1200, AT90S2313, AT90S2333, AT90S4414, AT90S4433, AT90S4434, AT90S8515, AT90S8535, AT90SLS2313, AT90SLS2333, AT90SLS4414, AT90SLS4433,
AT90SLS4434, AT90SLS8515, AT90SLS8535, ATMEGA8, ATMEGA8L, ATMEGA8A, ATMEGA16, ATMEGA16L, ATMEGA16A, ATMEGA32, ATMEGA32L, ATMEGA32A, ATMEGA48,
ATMEGA48V, ATMEGA48A, ATMEGA48PA, ATMEGA64, ATMEGA64A, ATMEGA64L, ATMEGA88, ATMEGA88V, ATMEGA88A, ATMEGA88PA , ATMEGA128, ATMEGA128A, ATMEGA128L,
ATMEGA162, ATMEGA162V, ATMEGA164A , ATMEGA164PA , ATMEGA165A, ATMEGA165P, ATMEGA165PA, ATMEGA165PV, ATMEGA168, ATMEGA168A, ATMEGA168PA,
ATMEGA168V, ATMEGA169A, ATMEGA169P, ATMEGA169PA, ATMEGA169PV, ATMEGA324A , ATMEGA324PA , ATMEGA325A, ATMEGA325PA, ATMEGA328, ATMEGA328P,
ATMEGA329A, ATMEGA329PA, ATMEGA644A , ATMEGA644PA, ATMEGA645A, ATMEGA645P, ATMEGA649A, ATMEGA649P, ATMEGA1284 , ATMEGA1284P , ATMEGA8515,
ATMEGA8515L, ATMEGA8535, ATMEGA8535L, ATTINY26, ATTINY26L, ATTINY28L, ATTINY28V, ATTINY2313, ATTINY2313V, ATTINY2313A, ATTINY4313


These devices only support serial programming (low voltage-icsp and hvsp).
Code: [Select]
Type:115(0x73)
ATTINY11, ATTINY11L, ATTINY12, ATTINY12V, ATTINY12L, ATTINY13, ATTINY13V, ATTINY13A, ATTINY15, ATTINY15L, ATTINY15L, ATTINY24, ATTINY24A
ATTINY24V, ATTINY25, ATTINY25V, ATTINY44, ATTINY44A, ATTINY44V, ATTINY45, ATTINY45V, ATTINY84, ATTINY84A, ATTINY84V, ATTINY85, ATTINY85V

The 113 and 115 types are programming algorithms implemented in firmware, and as you can see both categories is supporting low voltage serial programming (icsp) but is implemented only in the first category(113).

If you will try to unlock the icsp button for one of the device in the second category then it will not work, the minipro software send the command correctly (tested myself) but the firmware will ignore icsp parameter.
USB sniffer:
Code: [Select]
ATTINY84 no ICSP
03 73 12 00 02 00 40 00 00 16 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATTINY84  ICSP on
03 73 12 00 02 00 40 00 00 16 00 81 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The first two parameters tels to the firmware to switch to type 0x73(115) algorithm and the 12-th parameter to switch the ICSP on, but it has no effect for type 115(0x73) devices.
For devices in the first category(113) the ICSP are fully implemented but for some unknown reason only MEGA devices have the ICSP button active, the AT90S's and ATTINY26,28,2313 and 4313 are icsp option locked (but its working, tested myself).

In conclusion: Its a firmware issue(incomplete).

Hello at all from Spain,

Please forgive my English language but is not my native language.

I discover this wander full topic due to a search for AT866. Due to an error I buy a AT866A but I receive a AT866CS device. I follow the radioman steps and I change them in AT866A. I work in the electronics repair field ( big machine electronic modules,  tractors, harvester etc. ) with a various eeprom, flash, micro... and I wan to give a try at this low cost programmer.

Because for a few chips ICSP connector is inactive, I use Enable Button ( at90s8535 ). Unfortunately I can't read this micro at90s8535. Radioman say it can be read. What is wrong ? I try ATMEGA 16, it work. I read at90s8535 with an USBASP and it work.

Any idea ?

Thank you kindly in advance.

Dan

   
P.S. Many thanks goes to Radioman for yours great and hard work.

a completion... I can not read with usbASP eeprom from AT90S8535 I can read only code memory, when I try to read eeprom avrdude says " vrdude -C avrdude.conf -c usbasp -p 8535 -U eeprom:r:"C:\Users\JohnDoe\Desktop\AT90S8535 - eeprom.hex":i -q



avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000102
avrdude: Expected signature for AT90S8535 is 1E 93 03
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.
 "
« Last Edit: May 04, 2014, 01:04:23 pm by iesn »
 

Offline ficho

  • Newbie
  • Posts: 3
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #506 on: May 04, 2014, 05:00:26 pm »
HI,
Something about AVR ISP, some of them have configuration bit where ISP can be disabled and then osc type can be set to external osc, in config bit by mistake and then the ISP will not work for sure !!! (you have to connect it to an external osc to reprogram config bits ).

regards ficho
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #507 on: May 04, 2014, 07:30:43 pm »
In a fit of boredom, I put together a GUI to drive the CLI tool. That's funny, because I don't actually use GUIs much myself, but....

This is just an early release and it works but isn't very useful. I have some wrapper ideas though that I may implement sometime later.. although as a CLI and this would be the GUI wrapper:

https://github.com/wd5gnr/qtl866

You need QT Creator to compile this. If you haven't used that before, run QT creator, open the .pro file and then press the big green RUN button ;-)

Screenshot attached.

Ok, I added one more thing of interest to the git repo (and will attach here too). A shell script: miniprohex -- It can figure out that if you provide a file with .hex or .srec that you mean for it to be an Intel hex or S-record file. It uses srec_cat (which needs to be on the path) to do the conversion on the way in or out. This doesn't work for fuses of course.

If you want to use it from the CLI you are good to go. If you want to use it from the GUI, open the options and point to it instead of minipro. srec_copy makes long records by default so add --obs 16 to the command line if you want "normal" 16 byte records.

Probably needs enhancements, but maybe you'll find one or the other useful.
« Last Edit: May 04, 2014, 09:53:44 pm by wd5gnr »
 

Offline bogdan2013

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #508 on: May 05, 2014, 02:13:37 pm »
Hello all ! Could someone to give me the 6.00 software because I can't do anything with the programmer (just to check the device ID) at this time and their servers looks to be shuted down . Thanks !
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1993
  • Country: us
    • netstuff

Offline bogdan2013

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #510 on: May 05, 2014, 04:43:39 pm »
Thanks ! I searched but maybe I don't saw . Thanks again and sorry !
 

Offline casinada

  • Frequent Contributor
  • **
  • Posts: 599
  • Country: us
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #511 on: May 05, 2014, 06:23:19 pm »
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1993
  • Country: us
    • netstuff
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #512 on: May 05, 2014, 06:38:00 pm »
they are not always online, so having a 2nd download site helps the users, here.

Offline eLAB

  • Contributor
  • Posts: 13
  • Country: cs
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #513 on: May 10, 2014, 01:54:34 pm »
For Radioman,

just visited github, if I understood well linux usb wrapper for Minipro is finished and working (of course under wine)?!  :-+
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #514 on: May 10, 2014, 02:48:37 pm »
This one does not require wine: https://github.com/vdudouyt/minipro

And if you prefer a GUI, I put a wrapper over that program: https://github.com/wd5gnr/qtl866

 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #515 on: May 10, 2014, 04:03:16 pm »
By the way, I noticed a bug on the Windows software that I doubt it related to the USB patch for Linux.

Programming an 16F886 didn't quite work right. The problem turned out to be that the config word was not programmed. If you try to program the user ID, the config word doesn't get programmed. If you untick the user ID, the config word gets programmed and everything is fine. I don't know if this would apply to other PICs or not.
 

Offline tibimakai

  • Contributor
  • Posts: 31
  • Country: us
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #516 on: May 11, 2014, 05:45:35 am »
Just registered, hi to everybody.
I'm a total beginner when comes to programming and I need some help.
I have some Kenwood navigation units that have a common issue, corrupt EEPROM, that causing a rebooting issue.
Somebody repairs these, but I'm trying to do this on my own.
The chip is not in the supported list, it's a Toshiba TC58NVG1S3ETAI0. Here is the datasheet:
http://www.toshiba.com/taec/components/Datasheet/TC58NVG1S3ETAI0.pdf
I have read the whole 35 pages and I would really like to do this, but I'm not sure if it's possible.
Radioman, salut din SUA, ex Clujean.
 

Offline sv2hqx

  • Contributor
  • Posts: 18
  • Country: gr
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #517 on: May 11, 2014, 08:20:55 am »
By the way, I noticed a bug on the Windows software that I doubt it related to the USB patch for Linux.

Programming an 16F886 didn't quite work right. The problem turned out to be that the config word was not programmed. If you try to program the user ID, the config word doesn't get programmed. If you untick the user ID, the config word gets programmed and everything is fine. I don't know if this would apply to other PICs or not.



My opinion
This hapends to me on 27sf512
The different what I see on my second programmer (batronix) is that tl 856 did not focus on the really size of ROM while batronix reads more lines
Batronix reads half line more
 

Offline eLAB

  • Contributor
  • Posts: 13
  • Country: cs
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #518 on: May 12, 2014, 02:12:32 pm »
This one does not require wine: https://github.com/vdudouyt/minipro

And if you prefer a GUI, I put a wrapper over that program: https://github.com/wd5gnr/qtl866

Big thanx!  :-+ ....will try also.
I want to totally abandon Windows OS and switch to Linux....all jobs is possible to do in Linux, only programmers was problem (till now WinXP in Virtualbox was a solution).
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #519 on: May 12, 2014, 06:07:28 pm »
I had a slight omission from the miniprohex script on Github so if you grabbed it earlier, you might want to update.

https://github.com/wd5gnr/qtl866

The GUI didn't change, but the script you can use with (or without) the GUI to load Srec and hex files did change.
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #520 on: May 12, 2014, 07:46:12 pm »
And in the original Linux minipro there is a bug writing hex PIC fuses. I fixed it and put a pull request for the original author, but if you can't wait you can find my fork (wd5gnr) and clone from there.

It is also not possible to program the code then the fuses without erasing the chip. I proposed a fix for that as well.
« Last Edit: May 12, 2014, 09:37:24 pm by wd5gnr »
 

Offline krivx

  • Frequent Contributor
  • **
  • Posts: 765
  • Country: ie
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #521 on: May 13, 2014, 01:54:07 pm »
Has anyone had any experience adding support for additional ICs using the CLI tool (https://github.com/vdudouyt/minipro)? Is it possible?
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #522 on: May 13, 2014, 03:23:59 pm »
Anything is possible. I've been working to add 2nd fuse word to the PIC. The Windows software supports it, but I haven't quite got it down. The real work is done in the firmware and to do anything really exotic, you'd probably need a disassemble of it or at least an explanation of the commands (minipro.h is pretty useful but not about the actual format).
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #523 on: May 13, 2014, 08:46:16 pm »
I just posted a pull request that adds support for the 2nd fuse word for PICs. I only did it for the 16F886 though. Anyone know of a good list of which ones do have two fuse words? I know the 87x and 88x do. I know the 84 and (I think) the 628 do not. But there has to be a better way than just going through the data sheets for all of them.
 

Offline wd5gnr

  • Regular Contributor
  • *
  • Posts: 179
Re: EEVblog #411 - MiniPro TL866 Universal Programmer Review
« Reply #524 on: May 13, 2014, 09:05:23 pm »
Silly me. A quick grep through the MPASM include directory answered that question!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf