APPLICATION NOTE. Hardware and Software Getting Started. ATmegaS128-STK600. Introduction. Requirements. Objective

Similar documents
APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

AT88CK490 Evaluation Kit

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

CryptoAuth Xplained Pro

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

USER GUIDE. ZigBit USB Stick User Guide. Introduction

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

USER GUIDE EDBG. Description

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

Dell One Identity Cloud Access Manager How to Configure vworkspace Integration

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

General Porting Considerations. Memory EEPROM XRAM

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

Spotlight Management Pack for SCOM

Spotlight Management Pack for SCOM

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE

APPLICATION NOTE. AT12405: Low Power Sensor Design with PTC. Atmel MCU Integrated Touch. Introduction

AT91SAM ARM-based Flash MCU. Application Note

Dell InTrust Preparing for Auditing Cisco PIX Firewall

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

Dell Statistica Statistica Enterprise Installation Instructions

Designing Feature-Rich User Interfaces for Home and Industrial Controllers

formerly Help Desk Authority Quest Free Network Tools User Manual

Dell Statistica Document Management System (SDMS) Installation Instructions

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

Quest vworkspace Virtual Desktop Extensions for Linux

QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

Dell One Identity Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

MODFLEX MINI GATEWAY ETHERNET USER S GUIDE

Security Analytics Engine 1.0. Help Desk User Guide

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

Introduction to Version Control in

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

Dell InTrust Preparing for Auditing CheckPoint Firewall

Dell Statistica. Statistica Document Management System (SDMS) Requirements

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

AN3354 Application note

Using the RS232 serial evaluation boards on a USB port

Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview

COM Port Stress Test

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

FN:PCMCSET-M1.DOC. PCMCSET SOFTWARE for ATS Master Clocks System Clocks and Displays

More Secure, Less Costly IoT Edge Node Security Provisioning

Dell One Identity Cloud Access Manager How to Configure Microsoft Office 365

Atmel AVR1017: XMEGA - USB Hardware Design Recommendations. 8-bit Atmel Microcontrollers. Application Note. Features.

4.0. Offline Folder Wizard. User Guide

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Dell One Identity Cloud Access Manager How to Configure for High Availability

How To Design An Ism Band Antenna For 915Mhz/2.4Ghz Ism Bands On A Pbbb (Bcm) Board

Dell Migration Manager for Enterprise Social What Can and Cannot Be Migrated

APPLICATION NOTE. Atmel AVR600: STK600 Expansion, Routing and Socket Boards. Atmel Microcontrollers. Introduction

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Figure 1. 8-Bit USB Debug Adapter

New Features and Enhancements

formerly Help Desk Authority HDAccess Administrator Guide

Temperature & Humidity SMS Alert Controller

M24LRxx/CR95HF application software installation guide

Application Note. 8-bit Microcontrollers. AVR293: USB Composite Device

Dell InTrust Preparing for Auditing Microsoft SQL Server

Capacitive Touch Technology Opens the Door to a New Generation of Automotive User Interfaces

APPLICATION NOTE. AT17284: Proximetry Cloud Based Smart Plug User Guide. SMART ARM-based Microcontrollers. Introduction. Features

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Dell One Identity Cloud Access Manager How To Deploy Cloud Access Manager in a Virtual Private Cloud

BlackBerry Web Desktop Manager. Version: 5.0 Service Pack: 4. User Guide

Dell One Identity Cloud Access Manager Installation Guide

Atmel Power Line Communications. Solutions for the Smart Grid

Atmel SMART ARM Core-based Embedded Microprocessors

Dell Unified Communications Command Suite - Diagnostics 8.0. Data Recorder User Guide

How to Deploy Models using Statistica SVB Nodes

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

APPLICATION NOTE. AT05558: Wireless Manufacturing Test Kit. Atmel ATmega256RFR2. Description. Features

Transcription:

APPLICATION NOTE Hardware and Software Getting Started ATmegaS128-STK600 Introduction This document guides you step by step to setup the hardware and software, to program and run your first code with the ATmegaS128 device. Requirements To use this Getting Started document you need to gather the following materials: - One STK600 kit (ATSTK600) - One routing board (ATSTK600-RC09) - One ATmegaS128 board with the device soldered on the board. (ATmegaS128-ZC-EK). - Atmel Studio available from : http://www.atmel.com/microsite/atmel-studio - ATmegaS128_led_chaser.zip software File Objective The aim is prepare the hardware, program and run a short demo based on the led chaser software.

1 Hardware Configuration 1.1 Step 1. Unpack the STK600 kit and install the RC064M-9 routing board as shown on the figure below. 2

1.2 Step 2. Install the ATmegaS128-ZC-EK board as shown on the figure below. 3

1.3 Step 3. Connect an USB cable between your workstation and the STK600 board and connect an 8-wires flat cable between the ports A(0-7) and LED(0-7) as shown in the figure below. Before connecting the USB cable, set the power switch to Off position. Those two cables are supplied in the STK600 kit. 4

1.4 Step 4. Verify that the jumpers and the switch are configured as shown on the figure below. The jumpers VTARGET, RESET, AREF0, AREF1 must be set and the clock switch must be set to INT position. 1.5 Step 5. Connect a 10-wires flat cable on the JTAG connector as shown on the figure below. The cable is supplied in the STK600 kit. Move the power switch to ON position. The hardware configuration is now complete. The next step will consist to run the application software. 5

2 Software Configuration This section guides you in few steps to prepare your workstation to program and run the led chaser demo. Prerequisite 1.: download Atmel Studio from the URL http://www.atmel.com/microsite/atmel-studio and install it on your workstation. Prerequisite 2.: unzip the led chaser demo file. 2.1 Step 6. Double click on the file Led_Chaser.atsln. It makes run Atmel Studio (if a window requesting an update appears, you can close it). 2.2 Step 7. Click on the programming Icon as shown on the figure below. 6

2.3 Step 8. A window should pop as shown on the figure below. Select STK600 as tools, ATmega128A as device and JTAG as Interface then click on the Apply button. Note: For the development tools, the ATmegaS128, is seen as an ATmega128A. In return, the system should display the information shown on the figure below, meaning that the hardware configuration has been recognized by the system. 7

2.4 Step 9. Click on the Read button to get the signature bytes of the ATmegaS128. The voltage supply of the ATmegaS128 device can be adjusted from your workstation. If the voltage level is close to zero, it is not possible to read the signature bytes. Therefore the voltage supply must be tuned. You should read the value 0x1E9702 meaning that the system is able to communicate with the ATmegaS128 device. If an error message comes up, check the device voltage by clicking on the Read button. If it is not possible, click on the board settings option from the left menu. Note: The ATmegaS128 is a 3.3V device while the ATmega128A is a 2.7-5.5V device. Therefore, the ATmega128A lets you the choice between 3.3V or 5V. For the ATmegaS128 please set voltage to 3.3V. 8

Adjust the voltage level by means of the cursor as shown on the figure below then click on the Write button. Verify the target voltage and the availability of the signature bytes (0x1E9702). 2.5 Step 10. Configuring the fuse bytes of the ATmegaS128. Click on the Fuses option from the left menu. Those fuse bytes enable to configure several device hardware parameters. Verify that the M103C fuse is unchecked, that the JTAGEN and SPIEN are checked, then click on the Program button. 9

2.6 Step 11.Programming the code. Click on the Memories option from the left menu then click on Erase now button to erase the device. Find the file Led_Chaser.elf on your workstation from the path \led_chaser\gccboardproject2\debug, then click on the Program button. The demo should start after few seconds. Congratulations. You have now completely set up your hardware and software environment and programmed your first AVR based demo. Enjoy by changing the source code and reprogramming the chip. 10

3 Revision History Doc Rev. Date Comments A 11/2015 Initial release. B 05/2016 Page 1 : corrected an error on the ordering number of the STK600-RC064M-9 routing card 11

SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety-Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems. Atmel products ATmegaS128-STK600 are not designed nor intended for [APPLICATION use in military or aerospace NOTE] applications or environments unless specifically designated by Atmel as military-grade. Atmel products are not designed Atmel-41075B-Aero-Hardware nor intended for use in automotive and Software applications Getting Started unless -05/2016 specifically designated by Atmel as automotive-grade. 12 Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 www.atmel.com 2014 Atmel Corporation. / Rev.:. Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM, ARM Connected logo, and others are the registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others. DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.