]> git.sur5r.net Git - openocd/commitdiff
Edgar's new test cases.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 24 Apr 2008 09:21:42 +0000 (09:21 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 24 Apr 2008 09:21:42 +0000 (09:21 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@613 b42882b7-edfa-0310-969c-e2dbd0fdcd60

testing/examples/SAM7S256Test/results/607.html [new file with mode: 0644]
testing/testcases.html [new file with mode: 0644]

diff --git a/testing/examples/SAM7S256Test/results/607.html b/testing/examples/SAM7S256Test/results/607.html
new file mode 100644 (file)
index 0000000..570b3b3
--- /dev/null
@@ -0,0 +1,698 @@
+<html>\r
+<head>\r
+<title>Test results for revision 607</title>\r
+</head>\r
+\r
+<body>\r
+<H1>Test cases</H1>\r
+<H2>Test case results</H2>\r
+The test results are stored in seperate documents. One document for\r
+each subversion number.\r
+<table border="1">\r
+       <tr><td>Test results</td><td>comment</td></tr>\r
+       <tr><td>607</a></td><td></td></tr>\r
+       <tr><td><a href="results/template.html">template</a></td><td>Test results template</td></tr>\r
+</table>\r
+\r
+<H1>SAM7S64</H1>\r
+\r
+<H2>Connectivity</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="CON001"/>CON001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Telnet connection</td>\r
+               <td>Power on, jtag target attached</td>\r
+               <td>On console, type<br><code>telnet ip port</code></td>\r
+               <td><code>Open On-Chip Debugger<br>></code></td>\r
+               <td><code>Open On-Chip Debugger<br>></code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="CON002"/>CON002</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>GDB server connection</td>\r
+               <td>Power on, jtag target attached</td>\r
+               <td>On GDB console, type<br><code>target remote ip:port</code></td>\r
+               <td><code>Remote debugging using 10.0.0.73:3333</code></td>\r
+               <td><code>Remote debugging using 10.0.0.73:3333</code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>Reset</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES001"/>RES001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Reset halt on a blank target</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code></td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted<br>pc = 0</code></td>\r
+               <td>\r
+                       <code>\r
+                               JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)<br>\r
+                               nSRST pulls nTRST, falling back to "reset run_and_halt"<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to debug request, current mode: Supervisor<br>\r
+                               cpsr: 0x60000013 pc: 0x00100178\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES002"/>RES002</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Reset init on a blank target</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset init</code></td>\r
+               <td>Reset should return without error and the output should contain <br><code>executing reset script 'name_of_the_script'</code></td>\r
+               <td>\r
+                       <code>\r
+                               JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)<br>\r
+                               nSRST pulls nTRST, falling back to "reset run_and_init"<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to debug request, current mode: Supervisor<br>\r
+                               cpsr: 0x600000d3 pc: 0x00003e24<br>\r
+                               executing reset script 'event/sam7s256_reset.script'\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES003"/>RES003</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Reset after a power cycle of the target</td>\r
+               <td>Reset the target then power cycle the target</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code> after the power was detected</td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted</code></td>\r
+               <td>\r
+                       <code>\r
+                               JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)<br>\r
+                               nSRST pulls nTRST, falling back to "reset run_and_halt"<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to debug request, current mode: Supervisor<br>\r
+                               cpsr: 0x300000d3 pc: 0x00003a38\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>JTAG Speed</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>ZY1000</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="SPD001"/>RES001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>16MHz on normal operation</td>\r
+               <td>Reset init the target according to RES002 </td>\r
+               <td>Exercise a memory access over the JTAG, for example <br><code>mdw 0x0 32</code></td>\r
+               <td>The command should run without any errors. If any JTAG checking errors happen, the test failed</td>\r
+               <td>\r
+                       <code>\r
+                               > jtag_khz 16000<br>\r
+                               > mdw 0 32<br>\r
+                               0x00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>Debugging</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG001"/>DBG001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Load is working</td>\r
+               <td>Reset init is working, RAM is accesible, GDB server is started</td>\r
+               <td>On the console of the OS: <br>\r
+                       <code>arm-elf-gdb test_ram.elf</code><br>\r
+                       <code>(gdb) target remote ip:port</code><br>\r
+                       <code>(gdb) load</load>\r
+               </td>\r
+               <td>Load should return without error, typical output looks like:<br>\r
+                       <code>\r
+                               Loading section .text, size 0x14c lma 0x0<br>\r
+                               Start address 0x40, load size 332<br>\r
+                               Transfer rate: 180 bytes/sec, 332 bytes/write.<br>\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       (gdb) load<br>\r
+                       Loading section .text, size 0x194 lma 0x200000<br>\r
+                       Start address 0x200040, load size 404<br>\r
+                       Transfer rate: 17470 bits/sec, 404 bytes/write.\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG002"/>DBG002</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Software breakpoint</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001</td>\r
+               <td>In the GDB console:<br>\r
+                       <code>\r
+                               (gdb) monitor arm7_9 sw_bkpts enable<br>\r
+                               software breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0xec: file src/main.c, line 71.<br>\r
+                               (gdb) continue<br>\r
+                               Continuing.\r
+                       </code>\r
+               </td>\r
+               <td>The software breakpoint should be reached, a typical output looks like:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                               cpsr: 0x000000d3 pc: 0x000000ec<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:71<br>\r
+                               71        DWORD a = 1;\r
+                       </code>\r
+               </td>\r
+               <td>\r
+                       <code>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 2 at 0x200134: file src/main.c, line 69.<br>\r
+                               (gdb) c<br>\r
+                               Continuing.<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                               cpsr: 0x60000013 pc: 0x00200134<br>\r
+                               <br>\r
+                               Breakpoint 2, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG003"/>DBG003</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Single step in a RAM application</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001, break in main using the instructions from GDB002</td>\r
+               <td>In GDB, type <br><code>(gdb) step</code></td>\r
+               <td>The next instruction should be reached, typical output:<br>\r
+                       <code>\r
+                               (gdb) step<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f0<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f4<br>\r
+                               72        DWORD b = 2;\r
+                       </code>\r
+               </td>\r
+               <td>\r
+                               <code>\r
+                               (gdb) step<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f0<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f4<br>\r
+                               72        DWORD b = 2;\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG004"/>DBG004</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Software break points are working after a reset</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001, break in main using the instructions from GDB002</td>\r
+               <td>In GDB, type <br><code>\r
+                       (gdb) monitor reset<br>\r
+                       (gdb) load<br>\r
+                       (gdb) continue<br>\r
+                       </code></td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                               cpsr: 0x000000d3 pc: 0x000000ec<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:71<br>\r
+                               71        DWORD a = 1;\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       (gdb) moni reset<br>\r
+                       JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to debug request, current mode: Supervisor<br>\r
+                       cpsr: 0x600000d3 pc: 0x00003e28<br>\r
+                       executing reset script 'event/sam7s256_reset.script'<br>\r
+                       (gdb) load<br>\r
+                       Loading section .text, size 0x194 lma 0x200000<br>\r
+                       Start address 0x200040, load size 404<br>\r
+                       Transfer rate: 20455 bits/sec, 404 bytes/write.<br>\r
+                       (gdb) continue<br>\r
+                       Continuing.<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x00200134<br>\r
+                       <br>\r
+                       Breakpoint 2, main () at src/main.c:69<br>\r
+                       69        DWORD a = 1;\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG005"/>DBG005</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Hardware breakpoint</td>\r
+               <td>Flash the test_rom.elf application. Make this test after FLA004 has passed</td>\r
+               <td>Be sure that <code>gdb_memory_map</code> and <code>gdb_flash_program</code> are enabled. In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) load<br>\r
+                               Loading section .text, size 0x194 lma 0x100000<br>\r
+                               Start address 0x100040, load size 404<br>\r
+                               Transfer rate: 179 bytes/sec, 404 bytes/write.<br>\r
+                               (gdb) monitor arm7_9  force_hw_bkpts enable<br>\r
+                               force hardware breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0x100134: file src/main.c, line 69.<br>\r
+                               (gdb) continue<br>\r
+                       </code>\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                       </code>\r
+               </td>\r
+               <td>\r
+               <code>\r
+                       (gdb) break main<br>\r
+                       Breakpoint 1 at 0x100134: file src/main.c, line 69.<br>\r
+                       (gdb) c<br>\r
+                       Continuing.<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x00100134<br>\r
+                       <br>\r
+                       Breakpoint 1, main () at src/main.c:69<br>\r
+                       69        DWORD a = 1;\r
+               </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG006"/>DBG006</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Hardware breakpoint is set after a reset</td>\r
+               <td>Follow the instructions to flash and insert a hardware breakpoint from DBG005</td>\r
+               <td>In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) monitor reg pc 0x100000<br>\r
+                               pc (/32): 0x00100000<br>\r
+                               (gdb) continue\r
+                       </code><br>\r
+                       where the value inserted in PC is the start address of the application\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                       </code>\r
+               </td>\r
+               <td>\r
+               <code>\r
+                       Continuing.<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to single step, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x00100040<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x00100134<br>\r
+                       <br>\r
+                       Breakpoint 1, main () at src/main.c:69<br>\r
+                       69        DWORD a = 1;\r
+               </code><br>\r
+               <b>Aren't there too many "halted" signs?</b>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG007"/>DBG007</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Single step in ROM</td>\r
+               <td>Flash the test_rom.elf application and set a breakpoint in main, use DBG005. Make this test after FLA004 has passed</td>\r
+               <td>Be sure that <code>gdb_memory_map</code> and <code>gdb_flash_program</code> are enabled. In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) load<br>\r
+                               Loading section .text, size 0x194 lma 0x100000<br>\r
+                               Start address 0x100040, load size 404<br>\r
+                               Transfer rate: 179 bytes/sec, 404 bytes/write.<br>\r
+                               (gdb) monitor arm7_9  force_hw_bkpts enable<br>\r
+                               force hardware breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0x100134: file src/main.c, line 69.<br>\r
+                               (gdb) continue<br>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                               (gdb) step\r
+                       </code>\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Supervisor<br>\r
+                               cpsr: 0x60000013 pc: 0x0010013c<br>\r
+                               70        DWORD b = 2;<br>\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       (gdb) step<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to single step, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x00100138<br>\r
+                       target state: halted<br>\r
+                       target halted in ARM state due to single step, current mode: Supervisor<br>\r
+                       cpsr: 0x60000013 pc: 0x0010013c<br>\r
+                       70        DWORD b = 2;\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>RAM access</H2>\r
+Note: these tests are not designed to test/debug the target, but to test functionalities!\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM001"/>RAM001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>32 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mww ram_address 0xdeadbeef 16<br>\r
+                                       > mdw ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 32bit long containing 0xdeadbeef.<br>\r
+                       <code>\r
+                               > mww 0x0 0xdeadbeef 16<br>\r
+                               > mdw 0x0 32<br>\r
+                               0x00000000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x00000020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x00000040: e1a00000 e59fa51c e59f051c e04aa000 00080017 00009388 00009388 00009388<br>\r
+                               0x00000060: 00009388 0002c2c0 0002c2c0 000094f8 000094f4 00009388 00009388 00009388<br>\r
+                       </code>\r
+               </td>\r
+               <td>\r
+               <code>\r
+                       > mww 0x00200000 0xdeadbeef 16<br>\r
+                       > mdw 0x00200000 32<br>\r
+                       0x00200000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                       0x00200020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                       0x00200040: e59f10b4 e3a00902 e5810004 e59f00ac e59f10ac e5810000 e3e010ff e59f00a4<br>\r
+                       0x00200060: e5810060 e59f10a0 e3e00000 e5810130 e5810124 e321f0db e59fd090 e321f0d7\r
+               </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM002"/>RAM002</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>16 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mwh ram_address 0xbeef 16<br>\r
+                                       > mdh ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 16bit long containing 0xbeef.<br>\r
+                       <code>\r
+                               > mwh 0x0 0xbeef 16<br>\r
+                               > mdh 0x0 32<br>\r
+                               0x00000000: beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef<br>\r
+                               0x00000020: 00e0 0000 021c 0000 0240 0000 026c 0000 0288 0000 0000 0000 0388 0000 0350 0000<br>\r
+                               >\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       > mwh 0x00200000 0xbeef 16<br>\r
+                       > mdh 0x00200000 32<br>\r
+                       0x00200000: beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef<br>\r
+                       0x00200020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM003"/>RAM003</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>8 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mwb ram_address 0xab 16<br>\r
+                                       > mdb ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 8bit long containing 0xab.<br>\r
+                       <code>\r
+                               > mwb ram_address 0xab 16<br>\r
+                               > mdb ram_address 32<br>\r
+                               0x00000000: ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>\r
+                               >\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       > mwb 0x00200000 0xab 16<br>\r
+                       > mdb 0x00200000 32<br>\r
+                       0x00200000: ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+\r
+\r
+<H2>Flash access</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Actual output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA001"/>FLA001</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Flash probe</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface:<br>\r
+                       <code>  > flash probe 0</code>\r
+               </td>\r
+               <td>The command should execute without error. The output should state the name of the flash and the starting address. An example of output:<br>\r
+                       <code>flash 'ecosflash' found at 0x01000000</code>\r
+               </td>\r
+               <td>\r
+               <code>\r
+                       > flash probe 0<br>\r
+                       flash 'at91sam7' found at 0x00100000\r
+               </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA002"/>FLA002</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>flash fillw</td>\r
+               <td>Reset init is working, flash is probed</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > flash fillw 0x1000000 0xdeadbeef 16\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. The output looks like:<br>\r
+                       <code>\r
+                               wrote 64 bytes to 0x01000000 in 11.610000s (0.091516 kb/s)\r
+                       </code><br>\r
+                       To verify the contents of the flash:<br>\r
+                       <code>\r
+                               > mdw 0x1000000 32<br>\r
+                               0x01000000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x01000020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x01000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       > flash fillw 0x100000 0xdeadbeef 16<br>\r
+                       wrote 64 bytes to 0x00100000 in 1.110000s (0.957207 kb/s)<br>\r
+                       > mdw 0x100000 32<br>\r
+                       0x00100000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                       0x00100020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                       0x00100040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                       0x00100060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA003"/>FLA003</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Flash erase</td>\r
+               <td>Reset init is working, flash is probed</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  >  flash erase_address 0x1000000 0x2000\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error.<br>\r
+                       <code>\r
+                               erased address 0x01000000 length 8192 in 4.970000s\r
+                       </code>\r
+                       To check that the flash has been erased, read at different addresses. The result should always be 0xff.\r
+                       <code>\r
+                               > mdw 0x1000000 32<br>\r
+                               0x01000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+                       </code>\r
+               </td>\r
+               <td><code>\r
+                       > flash erase_address 0x100000 0x2000<br>\r
+                       erased address 0x00100000 length 8192 in 0.510000s<br>\r
+                       > mdw 0x100000 32<br>\r
+                       0x00100000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                       0x00100020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                       0x00100040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                       0x00100060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                       >\r
+               </code></td>\r
+               <td>PASS</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA004"/>FLA004</td>\r
+               <td>SAM7S64</td>\r
+               <td>ZY1000</td>\r
+               <td>Loading to flash from GDB</td>\r
+               <td>Reset init is working, flash is probed, connectivity to GDB server is working</td>\r
+               <td>Start GDB using a ROM elf image, eg: arm-elf-gdb test_rom.elf. <br>\r
+                               <code>\r
+                                       (gdb) target remote ip:port<br>\r
+                                       (gdb) monitor reset<br>\r
+                                       (gdb) load<br>\r
+                                       Loading section .text, size 0x194 lma 0x100000<br>\r
+                                       Start address 0x100040, load size 404<br>\r
+                                       Transfer rate: 179 bytes/sec, 404 bytes/write.\r
+                                       (gdb) monitor verify_image path_to_elf_file\r
+                               </code>\r
+               </td>\r
+               <td>The output should look like:<br>\r
+                       <code>\r
+                               verified 404 bytes in 5.060000s\r
+                       </code><br>\r
+                       The failure message is something like:<br>\r
+                       <code>Verify operation failed address 0x00200000. Was 0x00 instead of 0x18</code>\r
+               </td>\r
+               <td>\r
+                       <code>\r
+                               (gdb) load<br>\r
+                               Loading section .text, size 0x194 lma 0x100000<br>\r
+                               Start address 0x100040, load size 404<br>\r
+                               Transfer rate: 1540 bits/sec, 404 bytes/write.<br>\r
+                               (gdb) monitor verify_image /tftp/10.0.0.9/c:\workspace/ecosboard/ecosboard/phi/openocd/rep/testing/examples/SAM7S256Test/test_rom.elf<br>\r
+                               verified 404 bytes in 4.860000s\r
+                       </code>\r
+               </td>\r
+               <td>PASS</td>\r
+       </tr>\r
+</table>\r
+\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/testing/testcases.html b/testing/testcases.html
new file mode 100644 (file)
index 0000000..df8bfe7
--- /dev/null
@@ -0,0 +1,578 @@
+<html>\r
+<head>\r
+<title>Test cases</title>\r
+</head>\r
+\r
+<body>\r
+<H1>Test cases</H1>\r
+<H2>Test case results</H2>\r
+The test results are stored in seperate documents. One document for\r
+each subversion number.\r
+<table border="1">\r
+       <tr><td>Test results</td><td>comment</td></tr>\r
+       <tr><td><a href="examples/SAM7S256Test/results/607.html">607</a></td><td></td></tr>\r
+       <tr><td><a href="results/template.html">template</a></td><td>Test results template</td></tr>\r
+</table>\r
+\r
+<H2>Vocabulary</H2>\r
+<table border="1">\r
+       <tr>\r
+               <td width="100">Passed version</td>\r
+\r
+               <td>The latest branch and version on which the test is known to pass</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Broken version</td>\r
+               <td>The latest branch and version on which the test is known to fail. n/a when older than passed version.</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">ID</td>\r
+               <td>A unqiue ID to refer to a test. The unique numbers are maintained in this file. Note that the same test can be run on different hardware/interface. Each combination yields a unique id. </td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Test case</td>\r
+               <td>An atomic entity that describes the operations needed to test a feature or only a part of it. The test case should:\r
+                       <ul>\r
+                               <li>be uniquely identifiable</li>\r
+                               <li>define the complete prerequisites of the test (eg: the target, the interface, the initial state of the system)</li>\r
+                               <li>define the input to be applied to the system in order to execute the test</li>\r
+                               <li>define the expected output</li>\r
+                               <li>contain the output resulted by running the test case</li>\r
+                               <li>contain the result of the test (pass/fail)</li>\r
+                       </ul>\r
+               </td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Test suite</td>\r
+               <td>A (completable) collection of test cases</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Testing</td>\r
+               <td>Testing refers to running the test suite for a specific revision of the software,\r
+               for one or many targets, using one or many JTAG interfaces. Testing should be be stored\r
+               along with all the other records for that specific revision. For releases, the results\r
+               can be stored along with the binaries</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Target = ANY</td>\r
+               <td>Any target can be used for this test</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Interface = ANY</td>\r
+               <td>Any interface can be used for this test</td>\r
+       </tr>\r
+       <tr>\r
+               <td width="100">Target = "reset_config srst_and_trst"</td>\r
+               <td>Any target which supports the reset_config above</td>\r
+       </tr>\r
+</table>\r
+\r
+<H1>Test cases</H1>\r
+\r
+<H2>Connectivity</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="CON001"/>CON001</td>\r
+               <td>ALL</td>\r
+               <td>ALL</td>\r
+               <td>Telnet connection</td>\r
+               <td>Power on, jtag target attached</td>\r
+               <td>On console, type<br><code>telnet ip port</code></td>\r
+               <td><code>Open On-Chip Debugger<br>></code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="CON002"/>CON002</td>\r
+               <td>ALL</td>\r
+               <td>ALL</td>\r
+               <td>GDB server connection</td>\r
+               <td>Power on, jtag target attached</td>\r
+               <td>On GDB console, type<br><code>target remote ip:port</code></td>\r
+               <td><code>Remote debugging using 10.0.0.73:3333</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>Reset</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES001"/>RES001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Reset halt on a blank target</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code></td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted<br>pc = 0</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES002"/>RES002</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Reset init on a blank target</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset init</code></td>\r
+               <td>Reset should return without error and the output should contain <br><code>executing reset script 'name_of_the_script'</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES003"/>RES003</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Reset after a power cycle of the target</td>\r
+               <td>Reset the target then power cycle the target</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code> after the power was detected</td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES004"/>RES004</td>\r
+               <td>ARM7/9,reset_config srst_and_trst</td>\r
+               <td>ANY</td>\r
+               <td>Reset halt on a blank target where reset halt is supported</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code></td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted<br>pc = 0</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RES005"/>RES005</td>\r
+               <td>arm926ejs,reset_config srst_and_trst</td>\r
+               <td>ANY</td>\r
+               <td>Reset halt on a blank target where reset halt is supported. This target has problems with the reset vector catch being disabled by TRST</td>\r
+               <td>Erase all the content of the flash</td>\r
+               <td>Connect via the telnet interface and type <br><code>reset halt</code></td>\r
+               <td>Reset should return without error and the output should contain<br><code>target state: halted<br>pc = 0</code></td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>JTAG Speed</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="SPD001"/>RES001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>16MHz on normal operation</td>\r
+               <td>Reset init the target according to RES002 </td>\r
+               <td>Exercise a memory access over the JTAG, for example <br><code>mdw 0x0 32</code></td>\r
+               <td>The command should run without any errors. If any JTAG checking errors happen, the test failed</td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>Debugging</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG001"/>DBG001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Load is working</td>\r
+               <td>Reset init is working, RAM is accesible, GDB server is started</td>\r
+               <td>On the console of the OS: <br>\r
+                       <code>arm-elf-gdb test_ram.elf</code><br>\r
+                       <code>(gdb) target remote ip:port</code><br>\r
+                       <code>(gdb) load</load>\r
+               </td>\r
+               <td>Load should return without error, typical output looks like:<br>\r
+                       <code>\r
+                               Loading section .text, size 0x14c lma 0x0<br>\r
+                               Start address 0x40, load size 332<br>\r
+                               Transfer rate: 180 bytes/sec, 332 bytes/write.<br>\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG002"/>DBG002</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Software breakpoint</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001</td>\r
+               <td>In the GDB console:<br>\r
+                       <code>\r
+                               (gdb) monitor arm7_9 sw_bkpts enable<br>\r
+                               software breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0xec: file src/main.c, line 71.<br>\r
+                               (gdb) continue<br>\r
+                               Continuing.\r
+                       </code>\r
+               </td>\r
+               <td>The software breakpoint should be reached, a typical output looks like:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                               cpsr: 0x000000d3 pc: 0x000000ec<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:71<br>\r
+                               71        DWORD a = 1;\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG003"/>DBG003</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Single step in a RAM application</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001, break in main using the instructions from GDB002</td>\r
+               <td>In GDB, type <br><code>(gdb) step</code></td>\r
+               <td>The next instruction should be reached, typical output:<br>\r
+                       <code>\r
+                               (gdb) step<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f0<br>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Abort<br>\r
+                               cpsr: 0x20000097 pc: 0x000000f4<br>\r
+                               72        DWORD b = 2;\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG004"/>DBG004</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Software break points are working after a reset</td>\r
+               <td>Load the test_ram.elf application, use instructions from GDB001, break in main using the instructions from GDB002</td>\r
+               <td>In GDB, type <br><code>\r
+                       (gdb) monitor reset<br>\r
+                       (gdb) load<br>\r
+                       (gdb) continue<br>\r
+                       </code></td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to breakpoint, current mode: Supervisor<br>\r
+                               cpsr: 0x000000d3 pc: 0x000000ec<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:71<br>\r
+                               71        DWORD a = 1;\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG005"/>DBG005</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Hardware breakpoint</td>\r
+               <td>Flash the test_rom.elf application. Make this test after FLA004 has passed</td>\r
+               <td>Be sure that <code>gdb_memory_map</code> and <code>gdb_flash_program</code> are enabled. In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) load<br>\r
+                               Loading section .text, size 0x194 lma 0x100000<br>\r
+                               Start address 0x100040, load size 404<br>\r
+                               Transfer rate: 179 bytes/sec, 404 bytes/write.<br>\r
+                               (gdb) monitor arm7_9  force_hw_bkpts enable<br>\r
+                               force hardware breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0x100134: file src/main.c, line 69.<br>\r
+                               (gdb) continue<br>\r
+                       </code>\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG006"/>DBG006</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Hardware breakpoint is set after a reset</td>\r
+               <td>Follow the instructions to flash and insert a hardware breakpoint from DBG005</td>\r
+               <td>In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) monitor reg pc 0x100000<br>\r
+                               pc (/32): 0x00100000<br>\r
+                               (gdb) continue\r
+                       </code>\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="DBG007"/>DBG007</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Single step in ROM</td>\r
+               <td>Flash the test_rom.elf application and set a breakpoint in main, use DBG005. Make this test after FLA004 has passed</td>\r
+               <td>Be sure that <code>gdb_memory_map</code> and <code>gdb_flash_program</code> are enabled. In GDB, type <br>\r
+                       <code>\r
+                               (gdb) monitor reset<br>\r
+                               (gdb) load<br>\r
+                               Loading section .text, size 0x194 lma 0x100000<br>\r
+                               Start address 0x100040, load size 404<br>\r
+                               Transfer rate: 179 bytes/sec, 404 bytes/write.<br>\r
+                               (gdb) monitor arm7_9  force_hw_bkpts enable<br>\r
+                               force hardware breakpoints enabled<br>\r
+                               (gdb) break main<br>\r
+                               Breakpoint 1 at 0x100134: file src/main.c, line 69.<br>\r
+                               (gdb) continue<br>\r
+                               Continuing.<br>\r
+                               <br>\r
+                               Breakpoint 1, main () at src/main.c:69<br>\r
+                               69        DWORD a = 1;<br>\r
+                               (gdb) step\r
+                       </code>\r
+               </td>\r
+               <td>The breakpoint should be reached, typical output:<br>\r
+                       <code>\r
+                               target state: halted<br>\r
+                               target halted in ARM state due to single step, current mode: Supervisor<br>\r
+                               cpsr: 0x60000013 pc: 0x0010013c<br>\r
+                               70        DWORD b = 2;<br>\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+<H2>RAM access</H2>\r
+Note: these tests are not designed to test/debug the target, but to test functionalities!\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM001"/>RAM001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>32 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mww ram_address 0xdeadbeef 16<br>\r
+                                       > mdw ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 32bit long containing 0xdeadbeef.<br>\r
+                       <code>\r
+                               > mww 0x0 0xdeadbeef 16<br>\r
+                               > mdw 0x0 32<br>\r
+                               0x00000000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x00000020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x00000040: e1a00000 e59fa51c e59f051c e04aa000 00080017 00009388 00009388 00009388<br>\r
+                               0x00000060: 00009388 0002c2c0 0002c2c0 000094f8 000094f4 00009388 00009388 00009388<br>\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM001"/>RAM001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>16 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mwh ram_address 0xbeef 16<br>\r
+                                       > mdh ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 16bit long containing 0xbeef.<br>\r
+                       <code>\r
+                               > mwh 0x0 0xbeef 16<br>\r
+                               > mdh 0x0 32<br>\r
+                               0x00000000: beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef beef<br>\r
+                               0x00000020: 00e0 0000 021c 0000 0240 0000 026c 0000 0288 0000 0000 0000 0388 0000 0350 0000<br>\r
+                               >\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="RAM003"/>RAM003</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>8 bit Write/read RAM</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > mwb ram_address 0xab 16<br>\r
+                                       > mdb ram_address 32\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. A clear failure is a memory access exception. The result of running the commands should be a list of 16 locations 8bit long containing 0xab.<br>\r
+                       <code>\r
+                               > mwh 0x0 0x0 16<br>\r
+                               > mwb ram_address 0xab 16<br>\r
+                               > mdb ram_address 32<br>\r
+                               0x00000000: ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>\r
+                               >\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+\r
+\r
+<H2>Flash access</H2>\r
+<table border=1>\r
+       <tr>\r
+               <td>ID</td>\r
+               <td>Target</td>\r
+               <td>Interface</td>\r
+               <td>Description</td>\r
+               <td>Initial state</td>\r
+               <td>Input</td>\r
+               <td>Expected output</td>\r
+               <td>Pass/Fail</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA001"/>FLA001</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Flash probe</td>\r
+               <td>Reset init is working</td>\r
+               <td>On the telnet interface:<br>\r
+                       <code>  > flash probe 0</code>\r
+               </td>\r
+               <td>The command should execute without error. The output should state the name of the flash and the starting address. An example of output:<br>\r
+                       <code>flash 'ecosflash' found at 0x01000000</code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA002"/>FLA002</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>flash fillw</td>\r
+               <td>Reset init is working, flash is probed</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  > flash fillw 0x1000000 0xdeadbeef 16\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error. The output looks like:<br>\r
+                       <code>\r
+                               wrote 64 bytes to 0x01000000 in 11.610000s (0.091516 kb/s)\r
+                       </code><br>\r
+                       To verify the contents of the flash:<br>\r
+                       <code>\r
+                               > mdw 0x1000000 32<br>\r
+                               0x01000000: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x01000020: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef<br>\r
+                               0x01000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA003"/>FLA003</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Flash erase</td>\r
+               <td>Reset init is working, flash is probed</td>\r
+               <td>On the telnet interface<br>\r
+                       <code>  >  flash erase_address 0x1000000 0x2000\r
+                       </code>\r
+               </td>\r
+               <td>The commands should execute without error.<br>\r
+                       <code>\r
+                               erased address 0x01000000 length 8192 in 4.970000s\r
+                       </code>\r
+                       To check that the flash has been erased, read at different addresses. The result should always be 0xff.\r
+                       <code>\r
+                               > mdw 0x1000000 32<br>\r
+                               0x01000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff<br>\r
+                               0x01000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff\r
+                       </code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+       <tr>\r
+               <td><a name="FLA004"/>FLA004</td>\r
+               <td>Fill in!</td>\r
+               <td>Fill in!</td>\r
+               <td>Loading to flash from GDB</td>\r
+               <td>Reset init is working, flash is probed, connectivity to GDB server is working</td>\r
+               <td>Start GDB using a ROM elf image, eg: arm-elf-gdb test_rom.elf. <br>\r
+                               <code>\r
+                                       (gdb) target remote ip:port<br>\r
+                                       (gdb) monitor reset<br>\r
+                                       (gdb) load<br>\r
+                                       Loading section .text, size 0x194 lma 0x100000<br>\r
+                                       Start address 0x100040, load size 404<br>\r
+                                       Transfer rate: 179 bytes/sec, 404 bytes/write.\r
+                                       (gdb) monitor verify_image path_to_elf_file\r
+                               </code>\r
+               </td>\r
+               <td>The output should look like:<br>\r
+                       <code>\r
+                               verified 404 bytes in 5.060000s\r
+                       </code><br>\r
+                       The failure message is something like:<br>\r
+                       <code>Verify operation failed address 0x00200000. Was 0x00 instead of 0x18</code>\r
+               </td>\r
+               <td>PASS/FAIL</td>\r
+       </tr>\r
+</table>\r
+\r
+</body>\r
+</html>
\ No newline at end of file