|
|
View previous topic :: View next topic |
Author |
Message |
kmp84
Joined: 02 Feb 2010 Posts: 354
|
Debug monitor |
Posted: Mon Dec 15, 2014 6:48 am |
|
|
Hello,
I'm using ccs c compiler ver.5.019 with ICD U64. Also using "Monitor" option in debug window. Sometime data were destroyed :
<-- Sending 2 bytes: 0x50 0x00ñjjUË‹V-ë$&H±ytes: 0x50 0x00
<-- Sending 2 bytes: 0x50 0x00 ,
Setting are :
Code: | #USE RS232(DEBUGGER,rcv=PIN_B5,xmit=PIN_B5,stream=STREAM_MONITOR)
|
Maybe problem is speed ? How to setup Speed ? What is the speed in above declaration?
Thanks, |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 15, 2014 11:51 am |
|
|
Quote: | What is the speed in above declaration? |
The software UART for the Debug Monitor runs at 2400 baud. The CCS
IDE expects it to run at this speed. I don't know if the IDE has a menu
which allows this to be changed.
Quote: | Sending 2 bytes: 0x50 0x00ñjjUË‹V-ë$&H±ytes: 0x50 0x00 |
Are you running interrupts in your program ? Because this is a software
UART, interrupts could cause the problem that you are seeing. The
bit timing would be disrupted, causing you to get garbage part of the time.
Try adding the parameter shown in bold below:
Quote: | #USE RS232(DEBUGGER,rcv=PIN_B5,xmit=PIN_B5, DISABLE_INTS, stream=STREAM_MONITOR) |
|
|
|
kmp84
Joined: 02 Feb 2010 Posts: 354
|
|
Posted: Tue Dec 16, 2014 3:50 am |
|
|
PCM programmer wrote: | Quote: | What is the speed in above declaration? |
The software UART for the Debug Monitor runs at 2400 baud. The CCS
IDE expects it to run at this speed. I don't know if the IDE has a menu
which allows this to be changed.
Quote: | Sending 2 bytes: 0x50 0x00ñjjUË‹V-ë$&H±ytes: 0x50 0x00 |
Are you running interrupts in your program ? Because this is a software
UART, interrupts could cause the problem that you are seeing. The
bit timing would be disrupted, causing you to get garbage part of the time.
Try adding the parameter shown in bold below:
Quote: | #USE RS232(DEBUGGER,rcv=PIN_B5,xmit=PIN_B5, DISABLE_INTS, stream=STREAM_MONITOR) |
|
Thanks for explanation "PCM programmer", This Baud is to slowly for debugging in some fast serial and usb application for me, but I'll mail CCS support for this problem.
Thanks, |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|