View previous topic :: View next topic |
Author |
Message |
future
Joined: 14 May 2004 Posts: 330
|
My wish for Christmas! Does Noel is here? |
Posted: Tue Dec 21, 2004 11:05 pm |
|
|
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
|
|
Posted: Wed Dec 22, 2004 10:00 am |
|
|
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
|
|
Posted: Wed Dec 22, 2004 12:50 pm |
|
|
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
|
|
Posted: Wed Dec 22, 2004 12:58 pm |
|
|
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
|
|
Posted: Wed Dec 22, 2004 1:02 pm |
|
|
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
|
|
Posted: Wed Dec 22, 2004 1:43 pm |
|
|
Well, have fun with that.. |
|
|
|