DFU loader for XMOS USB AUDIO devices

Similar documents
Digi Connect Wan 3G Application Guide Update the firmware, backup and restore the configuration of a Digi Connect Wan 3G using a USB flash drive.

Converting SSG 300M-series and SSG 500M-series Security Devices to J-series Services Routers with a USB Storage Device

Application Note: AN00141 xcore-xa - Application Development

Active Directory 2008 Operations

Test Center Enterprise. ios Device Onboarding Guide

HP Thin Client Imaging Tool

SSD Guru. Installation and User Guide. Software Version 1.4

Intel Entry Storage System SS4000-E

SafeNet Authentication Manager Express. Upgrade Instructions All versions

Instrument Software Update Instructions

Configuring ThinkServer RAID 100 on the Lenovo TS130

RTX Runtime with Service Pack 2 WES7 DEPLOYMENT GUIDE

SETTING UP AND RUNNING A WEB SITE ON YOUR LENOVO STORAGE DEVICE WORKING WITH WEB SERVER TOOLS

IPMI Firmware Update (AMI) In WEB-GUI/DOS/WIN/Linux

LED TV Firmware Upgrade v.1 - PC USERS

Centurion PLUS CPC4 Download Guide

Partition Alignment of Intel SSDs for Achieving Maximum Performance and Endurance Technical Brief February 2014

Shearwater Research Dive Computer Software Manual

Configuring ThinkServer RAID 100 on the TS140 and TS440

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

Instrument Software Update Instructions. Keysight X-Series Signal Analyzers (PXA/MXA/EXA/CXA) Upgrading an older version to A.12.

DUAL MONITOR DRIVER AND VBIOS UPDATE

how to upgrade your IsatPhone

Application Note: AN00103 Enabling DSD256 in the USB Audio 2.0 Device Reference Design Software

Acronis Backup & Recovery 11.5 Quick Start Guide

The care and feeding of Pythons at the Redmond Zoo. (Using Micro Python and pyboard with Windows)

Any system currently running the Schneider Electric MBX Driver Suite or any activated Cyberlogic software suite.

Honeywell Internet Connection Module

2.6.1 Creating an Acronis account Subscription to Acronis Cloud Creating bootable rescue media... 12

Software and driver installation

Performing an Air Upgrade of the DECT Handset

Craig Pelkie Bits & Bytes Programming, Inc. craig@web400.com

Dual-boot Windows 10 alongside Windows 8

Type Message Description Probable Cause Suggested Action. Fan in the system is not functioning or room temperature

Symantec AntiVirus Corporate Edition Patch Update

1 Intel Smart Connect Technology Installation Guide:

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

HP Softpaq Download Manager and HP System Software Manager

Intel System Event Log (SEL) Viewer Utility

Configuring Music on Hold on the NetVanta 7000 Series

Elo Touch Solutions Elo Tablet Software Update

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

Microsoft Windows 7 Ultimate 64 Bit SP1 Operating System Recovery Media for 300 GB Solid State Drives Instructions

Recovery BIOS Update Instructions for Intel Desktop Boards

Network Interface Card Firmware Upgrades for UXIM and UXTM. Upgrade Procedures Guide

Intel System Event Log (SEL) Viewer Utility. User Guide SELViewer Version 10.0 /11.0 December 2012 Document number: G

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

MTS Remote Drive Service. Quick Start Guide

Symantec NetBackup Backup, Archive, and Restore Getting Started Guide. Release 7.5

Exclaimer Alias Manager for Exchange Deployment Guide - Exclaimer Alias Manager for Exchange Outlook Add-In

Nexio Backup and Recovery

Application Development Kit for Android Installation Guide

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

WinMagic Encryption Software Installation and Configuration

How to Make a USB Bootable

UEFI on Dell BizClient Platforms

Acronis Backup & Recovery 11

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

DESIGNING SECURE USB-BASED DONGLES

System Image Recovery* Training Foils

Polycom HDX Configuration Guide

WINDOWS SERVER 2008 OFFLINE SYSTEM RECOVERY USING WINDOWS SERVER BACKUP WITH NETWORKER

c. Securely insert the Ethernet cable from your cable or DSL modem into the Internet port (B) on the WGT634U. Broadband modem

Operating System Installation Guide

Intel Data Migration Software

Intel System Event Log (SEL) Viewer Utility

how to synchronise your contacts

AlienVault. Unified Security Management x Offline Update and Software Restoration Procedures

3.5 EXTERNAL NETWORK HDD. User s Manual

DOCUMENTATION MICROSOFT WINDOWS SYSTEM BACKUP AND RESTORE OPERATIONS

INSTALLING AND USING ENTEL PROGRAMMER IN WINDOWS 7 Technical Support Bulletin

Sophos SafeGuard Disk Encryption for Mac Startup guide

Installation Guide Wireless 4-Port USB Sharing Station. GUWIP204 Part No. M1172-a

Windows 7 hard disk recovery Quick implementation overview

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

File Transfers. Contents

What s New in Propalms VPN 3.5?

FOG Guide. IPBRICK International. July 17, 2013

User s Manual. Copyright 2010 Vantec Thermal Technologies. All Rights Reserved.

Dell DR4000 Disk Backup System. Introduction to the Dell DR4000 Restore Manager A primer for creating and using a Restore Manager USB flash drive

Automating client deployment

USER GUIDE. ZigBit USB Stick User Guide. Introduction

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

TFTP Firmware upgrade

How to Configure Intel X520 Ethernet Server Adapter Based Virtual Functions on Citrix* XenServer 6.0*

Guide to Installing BBL Crystal MIND on Windows 7

Update Firmware from GUI

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

XenClient Enterprise Upgrade Guide

EHCI Removal from 6 th Generation Intel Core Processor Family Platform Controller Hub (PCH)

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

Check Point FDE integration with Digipass Key devices

Windows 8 Backup, Restore & Recovery By John Allen

Use QNAP NAS for Backup

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

Intel NetStructure Host Media Processing Release 2.0 for Windows

Verizon Wireless 4G LTE USB Modem 551L Software Upgrade

DeviceAnywhere Enterprise. ios Device Onboarding Guide

Getting Started with VMware Fusion

Universal Management Service 2015

Transcription:

DFU loader for XMOS USB AUDIO devices Document Number: Publication Date: 2014/6/12 XMOS 2014, All Rights Reserved.

DFU loader for XMOS USB AUDIO devices 2/10 Table of Contents 1 Overview 3 2 Creating factory and upgrade images with XFLASH 4 2.1 Installing the factory image to the device........................ 4 2.2 Creating the upgrade image................................ 5 2.3 Related documents..................................... 5 3 Using the DFU loader - Windows (via the Thesycon driver) 6 3.1 Set up the image loader.................................. 6 3.2 Download new firmware.................................. 6 3.3 Uploading existing firmware from the device...................... 7 3.4 Reverting firmware to factory image........................... 7 3.5 Related documents..................................... 7 4 Using the DFU loader - OS X (via the XMOS DFU loader) 8 4.1 Set up the image loader.................................. 8 4.2 Download new firmware.................................. 8 4.3 Uploading existing firmware from the device...................... 8 4.4 Reverting firmware to factory image........................... 9 5 Building the XMOS DFU loader - OS X 10

1 Overview The DFU loader is a flash device firmware upgrade mechanism. To work correctly your development board must contain the latest DFU enabled firmware. The firmware upgrade for XMOS USB devices implementation uses the USB standard DFU device class mechanism and is based on the following specification: http://www.usb.org/developers/devclass_docs/dfu_1.1.pdf Supported functionality: Download of new firmware to device Upload of existing firmware from device Revert device back to factory image Automatic reboot of device on firmware upgrade You must use XMOS Development Tools version 10.4.1 (or later). The DFU device on Windows requires the Theyscon USB Audio 2.0 Windows driver version 1.13.3 or later.

2 Creating factory and upgrade images with XFLASH IN THIS CHAPTER Installing the factory image to the device Creating the upgrade image Related documents 2.1 Installing the factory image to the device The DFU device interface is enabled by default in the XMOS USB Audio framework (see devicedefines.h), and explicitly enabled in each reference design by the following line included in the customdefines.h file of each application: # define DFU (1) Use the XMOS Development Tools to run the command: xflash --boot-partition-size 0x30000 --factory usb_audio.xe Where the size passed using the --boot-partition-size n argument specifies in bytes the minimum size required to store the boot loader, factory image and any upgrade images. The following can be used as a guide to help calculate the required boot partition size for a design: boot partition size = loader size + maximum size of factory image + maximum size of upgrade images + padding to sector boundaries Where: loader size = 0x1000 bytes, or 0x4000 bytes if secure boot functionality is used (for tools version 13.1.0 and older) maximum size of factory image = number of xcore tiles * xcore SRAM size maximum size of upgrade images = (number of xcore tiles * xcore SRAM size) * number of images to be held in flash concurrently The above example sets the boot partition to a size appropriate for designs based on a single xcore tile, where a single upgrade image is required in flash at any one time.

DFU loader for XMOS USB AUDIO devices 5/10 This programs the factory default firmware image into the flash device. The device will now support the DFU mechanism, and can use it to safely receive firmware updates, as well as revert to the factory firmware image when required, such as in the event of a failed upgrade attempt. 2.2 Creating the upgrade image To use the firmware upgrade mechanism you need to build a firmware upgrade image: 1. Edit the customdefines.h file of the application for the hardware in use, and change the Device Version Number by defining BCD_DEVICE. 2. Rebuild the application. To generate the firmware upgrade image run the following command: xflash --factory-version 13 --upgrade 1 usb_audio.xe -o new_firmware.bin Where the tools version passed using the --factory-version version argument specifies the version of the tools used to create the factory image. This should be passed as 12 for images created using tools versions 10, 11 and 12. The --upgrade id xe-file [size] argument specifies xe-file as an upgrade image with version id. Each version number must be a unique number greater than 0. You should now have the file new_firmware.bin which contains the firmware with the newly specified Device Version Number. 2.3 Related documents For further details of the DFU features included in the XMOS USB Audio framework and their configuration please see the Device Firmware Upgrade (DFU) (XM- 005512-PC) and the Configuration Defines (XM-005512-PC) sections of the USB Audio Design Guide. For further details on the use of XFLASH to create factory and upgrade firmware images please see the XFLASH Command-Line Manual section of the xtimecomposer User Guide 1. 1 https://www.xmos.com/published/xtimecomposer-user-guide

3 Using the DFU loader - Windows (via the Thesycon driver) IN THIS CHAPTER Set up the image loader Download new firmware Uploading existing firmware from the device Reverting firmware to factory image Related documents Thesycon provide both GUI and CLI DFU tools, TUSBAudioDfu.exe and dfucons.exe respectively. The use of the GUI tool is not covered by this document. The correct installation of the Thesycon driver and DFU tools exceeds the scope of this document. 3.1 Set up the image loader Run the DFU console tool (dfucons.exe) from the Thesycon install folder, in a Command Prompt by navigating to: C:\Program Files\Thesycon\TUSBAudio_Driver\ To check the device has been detected, run the following command in the DFU console: dfucons info The console shows the DFU devices that have been detected. 3.2 Download new firmware To program the new firmware run the command: dfucons download new_firmware.bin Note that once this is done the device restarts. The original factory default application is still present but the device is now running the upgraded application firmware. You can check the device has been updated by running the command: dfucons info This will display the device revision.

DFU loader for XMOS USB AUDIO devices 7/10 3.3 Uploading existing firmware from the device You can retrieve a firmware image from the device, providing an upgrade image is present. Run the command: dfucons upload currentfirmware.bin The file currentfirmware.bin contains the latest upgrade image. This file is an exact copy of the data from the flash and can be downloaded to the device again to test. 3.4 Reverting firmware to factory image To revert the device back to its factory (i.e XFLASH) installed state from the new firmware, run the command: dfucons revertfactory The device will now be running, and only contain the factory firmware, which can be seen by checking the device version once more. 3.5 Related documents For further details on the use of the Thesycon DFU tools please see Thesycon USB Audio 2.0 Driver for Windows User Manual 2. 2 https://www.xmos.com/published/usb-audio-class-20-evaluation-driver-windows

4 Using the DFU loader - OS X (via the XMOS DFU loader) IN THIS CHAPTER Set up the image loader Download new firmware Uploading existing firmware from the device Reverting firmware to factory image The XMOS DFU loader is provided as source as part of the XMOS USB Audio software framework, see 5. 4.1 Set up the image loader 1. Open a terminal 2. Change directory to where the loader has been built 3. Run the command: source setup.sh 4.2 Download new firmware To program the new firmware run the command:./xmosdfu --download new_firmware.bin Note that once this is done the device restarts. The original factory default application is still present but the device is now running the upgraded application firmware. 4.3 Uploading existing firmware from the device You can retrieve a firmware image from the device, providing an upgrade image is present. Run the command:./xmosdfu --upload currentfirmware.bin The file currentfirmware.bin contains the latest upgrade image. This file is an exact copy of the data from the flash and can be downloaded to the device again to test.

DFU loader for XMOS USB AUDIO devices 9/10 4.4 Reverting firmware to factory image To revert the device back to its factory (i.e XFLASH) installed state from the new firmware, run the command:./xmosdfu --revertfactory The device will now be running, and only contain the factory firmware.

DFU loader for XMOS USB AUDIO devices 10/10 5 Building the XMOS DFU loader - OS X The XMOS DFU loader is provided as source as part of the USB Audio framework, located in sc_usb_audio/module_dfu/host/xmos_dfu_osx. The loader is compiled using libusb, the code for the loader is contained in the file xmosdfu.cpp To build the loader a Makefile is provided, which can be run as follows: make -f Makefile.OSX all This Makefile contains the following: all : g++ -g -o xmosdfu xmosdfu. cpp -I. - IOSX libusb -1.0.0. dylib -m32 Copyright 2014, All Rights Reserved. Xmos Ltd. is the owner or licensee of this design, code, or Information (collectively, the Information ) and is providing it to you AS IS with no warranty of any kind, express or implied and shall have no liability in relation to its use. Xmos Ltd. makes no representation that the Information, or any particular implementation thereof, is or will be free from any claims of infringement and again, shall have no liability in relation to any such claims. XMOS and the XMOS logo are registered trademarks of Xmos Ltd. in the United Kingdom and other countries, and may not be used without written permission. All other trademarks are property of their respective owners. Where those designations appear in this book, and XMOS was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.