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 support@ccsinfo.com

My wish for Christmas! Does Noel is here?

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



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

My wish for Christmas! Does Noel is here?
PostPosted: Tue Dec 21, 2004 11:05 pm     Reply with quote

Well, for first, merry Christmas for everybody!

Second, I wish Noel (or a good person) to provide us some code to dump the ram contents to a nice formated screen on serial port and halt.

The function could the called from an RB int or a user defined "breakpoint".

Is there anybody with free time to code it?
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Wed Dec 22, 2004 10:00 am     Reply with quote

Untill reciently I had never used the ICDU as a debugger. I was putting togather a new project and thought I would give it a try. The ICDU when used in debuggin mode does what you are wanting done. I really don't run the debugger very often because it is very sensitive to noise. I use a switch to turn it off and on.
Code:
#if 0    // Debugging ?
   #device ICD=TRUE
   #fuses HS,NOPROTECT,NOOSCSEN,NOBROWNOUT,NOWDT,NOSTVREN,NOPUT,DEBUG,NOLVP,NOWRT       // For debugging
#else
   #fuses HS,NOPROTECT,NOOSCSEN,NOBROWNOUT,NOWDT,NOSTVREN,NOPUT,NODEBUG,NOLVP,NOWRT       // No WDT operation
#endif
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Wed Dec 22, 2004 12:50 pm     Reply with quote

Yes, but it will do without aditional costs/hardware.

And anyone can use it, if somebody dont write the code, I'll do it then I have the time.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Wed Dec 22, 2004 12:58 pm     Reply with quote

Very simple....

Code:
int16 size;
int8 *ptr;

ptr=0;
size=SIZE_OF_RAM;

while (size--) {
  printf("%X ", *ptr);
  ptr++;
}


All you need to do is define SIZE_OF_RAM and maybe add some formatting. SIZE_OF_RAM includes RAM and SFRs.
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Wed Dec 22, 2004 1:02 pm     Reply with quote

Yes, formating, name all system registers...

I thought about a template, where one can give a name to some adresses and the dumped info can fit in a 80x25 screen.

It will take some work, but will be nice.
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Wed Dec 22, 2004 1:43 pm     Reply with quote

Well, have fun with that..
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