| Details |
Message |
|
Read-Only
Author Toni Barrera
Posted 19-Feb-2009 09:52 GMT
Toolset C51
|
 Serial port problems while debugging
Toni Barrera
Hi,
I have a firmware for a 8051 based device that works flawlessly with
the real hardware.
However, when I'm debugging it I have lots of problems with the
serial port simulation and I'm often losing characters in the
messages.
I ruled out the cable as the problem and also the software I'm using
to send the messages (the exact same that works fine when interfacing
with the real device.
Can you give me any pointers to what the problem might be?
I'm using this INI file for the communication:
MODE COM3 19200,0,8,1
ASSIGN COM3 < S0IN > S0OUT
S0TIME=1
My device communicates using 19200bps, 8 data bits, no parity and
1 stop bits.
Any help will be greatly appreciated
|
|
|
Read-Only
Author Andy Neil
Posted 19-Feb-2009 10:00 GMT
Toolset None
|
 RE: with the serial port simulation and I'm often losing characters in the messages.
Andy Neil
Yes, I have also seen that when debugging an ARM target.
I think it must be a limitation of the Simulator...
:-(
|
|
|
Read-Only
Author Toni Barrera
Posted 19-Feb-2009 10:11 GMT
Toolset None
|
 RE: with the serial port simulation and I'm often losing characters in the messages.
Toni Barrera
If that's true I'm in for a world of suffering...
I need to exchange pretty long messages and a quite few of
them...
Is there anything I can do to, at least, alleviate this?
|
|
|
Read-Only
Author Andy Neil
Posted 19-Feb-2009 10:27 GMT
Toolset None
|
 Is there anything I can do to, at least, alleviate this?
Andy Neil
I just gave up on simulation and use the target instead.
Does your 8051 have on-chip debug?
If not, For the purpose of this exercise, could you switch
(temporarily) to an 8051 that does have on-chip debug?
can you adjust your sending device to put a (small) delay between
characters?
can you put something between the device and the PC to buffer the
data and add such an inter-character delay?
|
|
|
Read-Only
Author Toni Barrera
Posted 19-Feb-2009 10:33 GMT
Toolset None
|
 RE: Is there anything I can do to, at least, alleviate this?
Toni Barrera
Uhm, I tried on-chip debug and it works horribly.
Often when debugging the code if I try to use breakpoints the code
just goes to invalid positions.
The manual says that could happen sometimes, but my experience is
that it happens so often that the board is just an expensive
paperweight.
I think I'll try with the option:
can you adjust your sending device to put a (small) delay between
characters?
It appears to be the most feasible option for me.
Thanks a lot for the pointers Neil!
|
|
|
Read-Only
Author erik malund
Posted 19-Feb-2009 13:09 GMT
Toolset None
|
 oh this secrecy
erik malund
I have a firmware for a 8051 based device
then
Uhm, I tried on-chip debug and it works horribly.
WHICH DERIVATIVE ARE YOU USING
these days "a 8051 based device" does not say anything
Erik
|
|
|
Read-Only
Author Toni Barrera
Posted 19-Feb-2009 14:12 GMT
Toolset C51
|
 RE: oh this secrecy
Toni Barrera
Heh, no secrecy, it's a Dallas DS5250-F
I don't even bother to mention it because with all those
ridiculous NDAs no one really can discuss much about it.
Usually when I ask about it all I get is "Oh, the NDAs".
|
|
|
Read-Only
Author Andy Neil
Posted 19-Feb-2009 15:19 GMT
Toolset C51
|
 RE: The NDAs
Andy Neil
Are they "Non-Debug Arrangements" ?
;-)
|
|