Debug using SAM-ICE

Purpose

Use GDB debugger to debug applications. SAM-ICE is needed.

Download and Install


Download the latest J-Link ARM software from SEGGER website and install it following install process.

Debug

  1. Un-plug power Adapter supply.


  2. Connect SAM-ICE through the 20-wire cable to EK board.


  3. Connect the SAM-ICE to a USB port of your Host PC Computer,and PC driver for SAM-ICE is detected automaticlly.


  4. Re-plug in power Adapter supply.


  5. Picture below show us the hardware connection:



  6. Start GDB server.
    Start Menu --> SEGGER --> J-Link ARM vX.Y --> J-Link GDB Server
    The SEGGER GDB Server tool enables the GNU debugger to connect remotely to the target through the JTAG. When launched, GDB Server connects to the board and waits for debugger connections. A window displaying useful information is also shown (see Figure below). It indicates the connection statuses of the debugger, the SAM-ICE and the target.




  7. Open command shell

  8. Connect target board to gdb server



  9. Debugging


  10. Close command shell window.


[ BACK]
[ DEMO RECOVERY]
Atmel Corporation ©2009