EmbeddedRelated.com
Forums

CrossWorks UART example

Started by gokbektas February 21, 2004
It works fine, but if I close serial port and re-connect with PC without
making anything on LPC, weird data appears at PC.
 
If I reset LPC, it turns to normal.
 
It happens with CrossWorks terminal window and my own serial
port monitor software 'common'.
 
Any opinion?


----- g eti -----
Kimden : l...@yahoogroups.com
Kime : l...@yahoogroups.com
Gderme tarihi : 21/02/2004 13:18
Konu : [lpc2000] Res:LPC2106 Programming - ISP - Solved
I retouched with the soldering iron to pins of baby, compare function or ISP utility confirms chip is programmed.
 
Leon, your code sent garbage characters at 9600 baud, I tried other baud rates also...
Then I recompiled uart example of crossworks  then loaded to chip...
 
It is working! Now, I can play  ;-)
 
Thanks a lot! I'll upload my board's picture to my personal website soon.
 


----- g eti -----
Kimden : l...@yahoogroups.com
Kime : l...@yahoogroups.com
Gderme tarihi : 21/02/2004 12:57
Konu : Re: Re: [lpc2000] LPC2106 Programming - ISP and hex file
----- Original Message -----
From: "gokbektas" <g...@mynet.com>
To: <l...@yahoogroups.com>
Sent: Saturday, February 21, 2004 10:18 AM
Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file
> Thanks leon,
> I tried the hex file that you sent me.
>
> I read 4293984050 part ID and 1.3 bootloader ID, when I click Upload to
Flash, it
> does not give any error messages, a progress bar
shows it is uploading.
>
> When I click Compere Flash, a progress bar shows it is reading but "File
compare Fail"
> message appears at the end.
>
> And there is no data coming from chip when I check it with terminal
window...
It looks like you have a problem with the flash memory. I'd replace the
chip, or try another board if you have one. I'm actually using a
'2104, but
it shouldn't make any difference.
Regards,
Leon




An Engineer's Guide to the LPC2100 Series

I assume that the serial data is being sent at full rate, so it appears
as a synchronous stream. In this case, with no pauses, it's possible
for the UART to sync to a non-start/stop bit. If you send your data in
bursts, you'll see possible some garbage data, and then the UART syncs
when it sees the stop and start bits with a bit of a breather in
between.

-- Paul.

-----Original Message-----
From: gokbektas [mailto:]
Sent: 21 February 2004 19:11
To:
Subject: [lpc2000] CrossWorks UART example It works fine, but if I close serial port and re-connect with PC without
making anything on LPC, weird data appears at PC.

If I reset LPC, it turns to normal.

It happens with CrossWorks terminal window and my own serial
port monitor software 'common'.

Any opinion?

----- g eti -----
Kimden :
Kime :
Gderme tarihi : 21/02/2004 13:18
Konu : [lpc2000] Res:LPC2106 Programming - ISP - Solved

I retouched with the soldering iron to pins of baby, compare function or
ISP utility confirms chip is programmed.

Leon, your code sent garbage characters at 9600 baud, I tried other baud
rates also...
Then I recompiled uart example of crossworks then loaded to chip...

It is working! Now, I can play ;-)

Thanks a lot! I'll upload my board's picture to my personal website
soon.

----- g eti -----
Kimden :
Kime :
Gderme tarihi : 21/02/2004 12:57
Konu : Re: Re: [lpc2000] LPC2106 Programming - ISP and hex file

----- Original Message -----

From: "gokbektas" <
<http://webmail.mynet.com/webmail/src/compose.php?send_to=gokbektas%40my
net.com&unique_id/a744d63c8fb6e397f540fb7ed4a88f> >

To: <
<http://webmail.mynet.com/webmail/src/compose.php?send_to=lpc2000%40yaho
ogroups.com&unique_id/a744d63c8fb6e397f540fb7ed4a88f> >

Sent: Saturday, February 21, 2004 10:18 AM

Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file > Thanks leon,

> I tried the hex file that you sent me.

>

> I read 4293984050 part ID and 1.3 bootloader ID, when I click Upload
to

Flash, it

> does not give any error messages, a progress bar shows it is
uploading.

>

> When I click Compere Flash, a progress bar shows it is reading but
"File

compare Fail"

> message appears at the end.

>

> And there is no data coming from chip when I check it with terminal

window...
It looks like you have a problem with the flash memory. I'd replace the

chip, or try another board if you have one. I'm actually using a '2104,
but

it shouldn't make any difference.
Regards,
Leon <http://docs.yahoo.com/info/terms/
Click HereClick Here

<http://us.adserver.yahoo.com/l?M'4551.4550177.5761904.1261774/D=egrou
pweb/S=:HM/A 19528/rand#4930562 _____

> .


Paul's right.
What he means is that if you start up your terminal SW while the
serial data is being output from the LPC, it will interpret the first
high-> low transition on its RXD line as a start bit.
If the data being transmitted from the LPC doesn't have a pause
between stop bit and the next start bit, the UART in your PC won't
synchronise properly.
To "fall in" the datastream, the transmitted data must have at least 9
High bits, so the PC's UART can flush out its receive shift register,
and sync properly.

-- Kris
----- Original Message -----
From: "Paul Curtis" <>
To: <>
Sent: Sunday, February 22, 2004 7:59 AM
Subject: RE: [lpc2000] CrossWorks UART example I assume that the serial data is being sent at full rate, so it appears
as a synchronous stream. In this case, with no pauses, it's possible
for the UART to sync to a non-start/stop bit. If you send your data in
bursts, you'll see possible some garbage data, and then the UART syncs
when it sees the stop and start bits with a bit of a breather in
between.

-- Paul.

-----Original Message-----
From: gokbektas [mailto:]
Sent: 21 February 2004 19:11
To:
Subject: [lpc2000] CrossWorks UART example It works fine, but if I close serial port and re-connect with PC without
making anything on LPC, weird data appears at PC.

If I reset LPC, it turns to normal.

It happens with CrossWorks terminal window and my own serial
port monitor software 'common'.

Any opinion?

----- g eti -----
Kimden :
Kime :
Gderme tarihi : 21/02/2004 13:18
Konu : [lpc2000] Res:LPC2106 Programming - ISP - Solved

I retouched with the soldering iron to pins of baby, compare function or
ISP utility confirms chip is programmed.

Leon, your code sent garbage characters at 9600 baud, I tried other baud
rates also...
Then I recompiled uart example of crossworks then loaded to chip...

It is working! Now, I can play ;-)

Thanks a lot! I'll upload my board's picture to my personal website
soon.

----- g eti -----
Kimden :
Kime :
Gderme tarihi : 21/02/2004 12:57
Konu : Re: Re: [lpc2000] LPC2106 Programming - ISP and hex file

----- Original Message -----

From: "gokbektas" <
<http://webmail.mynet.com/webmail/src/compose.php?send_to=gokbektas%40my
net.com&unique_id/a744d63c8fb6e397f540fb7ed4a88f> >

To: <
<http://webmail.mynet.com/webmail/src/compose.php?send_to=lpc2000%40yaho
ogroups.com&unique_id/a744d63c8fb6e397f540fb7ed4a88f> >

Sent: Saturday, February 21, 2004 10:18 AM

Subject: Ynt: Re: [lpc2000] LPC2106 Programming - ISP and hex file > Thanks leon,

> I tried the hex file that you sent me.

>

> I read 4293984050 part ID and 1.3 bootloader ID, when I click Upload
to

Flash, it

> does not give any error messages, a progress bar shows it is
uploading.

>

> When I click Compere Flash, a progress bar shows it is reading but
"File

compare Fail"

> message appears at the end.

>

> And there is no data coming from chip when I check it with terminal

window...
It looks like you have a problem with the flash memory. I'd replace the

chip, or try another board if you have one. I'm actually using a '2104,
but

it shouldn't make any difference.
Regards,
Leon <http://docs.yahoo.com/info/terms/
Click HereClick Here

<http://us.adserver.yahoo.com/l?M'4551.4550177.5761904.1261774/D=egrou
pweb/S=:HM/A 19528/rand#4930562 _____

> .


Yahoo! Groups Links