Skip to content

Programming and Debugging

edschmitt edited this page Oct 6, 2015 · 17 revisions

Programming and Debugging

Target Atany900

For the Atany900 target the JTAGICE mkII programmer and debugger is in use and in the AVR Studio (version 6.2) included. With "Tools->Device Programming" the Tool , Device and Interface can be set, as well as the output file.
Download the installation files from:
http://www.atmel.com/microsite/atmelstudio6/ and install it.
Attention: be sure to have built the .hex or .elf output file before programming the application.

DevicePrg_AVRStudio Device programming with AVR-Studio

Target Atany900Basic

Target Atany900Pro5

Target Efm32Stk3600

Target SamD20Xpro

For the SamD20Xpro target the OpenOCD debugger is used. This target ("SAM D20 Xplained Pro Evaluation Kit") has a J-Link debug chip on board.
For Windows: Download the installation file (OpenOCD-0.8.0-Win32.zip) from http://www.freddiechopin.info/en/download and unpack it at your desired location. Be sure to use the Windows binaries for x32 or x64, both versions are possible.
For Linux: Download the installation file (OpenOCD-0.8.0-Win32.zip) from http://sourceforge.net/projects/openocd/files/openocd/ and install it. Use version 0.8.0 to have the actual debug configuration files available.

Open the preferences dialog at "Window->Preferences->Run/Debug->String Substitution" and add following name- and path- substitutions as the debug configuration information matching to your system.

DebugConfig_OpenOCD_Path Path for OpenOCD Debugger

Set the programming configuration: OpenOCD_Main_Xpro212 XPro212 debug configuration - main dialog

Set the debug configuration: OpenOCD_Debugger_Xpro212 XPro212 debug configuration - debugger dialog

From the debugging menue the programming and debugging procedure can be started: DebugConfig_Menue
Open dialog for available debug configurations