| ??? 12/04/02 14:19 Read: times |
#33759 - RE: Problem with reading timers |
OK. Sounds like you are betting a crash course in 'debugging using nothing at all' ... but don't worry, people have survived this before you ...!
You need to figure out some basics: 1. Get the compiler to give you some assembler output. First look in the project directory for a file called maybe .asm or .lst - something like that. Open a few in an editor to see if you can find it. If not you may have to tell the compiler to do it - are you working off a command line or in an IDE? You have to do this, or you will never be sure of what the damn thing is really doing. Especially if you have no docs for the compiler. 2. Turn off the emulator, and try to build and run a simple program (in C or just in asm) that keeps sending an ASCII character to the terminal. Nothing else. Get that to work. (This is just to give you a way to see some vars when you need to, with no emulator/monitor. IF your board has some simple out device, like LED's, that is very helpful, as you don't even need the UART. Maybe there is a spare port that you could attach 8 LED's to?) Now you can use that 'sendchar' routine to debug. Just put hooks in your code to send values of diffent vars to the UART at different places, and get things working, one by one. A few basic 'knowns' like this are more use than fancy tools that you don't trust, IMO. Probably other folk here have some simple tricks they use in such situations? |



