JEVM Debugger Connection
The c:/fadata/jevm/bin directory contains the following .bat files that you can use to run JEVM with debugger connection capabilities. These files are:
jevm5510di.bat
jevm6416di.bat
jevm6455di.bat
jevm6711di.bat
jevm6713di.bat
For example, the jevm6416di.bat contains the following:
-r -c0x01800000=0x00012070 -c0x01800008=0xffffffd3 -c0x01800010=0x22a28a22
-c0x01800014=0x22a28a22 -c0x01800018=0x47115000 -c0x0180001c=0x00000618
-c0x01800020=0x000a8529 -c0x01A80000=0x00002070 -c0x01A80008=0x22008800
-c0x01A80004=0x22008800
-q -i %JEVM_DIR%/out/jevm6416di.out %1 %2 %3 %4 %5 %6 %7 %8 %9
The loader is called by its name jevmload.exe(note you should have the path c:\fadata\jevm\bin into your PATH environment variable), the option -f specifies the board data file, dsk6416.dat in our case (note you should have the JEVM_DIR environment variable set to c:/fadata/jevm), the option -d specifies the driver file (that you have copied) and the JEVM executable name supporting debug connection is jevm6416di.out. The other command line options instruct the loader to initialize the EMIF on board (-c options), ro reset the DSP (-r option) and to support CIO and wait for completion (-i option).
Example (use a CommandPrompt Window) with DSK6416, analogous for the other DSK:
Make sure c:\fadata\jevm\bin is in the PATH.
Make sure SUN Java SDK bin is in the PATH, e.g. c:\jdk1.6.0\bin.
Make sure you have JEVM_DIR environment variable set to c:/fadata/jevm.
Make sure you have TI_DIR environment variable set to your CCS installation forlder, e.g. c::/CCStudio_v3.2.
Change to c:/fadata/jevm/dsk/dsk6416
Execute
make clean
Execute
make
Execute
set CLASSPATH=c:/fadata/jevm/java/Bytecodes
Execute
jevm6416di TestAll
Wait till JEVM displays a message to announce it is waiting for debugger connection.
Activate Eclipse
Use File->Open c:/fadata/jevm/java/Bytecodes/TestAll.java file
Use Crtl-Shift-B to set a breakpoint at the main() method.
Use Window->ShowView->Breakpoints to show breakpoints window.
Use Run->Debug and press Debug button (or just press Debug icon at the toolbar).
Now Eclipse will connect to JEVM and you can start debugging.
Note: If you debug Java tests that use dynamic loading of native methods, you have to build the corresponding .out files using the provided JEVM libraries with debugger connection:
jevm5510di.lib
jevm6416di.lib
jevm6711di.lib
jevm6713di.lib


