CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Debug monitor

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kmp84



Joined: 02 Feb 2010
Posts: 354

View user's profile Send private message

Debug monitor
PostPosted: Mon Dec 15, 2014 6:48 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Dec 15, 2014 11:51 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Dec 16, 2014 3:50 am     Reply with quote

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.Smile
Thanks,
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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