Download TMS320C4x C SOURCE DEBUGGER USER'S GUIDE
Transcript
Take a look at the display Take a look at the display. . . Now you should see a display similar to this (it may not be exactly the same display, but it should be close). menu bar with pulldown menus current PC (highlighted) reverse assembly of memory contents register contents COMMAND window display area memory contents command line Load Break Watch DISASSEMBLY 002ff864 00001800 002ff865 1a950015 002ff866 0870002f 002ff867 0834f862 002ff868 080b0014 002ff869 0870002f 002ff86a 0828f863 002ff86b 04e8ffff 002ff86c 6a05000f 002ff86d 085b2001 002ff86e 0800001b 002ff86f 6a25000a 002ff870 08492001 002ff871 08402001 002ff872 0c800000 002ff873 187b001 Memory cache: c_int00: do_int: Color ABSF XOR LDI LDI LDI LDI LDI CMPI BZ LDI LDI BZD LDI LDI NOP SUBI COMMAND (c)Copyright 1989, Texas Instruments Silicon Revision 2 Emulator Revision 1 Loading sample.out Done >>> - MoDe Analysis Run=F5 Step=F8 CPU PC 002ff865 R0 00000000 R2 00000002 R4 00000004 R6 00000006 R8 00000000 R10 00000000 AR0 000000a0 AR2 000000a2 AR4 000000a4 AR6 000000a6 IR0 00000000 ST 00000000 RS 00000000 DP 00000000 0IE 00000000 11F 00000000 TVTP00000000 R0,R0 ST,ST 47,DP @0f862H,SP SP,AR3 47,DP @0f863H,AR0 –1,AR0 done *AR0++(1),R RC,R0 done *AR0++(1),A *AR0++(1),R 1,RC Next=F10 SP R1 R3 R5 R7 R9 R11 AR1 AR3 AR5 AR7 IR1 RC RE BK 1IE 1VTP CLK 80000000 00000001 00000003 00000005 0074fa37 00000000 00000000 000000a1 000000a3 000000a5 80000000 00000000 fffffffe 00000000 00000000 00000000 00000000 00000000 MEMORY 00000000 00000056 00000077 00000000 00000000 00000005 00000000 00000000 00000000 00000000 0000000a 00000000 00000000 00000000 00000000 0000000f 00000000 00000000 00000000 00000000 00000014 00000000 00000000 00000000 00000000 00000019 00000000 00000000 00000000 00000000 If you don’t see a display, then your debugger or board may not be installed properly. Go back through the installation instructions and be sure that you followed each step correctly; then reinvoke the debugger. If you do see a display, check the first few lines of the DISASSEMBLY window. If these lines aren’t the same—if, for example, they show ADD instructions or say invalid address—then enter the following commands on the debugger command line. (Just type; you don’t have to worry about where the cursor is.) 1) Reset the ’C4x processor: reset 2) Load the sample program again: load c:\c4xhll\sample - 2-4 load c:\sim4x\sample (emulator) (simulator) If you see a display and the first few lines of the DISASSEMBLY window still show ADD instructions or they say invalid address after resetting the ’C4x processor, your emulator board may not be inserted snugly. Check your board and see if it is installed correctly, then reenter the above commands.