Hi anybody in this forum please kindly help me to resolve the following problem: When I run the debugger (simCASE debugger) , each time when it reaches the printf commands, it stops completely. I want to simulate the code using Serial window to display say .. printf("HELLO "); Please help,either drop me an e-mail or post you reply at this forum. My e-mail is: jsayavong@perkinselectronics.com Thanks in advance
What does your printf() do? If it is outputting the string on the same serial port as the debugger communications, you will trash the debug session. Usually you have to customize printf() & putchar() (which printf() often uses) so it/they send the data to the output required. The source of the original printf()/putchar() is probably in the library directory to make this easier. There are quite a few postings on this subject in this forum. Best luck
"The source of the original printf()/putchar() is probably in the library directory" The C51 Library folder contains the putchar() source (putchar.c, I think). You don't need to fiddle with printf(), but note that printf() is a very large function - there isn't much room left with the demo versions once you've used printf()!! :-0