Linear Technology DC934A Linux Application User s Guide for use with the Altera Cyclone V SoC Development Kit

Similar documents
How to install and use the File Sharing Outlook Plugin

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Eclipse installation, configuration and operation

Cloud Tools Reference Guide. Version: GA

Lab 2-2: Exploring Threads

etoken Enterprise For: SSL SSL with etoken

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Cosmic Board for phycore AM335x System on Module and Carrier Board. Application Development User Manual

Altera SoC Embedded Design Suite User Guide

Andreas Burghart 6 October 2014 v1.0

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Authors: Simon George and Prushothaman Palanichamy

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Configure the idrac Remote Access Console

NAS 109 Using NAS with Linux

SIM900 Eclipse environment install Application Note_V1.00

Setting Up a Windows Virtual Machine for SANS FOR526

Microsoft IAS Configuration for RADIUS Authorization

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Management, Logging and Troubleshooting

Livezilla How to Install on Shared Hosting By: Jon Manning

Introduction to Eclipse

Code::Blocks Student Manual

Active Directory Integration for Greentree

Using Microsoft Visual Studio API Reference

DS-5 ARM. Using the Debugger. Version 5.7. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0446G (ID092311)

Installing ABACUS ELECTRICS USB Optical Probes under Windows 7

Introduction to Android Development

SheevaPlug Development Kit README Rev. 1.2

How to Set Up Outlook 2007 and Outlook 2010 for Hosted Microsoft Exchange if the Program is Already Installed

DRV8312-C2-KIT How to Run Guide

IIS, FTP Server and Windows

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

EVault Software. Course 361 Protecting Linux and UNIX with EVault

DS-5 ARM. Using the Debugger. Version Copyright ARM. All rights reserved. ARM DUI 0446M (ID120712)

ERIKA Enterprise pre-built Virtual Machine

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

How to test and debug an ASP.NET application

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Getting Started with Kinetis SDK (KSDK)

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

Purple Sturgeon Standard VPN Installation Manual for Windows XP

Searching for accepting?

Installation Guides - Information required for connection to the Goldfields Institute s (GIT) Wireless Network

Exchange 2013 mailbox setup guide

Yocto Project Eclipse plug-in and Developer Tools Hands-on Lab

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

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

Programming Environment Setup

NovaBACKUP xsp Version 15.0 Upgrade Guide

CPSC 226 Lab Nine Fall 2015

Comtrend 1 Port Router Installation Guide CT-5072T

Microsoft Visual Studio 2010 Instructions For C Programs

Snom 720 and Elastix Server

Automatic Setup... 1 Manual Setup... 2 Installing the Wireless Certificates... 18

Using Windows Task Scheduler instead of the Backup Express Scheduler

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

To begin, visit this URL:

Qualcomm IR-I 2 C Bridge Demo

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Microsoft Exchange 2010 and 2007

Installation and User Guide Zend Browser Toolbar

Configuring Color Access on the WorkCentre 7120 Using Microsoft Active Directory Customer Tip

Active Directory Software Deployment

POOSL IDE Installation Manual

Clearswift Information Governance

Installing the Microsoft Network Driver Interface

GENERAL FILE TRANSFER GUIDELINES

Board also Supports MicroBridge

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

MATLAB on EC2 Instructions Guide

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

PetaLinux SDK User Guide. Application Development Guide

Supplement I.B: Installing and Configuring JDK 1.6

How to Connect SSTP VPN from Windows Server 2008/Vista to Vigor2950

Reference and Troubleshooting: FTP, IIS, and Firewall Information

ENABLE LOGON/LOGOFF AUDITING

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Signiant Agent installation

Configuring a Windows 2003 Server for IAS

Connecting the DG-102S VoIP Gateway to your network

Press Continue. Salesforce App Installation Instructions Page 1 of 26

PowerPanel Business Edition Installation Guide

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

VPN: Virtual Private Network Setup Instructions

Phaser 3635MFP Software Upgrade Process

MatrixSSL Getting Started

EVault for Data Protection Manager. Course 361 Protecting Linux and UNIX with EVault

How to Use? SKALICLOUD DEMO

Migrating helpdesk to a new server

5. For Display name, Your Full Name or the name you want to appear in the from box when writing or responding to click Next

Asterisk SIP Trunk Settings - Vestalink

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Getting Started with Android Development

To add Citrix XenApp Client Setup for home PC/Office using the 32bit Windows client.

System Area Manager. Remote Management

BioWin Network Installation

Transcription:

Linear Technology DC934A Linux Application User s Guide for use with the Altera Cyclone V SoC Development Kit Revision 1.0

Table of Contents Introduction... 3 Board Connections... 3 Jumper Settings... 3 Installing Linux... 4 Install the GPIO Kernel Modules... 4 DC934A Linux Application Debugging... 5 Importing the DC934A Application... 5 Compiling DC934A Application... 6 Setting up Remote System Explorer... 7 Debugging DC934A Linux Application... 14 List of Figures Figure 1. Hardware Connections... 3 Figure 2. Linux DC934A Application Files... 6 Figure 3. Compiled Project... 7 Figure 4. Other Perspective... 8 Figure 5. RSE Perspective... 9 Figure 6. New Connection... 10 Figure 7. Remote System Type... 11 Figure 8. Connection Parameters... 12 Figure 9. Enter Password... 13 Figure 10. Board Authenticity Confirmation... 13 Figure 11. Target Files Visible... 14 Figure 12. Debugger Connection Settings... 15 Figure 13. Debugger Files Settings... 16 Figure 14. Stop At main... 17 Figure 15. Switch to Debug Perspective... 17 Figure 16. Application Downloaded... 18 Figure 17. Application Running... 19 Figure 18. Setting a DAC Value... 20 Figure 19. Reading a ADC Value... 21

Introduction The DC934A Linux application demonstrates access to the Linear Technology DC934A demonstration circuit, featuring the LTC2607 dual 16 bit DAC, from the Altera Cyclone V SoC evaluation board. The DC934A Linux application allows the user to configure the LTC2607 to output different voltage levels and to read back these levels using the on board LTC2422 dual channel ADC. Board Connections The following picture illustrates the hardware connections for the DC934A and the Altera Cyclone V Evaluation Board. The DC934A is connected to the Altera Cyclone V SoC Evaluation board using the QuikEval header, J32. Figure 1. Hardware Connections Jumper Settings Configure the jumper settings of the Altera Cyclone V SoC evaluation board as per Appendix A. Board Setup of the Altera SoC EDS User Guide.

Installing Linux Configure the Altera Cyclone V SoC evaluation board to run Linux as per Appendix B. Running Linux of the Altera SoC EDS User Guide. Install the GPIO Kernel Modules Install the Linux kernel modules necessary for controlling the GPIO. This will need to be performed after every boot. From the Linux console of the development board, run the following commands: % cd /lib/modules/3.7.0/kernel/drivers/gpio % insmod gpio-generic.ko % insmod gpio-dw.ko

DC934A Linux Application Debugging This section presents how to debug the DC934 Linux application using ARM DS 5 Altera Edition and the provided DC934A Linux application. Importing the DC934A Application 1. Start Eclipse for DS 5 2. Go to File >Import 3. In the Import window, select General > Existing Project into Workspace and press Next 4. Choose Select Archive File option and browse to the directory containing Linear DC934 Linux.tar.gz and select it. 5. Press Finish to complete importing the DC934A application. At the end of the import process Eclipse will show the project files: DC934.c DC934 application source code LTC2422.c LTC2422 ADC related source code LTC2422.h LTC2422 ADC header file LTC2607.c LTC2607 DAC related source code LTC2607.h LTC2607 DAC header file UserInterface.c Helper code for the user interface UserInterface.h Header file for the user interface Makefile Makefile used to compile the DC934 application

Figure 2. Linux DC934 Application Files Compiling DC934A Application The DC934A application is compiled in Eclipse by going to Project > Build Project. This will compile the project using the Linaro gcc suite for Linux, which is part of the SoC EDS. After a successful compilation, the following files will be created: DC934.o object file LTC2422.o object file LTC2607.o object file UserInterface.o object file dc934 executable file dc934.map linker output map file

Figure 3. Compiled Project Setting up Remote System Explorer The ARM DS 5 AE can run and debug programs directly on the target with the help of the RSE (Remote System Explorer). Before this feature can be used, the RSE needs to be configured to connect to the target board running Linux. Before doing the steps presented in this section, the board must be connected to the network and have an assigned IP address. Also there has to be a valid username with a password on the Linux board. This can be achieved by assigning a password to the root account, which does not have a password set up by default.

1. Within the desired Eclipse workspace, go to Window > Open Perspective > Other Figure 4. Other Perspective

2. In the Open Perspective window, select the Remote System Explorer and click OK. Figure 5. RSE Perspective

3. Within the RSE view, right click Local and select New > Connection Figure 6. New Connection 4. Select Remote System Type to be SSH Only and click Next

Figure 7. Remote System Type 5. Enter the IP address of the board in the Host Name field, and also give the connection a name and a description. Click the Finish button to have the connection created.

Figure 8. Connection Parameters 6. Click the DevKitLinux > Sftp Files > Root. This will open up a window to enter the username and password. Use root for username and the password you have set up for it.

Figure 9. Enter Password 7. Eclipse will ask for confirmation of authenticity of the board. Press Yes. Figure 10. Board Authenticity Confirmation 8. RSE will then show the files currently on the DevKit board on the left panel.

Figure 11. Target Files Visible Debugging DC934A Linux Application At this stage we have a compiled DC934A Linux application and a properly configured Remote System Explorer. This section will show how to create a Debugger Configuration and use it to run and debug the application. 1. Go to Run >Debug Configurations 2. Right click the DS 5 Debugger and click New 3. Name the new Debugger Configuration DevKitLinux DC934 4. In the Connection Panel Select the target to be Altera > Cyclone 5 > Linux Application Debug > Download and Debug Application. Select the newly created RSE connection and keep the default values.

Figure 12. Debugger Connection Settings 5. Go to Files tab, and Select the Application on host to download to be the dc934 executable file. Use the Workspace button to browse for the application. Select the target download directory Select the target working directory

Figure 13. Debugger Files Settings 6. On the Debugger tab, make sure the Debug from symbol is selected and the symbol name is main.

Figure 14. Stop At main 7. Click the Debug button. Eclipse will ask to switch to Debug perspective. Press Yes. Figure 15. Switch to Debug Perspective 8. Eclipse will download the application to the board and stop at main, as instructed.

Figure 16. Application Downloaded 9. At this stage all the usual debugging features of DS 5 can be used: breakpoints, view variables, registers, tracing, etc. Click the Continue green button or press F8 to run the application. The DC934A application s menu will be printed on the App Console in the lower right portion of the screen.

Figure 17. Application Running 10. To set a DAC value, activate the App Console by clicking on it and enter a 3 for the Write and update DAC command. Then enter a 1 to specify a voltage level and then 2.5 for 2.5V.

Figure 18. Setting a DAC Value 11. The, output voltage level of the DAC can be read using the ADC. Enter a 6 for the Read ADC command and the application will read and display the voltage levels for both channels. You may have to scroll back in the App Console window to see the output values.

Figure 19. Reading a ADC Value