CodeWarrior usb-to-serial patch for HC08GR16A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CodeWarrior usb-to-serial patch for HC08GR16A

Jump to solution
3,277 Views
mimco
Contributor I
Hi everybody. I have build serial MONO8 interface, but i have only USB port ano none serial port on my book. I try 2 USB to SERIAL converter from 2 manufcturers and serial port on PCIMCIA card, but nothing doesn't work . Please exist any patch for codewarrior, that my allow programm HC08 MCU (HC08GR16A) through  USB to SERIAL converter and this MONO8 interface? Or exist program, which is able work with USB to SERIAL converter?
 
Thanks, Regards.


J2MEJediMaster added MCU type to header


Message Edited by J2MEJediMaster on 2007-08-21 11:34 AM
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,401 Views
peg
Senior Contributor IV
Hi mimco,
 
This is a well known problem of the converters inability to simulate a COM port well enough.
Some seem to work well enough, the vast majority, do not!
PCMCIA adapters seem to have a higher proportion of versions that do work.
Search the CW 8-bit forum and the main 8-bit forum for some hints on the models that others have discovered work.
 

View solution in original post

0 Kudos
Reply
8 Replies
1,401 Views
J2MEJediMaster
Specialist I
What version of HC08 CodeWarrior are you using? It's going to be up to the USB-to-serial adapter to handle the USB to board communications. What you need to do is install any driver that came with the adapter so that the system and CodeWarrior recognize it. Do you see a choice for USB in when selecting a debugger communications interface in CodeWarrior?

---Tom



Message Edited by J2MEJediMaster on 2007-08-21 11:38 AM
0 Kudos
Reply
1,401 Views
mimco
Contributor I

Hi Tom.

I use CW5.1 also 6. USB to SERIAL converter is only replacement of COMM port. I have installed driver for converter. CW recognize this serial port as COMM1, interface options are set - (see options.jpg) and during loading programming algorithm occur ERROR 14 (see error.jpg). Please look at pictures PB060264_PB060266.JPG, mono08 interface and target board schematics.

Thanks

 

PB060264_PB060266.jpg

error.jpg

options.jpg

Message Edited by t.dowe on 2009-10-22 09:39 AM
0 Kudos
Reply
1,402 Views
peg
Senior Contributor IV
Hi mimco,
 
This is a well known problem of the converters inability to simulate a COM port well enough.
Some seem to work well enough, the vast majority, do not!
PCMCIA adapters seem to have a higher proportion of versions that do work.
Search the CW 8-bit forum and the main 8-bit forum for some hints on the models that others have discovered work.
 
0 Kudos
Reply
1,401 Views
mimco
Contributor I
Hi Peg.

Thanks, I try search.

Regards
mimco
0 Kudos
Reply
1,401 Views
J2MEJediMaster
Specialist I
I think peg might be on the right track here in that another adapter is required. The only thing I can suggest for your current situation is that 7200 bps is such an odd baud rate compared to what you normally see for serial communications. Can you try 9600, 4800, and 2400 bps?

---Tom


Message Edited by J2MEJediMaster on 2007-08-23 11:48 AM
0 Kudos
Reply
1,402 Views
bigmac
Specialist III
Hello Tom and mimco,
 
The data sheet for the GR16A device does specify a baud rate of 7200 when an external crystal of 8MHz or 4MHz is used.  However, if a 4MHz crystal is actually in use, it might also pay to also check monitor mode communications at 3600 baud just in case PTB4 remains set high.
 
If the MON08 circuitry has been newly constructed, it is always possible for there to be a wiring error causing the problem.  But this is likely to be difficult to sort from the potential communication problems that Peg mentioned.  The MON08 circuit really needs to be initially tested in conjunction with a "real" serial port, to separate the two possible issues, and prove the MON08 circuit.
 
Regards,
Mac
 
0 Kudos
Reply
1,401 Views
mimco
Contributor I
Hi Tom and bigmac .

I'd like try another adapter, but i don't know if is better use USB to SERIAL adapter or PCMCIA card with RS232. I have seen on forum, that some adapters are working with Mono08 and other not, but don't found which is it :smileyhappy: I can choose other baud rates, but comunication with MCU fails.

I can try raplace 8MHz crystal with 4MHz and set 3600 baud. Maybe will be timer error
smaller.

I try this Mono08 interface with "real" serial port and work with no problems. If use converter and choose buad rate 7200 bauds, then during programing write Bus Freq = 2006kHz instead 2000kHz as write with "real " serial port. I don't know what is allowable timing error.

Regards mimco
0 Kudos
Reply
1,402 Views
J2MEJediMaster
Specialist I
You want to go with the PCMCIA card with serial. The USB-to-serial conversion is always going to introduce problems, as this and other forum discussions have indicated. You want to eliminate as many translations as possible to run the debugger/control messages through. That means a straight serail interface.
 
---Tom
0 Kudos
Reply