![]() |
after reset, terminal window prints garbage
Here's a question: What does DOWNLOADING do that RESET does not do?
Here's the story: After I download new code, the code starts running and printf-ing to the terminal window -- everything is fine. If I press RESET on the RC, the terminal window continues to show output, but it's unreadable -- instead of letters and numbers there are weird symbols and other characters. The rhythm of the output is unchanged (I only printf() stuff every 20th cycle, so it's about twice a second). But it's unreadable junk -- garbage. Downloading again (the same code or different) clears up the problem until the next RESET. But that's not a solution, it's just a clue. What does DOWNLOADING do that RESET does not do? What's going on? I've searched the archives and found someone with the same problem, but there was no answer. |
Re: after reset, terminal window prints garbage
Which serial port code are you using?
|
Re: after reset, terminal window prints garbage
I'm using <stdio.h> and not "printf_lib.h". Is that what you meant?
My InterruptHandlerLow() is the usual: Code:
void InterruptHandlerLow () And why should the startup conditions after download be different than after a reset? |
Re: after reset, terminal window prints garbage
when downloading code, the baud rate is set by the download control. at the end of the load, the serial port is left at the download rate.
after reset, you must properly set the baud rate in your code. it sounds like the serial port init is not running in your code. jerry w |
Re: after reset, terminal window prints garbage
That sounds very likely. I will check it at my next work session (Thursday).
Thanks! |
| All times are GMT -5. The time now is 23:15. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi