Flash Magic Forum

In-System Programming Support => General => Topic started by: vinaybari on October 15, 2006, 11:23:03 PM

Title: Flash Magic using USB to Serial Port cable
Post by: vinaybari on October 15, 2006, 11:23:03 PM
Hi,
My Laptop has only USB connctor , there is no Serial Port present on it (as it is with all new Laptops)
Can I use the Flashmagic utility along with USB to Serial Port converter cable.
Title: Re: Flash Magic using USB to Serial Port cable
Post by: erikm on October 16, 2006, 06:17:50 AM
yes and no

This has been discussed ad nauseam and it seems that some USB to Serial Port converters will let you do it, others will not.

My GUESS is that it will be related to the handling of DTR, CTS, ... or timing, but seek and ye shall find, or mybe, I hope so for you, someone will post "the xxx USB to Serial Port converter works with FM"

erik

Title: Re: Flash Magic using USB to Serial Port cable
Post by: Andy Ayre on October 16, 2006, 07:14:07 AM
I have an IOGear cable and it works fine, including DTR and RTS. It operates nearly the same as a real COM port. However most cables seem to be very poor emulations of COM ports.

Title: Re: Flash Magic using USB to Serial Port cable
Post by: Jan Waclawek on October 17, 2006, 02:07:34 AM
It is much more important to look at the chip inside than the "brand" of the cable. Certain prolific-chip based cables are known bad - see http://www.8052.com/forum/thread.phtml?thread=97853. Unfortunately, the cheap "cables" tend to be based exactly on this chip. It is also important to get the latest drivers, the drivers provided on the accompanying CD are often out of date and buggy - the best resource is again the chipmakers' web, rather than the "manufacturer"'s.

Jan Waclawek
Title: Re: Flash Magic using USB to Serial Port cable
Post by: vinaybari on October 17, 2006, 02:43:24 AM
In fact I started with ATMEL At89S52 which has ISP via parallel port.
For that I got USB to Parallel port cable and it didnt worked. The chip inside the cable was from Prolific and as your are saying these Prolific chips generally doewnot support or emulate Parallel or Serial port as it is.
So I turned to Flashmagic which has serial interface and thought that atleast USB to Serial shud do.

Before purchasing any new stuff I want to be sure that it will work. Or if anybody can suggest me AT89S52 USB based programmer(DIY kit)
Title: Re: Flash Magic using USB to Serial Port cable
Post by: Andy Ayre on October 17, 2006, 08:38:21 AM
Flash Magic does not support Atmel devices, so if you want to program an AT89S52 then you will need to search for Atmel programmers. Also take a look at FLIP, but you will have the same USB <--> RS232 problem.

Title: Re: Flash Magic using USB to Serial Port cable
Post by: Jan Waclawek on October 18, 2006, 03:19:01 AM
FLIP wouldn't help either, as the AT89S52 is SPI-ISP programmable and FLIP (as well as FlashMagic) is for UART-ISP programming (such as for AT89C51RD2/ED2 etc.). There are a couple of programs for the SPI-ISP intended to work over serial cables, but they mostly would fail over USB-to-serial cables, too, as these cables are not intended to work for the bint-banging which is how the SPI interface is simulated.

Btw. with USB-to-parallel cables, the problem is not Prolific-specific, but the same as described above: these cables simply can't work for the bit-banged interfaces as they support only printing on LPT and nothing else.

Jan Waclawek
Title: using USB to serial converter
Post by: helmuth_lechner on February 22, 2010, 12:45:23 AM
hello  every one...
I am using a MSC 900 board to programming LPC935. I am using the COM port on my desktop the programming run always well!
If I used the usb2serial cable (UTM1925 USB-Multi-IO cable) on my laptop, reading device configuration runs well, also reprogramming device configuration runs well. After starting programming the status shows "Erase" and next "Programming" and than the flash magic shoes any reactions. After braking flash magic and restarting, the command "Reading device configuration" will quit with "Unable to communicate (in use) Ensure no other aplications are using COM port. Try raising or lowering baud rate. I must restart WINOWS that FlashMagic works again.
Every body has an idea?
Thanks
Helmuth
Title: Re: Flash Magic using USB to Serial Port cable
Post by: Andy Ayre on February 26, 2010, 01:09:56 PM
Please generate a debug file showing the problem and send it to me. Reference this post in your email. Instructions are here:

  http://www.flashmagictool.com/debugfile.html

Andy