Selecting a Tool

 Objective

This short tutorial will show you how to select and change the debugger platform for the currently selected project. The ATtiny817 Xplained Pro kit has an on-board embedded debugger (EDBG) which eliminates the need for a dedicated programmer / debugger. This page will go through the process of associating the EDBG with your project.

This article assumes that you've already created a project for the ATtiny817 Xplained Pro. If you haven't yet done so, please go through the steps in the Creating a Project in Atmel Studio 7 page.

 Materials

Hardware Tools

Software Tools

Tool About Installers
Installation
Instructions
Windows Linux Mac OSX
swtool-28px.png
Atmel® Studio
Integrated Development Environment

 Procedure

1

Open the Tool tab

Click the Tool button located in the top menu bar to open the Tool tab.

NoTool.png

2

Select tool/debugger from the drop down list.

The Tool tab of the Project Properties window will open. In the drop-down menu, select the 'EDBG' tool.

SelectEDBG.png
  • The serial number of the tool will accompany its name in the drop-down menu. This serial number is printed on the back side of each tool, allowing differentiation when more than one is connected.
  • These steps can always be repeated if a different tool should be used for the next debug/ program session.

On the ATtiny817 Xplained Pro, the EDBG is permanently connected to the target MCU, but for a custom hardware solution is it necessary to ensure the target device is powered and properly connected before a debug session can be launched.

To learn more about the other settings in the Tool tab, please visit the Tool options section in the Studio User Guide.

3

Settings Verification

You can verify the tool and project configuration setup by compiling the empty project and writing it to the ATtiny817.

Click on 'Start Without Debugging' located in the Debug menu. This will compile the project and write it to the specified target MCU using the configured tool.

StartWODebugging.png

If there is new firmware available for the selected tool, the Firmware Upgrade dialog will appear. Click the Upgrade button to start the firmware upgrade.

FirmwareUpgrade.png

Depending on the state of the connected tool and the actual firmware upgrade, the upgrade may fail on the first attempt. This is normal and can be resolved by disconnecting and reconnecting the kit before clicking Upgrade again. After the upgrade has completed, the dialog should say "EDBG Firmware Successfully Upgraded". Close the dialog box and make a new attempt at programming the kit by clicking on 'Start Without Debugging' again.

 Results

By compiling the empty project and writing it to the ATtiny817 the following has been
verified:

  • The project is configured for the correct MCU
  • The correct tool has been selected
  • The tool's firmware is up to date
© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.