Home
deRFusb Firmware Update User Manual
Contents
1. drv Please select and enter this directory Install From Disk g X Insert the manufacturer s installation disk and then i make zure that the corect drive is selected below Cancel Copy manufacturer s files from hi Browse Figure 7 Choose location Browse The file atm6124 cdc should pop up select it and press the Open button I x Look in B dry E F HF File name atm6124_cde Files of type Setup Information inf Cancel Figure 8 Locate File atm6124 cdc inf Ze www dresden elektronik de Page 9 of 26 User Manual Version 1 3 Bee ie deRFusb Firmware Update By pressing OK now you will return again to the previous dialog x I Insert the manufacturer s installation disk and then OK i make zure that the corect drive is selected below Cancel Copy manufacturer s files from C Program Files T MEL Corporationsam ba_ 2 1 Figure 9 Install from disk Continue with OK Now select the AT91 USB to Serial Converter and press Next The driver will be installed Found New Hardware Wizard Select the device driver you want to install for this hardware S a Select the manufacturer and model of pour hardware device and then click Next If you have a disk that contains the driwer you want to install click Hawe Disk IY Show compatible hardware ATS USB to Serial Converter AN This drive
2. Thus you are able to return to the SAM BA interface of the SAM3 microcontroller This can be achieved by changing the GPNVM1 bit The erase procedure described below will always lead to a loss of important manufacture supplied data Attention Without this software option you have to use this procedure to update the firmware of the deRFusb sticks All the manufacture supplied data will get lost To erase any firmware from the deRFusb stick you need to connect the stick to an USB port While being powered connect the two metal contacts on the bottom side of the printed circuit board see figure below for at least 1 second Attention During the procedure all date stored in the flash of the USB stick including MAC address are deleted For data recovery please refer to section 6 Figure 1 Bottom side deRFusb www dresden elektronik de Page 5 of 26 User Manual Version 1 3 AEN deRFusb Firmware Update e Now the SAM BA interface is activated To start it unplug the USB stick from the USB port and plug it in again Your PC will prompt for a driver on Windows XP or will fail to find a suit able driver for Windows Vista and 7 editions Depending on your operating system follow the steps described in section 3 2 Windows XP or 3 3 Windows Vista and 7 editions Note If your USB stick comes with a clear sighted enclosure remove it carefully with an appropriate tool e g a small screwdriver see Figure 2 Figure 2 Removal o
3. amp x E high high low low tmp pBuffer size size size high size lt lt 8 low return size The above described information and the corresponding source code can also be found in the source code of deMAC BsP Generic nv basic BSP Generic nv basic h www dresden elektronik de Page 23 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e For creating the structure also called basic set it is recommend using the following struc ture typedef struct uint16 t magic uint8 t id uint8 t length uint8 t mac 8 uint8 t reserved 18 uint16 t crc attribute packed basic set t For recovering the mac address the user has to create a firmware allowing a mac address input via console Alternatively the string input can be omitted Therefore the address has to be known at compile time and thus be specified in the source code Though important is that upon updating the firmware in any way the memory area that holds the mac address structure must not be changed or erased Erasing the memory like ex plained in chapter 3 1 is no option lt is also possible to incorporate the creation of the MAC structure into the user specific firm ware In this way the persistence of the MAC can be easily achieved even if an update pro cedure with SAM BA is executed www dresden elektronik de Page 24 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e The f
4. fee SAM BA 2 11 Select the connection jlink ARMO Select your board deRFusbX3E00 at9lsan JLink speed id default Customize lowlevel Exit Figure 28 Choose board and connection Thereafter the connection can be established using the Connect button The transfer of the firmware is analog to chapter 4 2 www dresden elektronik de Page 21 of 26 User Manual Version 1 3 AEN deRFusb Firmware Update e 6 Restoring the NV memory If the flash memory of the USB dongle is erased the MAC address which is stored there will be lost This address is required for the BSP examples as well as for the identification of the RF node If the user wants to use BSP examples he or she has to restore this address in case it has been erased The MAC address is printed on the label which is adhesive to the RF shielding of the USB dongle E IE deRFusb 23E001 JTAG SN 32310 0064 7125 IE 00 21 2 FF FF 00 06 28 mr Figure 29 MAC address marked red The memory area for storing the MAC address is organized as follows Byte si acacia iat Sn SRG AR ne si ft 2 8S F amp 7 nnee eels meinen manana x NV START Start of Non Volatile Memory eee ieee ieee abies sl aa aoa cn nn E Nene a ll a ee nes ke PE ON i ee a ea reine rt i ae ea
5. adapters a 5 Other devices hat Ry Unknown de i IB Ports COM amp T Update Driver Software gt T Processors Disable gt Sound video an Uninstall gt 4 Storage controll System devices Scan for hardware changes 7 Universal Serial f Properties Figure 15 Update Driver Software Now choose Browse my computer for driver software on the next dialog eS Update Driver Software Unknown Device How do you want to search for driver software Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device unless you ve disabled this feature in your device installation settings Browse m Y computer Tor ariver SOTTWware Locate and install driver software manually Figure 16 Browse computer for driver software www dresden elektronik de Page 13 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update Now click Browse and locate the directory of your SAM BA installation it can be usually found under Program Files This installation directory contains a sub directory drv 0 Update Driver Software Unknown Device Browse for driver software on your computer Search for driver software in this location C Users user Documents V Include subfolders gt Let me pick from a list of device drivers on my computer This list will show installed driver software comp
6. install and press Next Found New Hardware Wizard Please choose your search and installation options 5 Search for the best driver in these locations Use the check bores below to limit or expand the default search which includes local paths and removable media The best driwer found will be installed i Search removable media floppy CD ROM I Include this location in the search C Documents and Settings Owner Desktop 20110 Browse Choose this option to select the device driver from a list Windows does not guarantee that the diver you choose will be the best match for Your hardware Back Cancel Figure 5 Choose driver manually On the next dialog press the Have Disk button Found New Hardware Wizard Select the device driver you want to install for this hardware a Select the manufacturer and model of your hardware device and then click Next If you have a disk that contains the driver you want to install click Have Disk T91 USB to Serial Converter A This driver is not digitally signed ks i Ni s i is i i oF MURO Figure 6 Select Have Disk www dresden elektronik de Page 8 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update Now click on Browse and locate the directory of your SAM BA installation it can be usu ally found under Program Files This installation directory contains a subdirectory
7. Rage ee ee ee eee MAGIC ID LEN MAC D F E x MAC RESERVED pj ed RESERVED ee eee N RESERVED CRC leanne anni oan ee ee in NV_END End of Non Volatile Memory Figure 30 Structure holding the MAC address www dresden elektronik de Page 22 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e For memory saving reasons the structure is located in the upper memory stack of the control lers flash memory The USB dongle uses a MCU which comes with flash capacity of 256 kB organized in 1024 pages The start address of the program flash is 0x400000 while the end address is Ox43FFFF Figure 30 shows the end address as NV_END The absolute address value is Ox43FFFF and is the last byte of the CRC sum field The structure covers 32 bytes and is distributed on the addresses Ox43FFEO0 Ox43FFFF The values for MAGIC ID and LEN are MAGIC OxDE90 ID 0x01 LEN 8 The CRC is calculated over all data bytes In this case these are the fields MAGIC ID LEN and MAC 12 bytes For calculation and checking it is recommend using the following func tion static uint16 t calc_crc uint8_t pBuffer uint8 t size uint8_t tmp uint8_t high low high OxFF low OXFF while size gt 6 tmp pBuffer high high tmp low high tmp high high gt gt 4 amp Ox F high gt gt 3 low tmp amp OX1F low low tmp gt gt 1 amp Ox F tmp tmp
8. The next time you connect the USB stick to a USB port your just uploaded firmware will be executed www dresden elektronik de Page 19 of 26 User Manual Version 1 3 AEN deRFusb Firmware Update e 5 Firmware update via JTAG As an alternative the update procedure may be done via the JTAG interface if assembled of the USB stick Moreover a SAM ICE adapter is required to connect the USB stick to the JTAG Interface The following image shows how the assembly is done SAM ICE to PC Ti Bine x SF Sn a iy EFP y j ne 5 ie j A A pe A tty tt Gls 3 L deRFusb to PC SAM ICE Adapter Figure 26 USB dongle with attached SAM ICE and SAM ICE Adapter To update the dongle with the attached JTAG interface the required software has to be in Stalled like explained in chapter 2 The figure below shows the hardware assembly schematically Atmel SAM ICE PC USB Host JTAG 20 pin SAM ICE Adapter JTAG 10 pin deRFusb Figure 27 Hardware setup schematic This option can currently only be used if no Firmware is installed on the USB Stick e g if an ERASE has been executed before see 3 1 Update in preparation www dresden elektronik de Page 20 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e Start SAM BA v2 11 to execute the update procedure Select jlink ARMO under Select the connection and choose an appropriate board
9. ame Receive File Name Address 0x400000 Size For Recerve File oxi000 byte s Compare sent file with memory Boot from Flash GPNVM1 loading history file 0 events added SAM BA console display active Tcl8 5 9 Tk8 5 9 sam ba_2 11 1 sam ba_2 11 1 Figure 24 SAM BA GUI 4 2 Transferring firmware To transfer a new firmware to the USB stick you have to to select the binary at first This file must be in binary format No other formats will be accepted To select a binary new firmware file press the button marked with 1 A file dialog will pop up and lets you locate and select the file to upload After you selected the file press Send File 2 Your file will be transferred At the end SAM BA will ask you if you want to lock the flash This is not necessary you can omit it by pressing No Figure 25 Lock regions www dresden elektronik de Page 18 of 26 User Manual Version 1 3 deRFusb Firmware Update e 2012 01 06 One final step needs to be executed Your deRFusb stick is still in SAM BA mode and you need to change the Boot Mode to let the USB stick start your firmware This can be achieved by executing a script from the Scripts drop down box To select the correct script open the drop down box 3 and select the entry Boot from Flash GPNVM1 Execute the script by pressing Execute 3 Now the update is finished Close SAM BA and unplug the USB stick
10. atible with the device and all driver software in the same category as the device Figure 17 Browse Select this directory and press OK This will return to the previous dialog Browse For Folder Ex Select the folder that contains drivers for your hardware 4 Je Program Files x86 gt Je Atmel a Je ATMEL Corporation d Je sam ba_211 gt di applets gt di doc an gt di examples gt tel lib Folder Figure 18 Browse For Folder drv www dresden elektronik de Page 14 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update In the following dialog press Next to start the installation Update Driver Software Unknown Device Browse for driver software on your computer Search for driver software in this location C Program Files 86 ATMEL Corporation sam ba_ 11 drv Include subfolders Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Figure 19 Continue with Next lf a Windows Security message pops up choose Install this driver software anyway bal Windows Security 6 Windows can t verify the publisher of this driver software gt Don t install this driver software You should check your manufacturer s website for updated driver software for your device Install this driver software anyway Only ins
11. dresden elektronik e User Manual Firmware Update deRFusb 23E00 deRFusb 23E00 JTAG deRFusb 23E06 deRFusb 23E06 JTAG deRFusb 13E00 deRFusb 13E00 JTAG deRFusb 13E06 deRFusb 13E06 JTAG Document Version V01 01 2011 07 01 User Manual Version 1 3 Ae deRFusb Firmware Update Table of contents 1 Required Software cccccccccsccccsececceececeeeecceeesceecescseesceneeccesesoseeecoeeesceseecsecesoeeeeceeessoss 4 2 SOtware INS HOM emt eneen A E E E beenen E 4 3 Preparations for update via USB aaan nennen en ennerenen venen ensnvenenvenenenenvenenennn 5 Sl BIASe USB SUCK meenen eee eee 5 3 2 Driver Installation in Windows XP unvunenenrenerenrenenenrenenenrenenenernenenennenenens 7 3 3 Driver Installation in Windows Vista and 7 nnn eneneneenennenenenen venen ennerens 12 4 Firmware update via USB all operating systems nn uannennenen nennen venen eenennnn 17 4 1 Connecting SAM BA to the USB stick aaan eneen eneen eneenenvenenvens 17 4 2 Transterring firmware nun onensennsennreens ens ennsennrrnnrenneenneennnenns ennn enneenneenenn 18 5 Firmware update via JTAG annae oeen eneen enenenvenenennrrenenvenenenervenenvnnenenenvenendenenens 20 6 Restoring the NV memory ccccceccsecceeeceeeceeeceeeeeeeseeeeeeeseeeseeeseeeeeueeeeesseeseeeseeeseeeseeees 22 www dresden elektronik de Page 2 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e Document histor
12. eir products are trademarks or registered trademarks of their respective hold ers and should be noted as such Disclaimer This note is provided as is and is subject to change without notice Except to the extent pro hibited by law dresden elektronik ingenieurtechnik gmbh makes no express or implied war ranty of any kind with regard to this guide and specifically disclaims the implied warranties and conditions of merchantability and fitness for a particular purpose dresden elektronik in genieurtechnik gmbh shall not be liable for any errors or incidental or consequential damage in connection with the furnishing performance or use of this guide No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or any means electronic or mechanical including photocopying and recording for any purpose other than the purchaser s personal use without the written permission of dres den elektronik ingenieurtechnik gmbh Copyright 2012 dresden elektronik ingenieurtechnik gmbh All rights reserved www dresden elektronik de Page 26 of 26
13. f the plastic enclosure www dresden elektronik de Page 6 of 26 User Manual Version 1 3 AEN deRFusb Firmware Update 3 2 Driver Installation in Windows XP The first time you plug the USB stick in the Found New Hardware Wizard will pop up Please select No not this time and press Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with pour permission Head our privacy policy Can Windows connect to Windows Update to zearch for software Yes this time only Yes now and every time connect a device Click Next to continue 4 Back Cancel Figure 3 Found New Hardware Wizard On the next screen choose Install from a list or specific location Advanced and press Next Found New Hardware Wizard This wizard helps you install software for AT91 USB to Seral Converter If your hardware came with an installation CD a or floppy disk insert it now What do vou want the wizard bo do Install the software automatically Recommended Click Hest to continue lt Back Cancel Figure 4 Install from a specific location www dresden elektronik de Page 7 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update Select Don t search will choose the driver to
14. ollowing approach is recommended to recover the MAC address including the structure explained above MAC address recovery Start initialize basic_set assign MAGIC ID LEN and MAC calculate CRC assign CRC in basic set initialize flash device FLASHD_Initialize write structure to flash FLASHD_Write End 9 Figure 31 Approach for MAC address recovery Please refer to the AT91 Lib code too The functions mentioned above FLASHD Write and FLASHD Initialize enable in system programming of the flash memory www dresden elektronik de Page 25 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e dresden elektronik ingenieurtechnik gmbh Enno Heidebroek StraBe 12 01237 Dresden GERMANY Tel 49 351 31 85 00 Fax 49 351 318 50 10 E Mail wireless dresden elektronik de General manager Dipl Ing L Pietschmann Commercial Registry HRB 749 Dresden Municipal Court Tax number 201 107 00726 Sales tax identification number DE 140125678 Trademarks and acknowledgements e ZigBee is a registered trademark of the ZigBee Alliance e 802 154 is a trademark of the Institute of Electrical and Electronics Engineers IEEE e Atmel and Atmel SAM BA are registered trademarks or trademarks of Atmel Corpora tion or its subsidiaries in the US and or other countries These trademarks are registered by their respective owners in certain countries only Other brands and th
15. on your installation SAM BA scans your COM ports and presents a selection dialog for the connection and the platform Select the COM port for the deRFusb stick to update You will find it in the Device Manager as described in the previous sections As a second step select the platform which will be ei ther deRFusbX3E00 or deRFusbX3E06 Note lf you cannot select these platforms you should reinstall the deRFsamba patch following the instructions in section 2 closely Press Connect with connection and platform selected ie SAM BA 2 11 Sox Select the connection USBserial C OMi55 hf Select your board deRFusbAsE00 atOlsan JLink speed default Customize lowlevel Connect Exit Figure 23 Connect to the deRFusb st SAM BA now tries to connect to the USB stick This can take some seconds Finally a dialog window opens giving access to all the memories of the microcontroller www dresden elektronik de Page 17 of 26 User Manual Version 1 3 AEN deRFusb Firmware Update File SeriptFile Link Help m at lsam3s4 Memory Display Start Address 0x20000000 ers Display format Applet traces on DBGU EE en he Dh infos A Size in byte s 02100 C ascii C 8 bit C 16 bit 32 bit a pely Ox20000000 Ox00000001 Ox00000000 Ox00800417 Ox0080043F Ox20000010 OxO008003FF Ox0080040B OxO00800B7F OxO00800CiD 4 Th Flash MandFlash SRAM Download Upload File Send File M
16. r is not digitally signed Have Disk Tell me why driver signing is important Back Cancel Figure 10 Continue with Next gt If a message box Driver is not digitally signed appears press Continue anyway The wiz ard will finish the driver installation Press Finish to close the wizard www dresden elektronik de Page 10 of 26 User Manual Version 1 3 Sie ia deRFusb Firmware Update Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F AT91 USB to Serial Converter Click Finish to close the wizard Lancel Figure 11 Finish the installation After successful driver installation you will find the device under Ports COM amp LPT in the device manager lol File Action wiew Help e m8 mA 4 Batteries m Computer oe Disk drives H Display adapters Bld DYDICD ROM drives eS Floppy disk controllers Ed Flappy disk drives EE Human Interface Devices H E IDE ATALATAPI controllers Epes Keyboards fT Mice and other pointing devices ee Network adapters Elf Ports COM amp LP ATS1 USB to Serial Converter COM en a Communications Pork COML en a Communications Pork COM ew Printer Port LPT1 ae Processors SCSI and RAID controllers c Sound video and game controllers H System devices F Universal Serial Bus controllers Figure 12 Successfully installed device www d
17. resden elektronik de Page 11 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update 3 3 Driver Installation in Windows Vista and 7 If you plug in the USB stick for the first time Windows will try to install any driver This will usually fail and produces the following message IL Device driver software was not successfully installed gt metal Click here for details Figure 13 Driver not found in Win7 or Vista To install the correct driver please open the Device Manager which can be found under Control Panel gt System gt Device Manager Here you will find an Unknown device in Oth er devices Ey Device Manager Amm File Action View Help m H er a a WIN TVMTPE7SK6R Batteries Es Computer ca Disk drives Be Display adapters 2 DVD CD ROM drives crd Floppy disk drives iy Floppy drive controllers U Human Interface Devices cg IDE ATA ATAPI controllers a Jungo gt Keyboards P Mice and other pointing devices Kes Monitors EN Processors Sound video and game controllers lt gt Storage controllers Ea System devices Universal Serial Bus controllers Figure 14 Driver not found in Device Manager www dresden elektronik de Page 12 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update Select the Unknown device open the context menu with a right mouse click Select Up date Driver Software in the menu gt KY Network
18. tall driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information v See details Figure 20 Choose Install this driver software anyway www dresden elektronik de Page 15 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e You will see the installation progress Close the wizard after the installation is finished by pressing Close Update Driver Software AT91 USB to Serial Converter COM3 Windows has successfully updated your driver software Windows has finished installing the driver software for this device AT91 USB to Serial Converter Figure 21 Successful installation of the driver After a successful driver installation you will find an AT91 USB to Serial Converter in the Device Manager under the ports COM amp LPT a Y Ports COM amp LPT si AT91 USB to Serial Converter COMB JS Communications Port COMI NM Communications Port COM Figure 22 Device displayed in the device manager www dresden elektronik de Page 16 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e 4 Firmware update via USB all operating systems The steps to update the firmware are equal for all Windows XP Vista and 7 Editions 4 1 Connecting SAM BA to the USB stick Start your SAM BA v2 11 The short cut may be found either on the desktop or in the start menu depending
19. y me feson eme oo Author Check Release S www dresden elektronik de Page 3 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e Overview This Manual shows a way how to change the firmware on SAM3S based USB sticks from dresden elektronik The update will be executed with the help of Atmel s SAM BA SAM Boot Assistant program 1 Required Software deRFsambaPatch ZIP file http www dresden elektronik de For update via USB SAM BA 2 11 for Windows XP Vista Seven editions http www atmel com dyn products tools card asp tool id 3883 Additionally for update via JT AG SEGGER J Link Software If not already installed http www segger com cms jlink software html 2 Software Installation At first you need to install SAM BA 2 11 to a location of your choice afterwards restart PC if necessary If you have an earlier version of SAM BA already on your computer you may choose to install this as a second version not uninstalling your old installation After SAM BA 2 11 is installed extract all the files of the deRFsambaPatch zip into your SAM BA installation directory so that SAM BA can find the new applets and board descrip tions If you are prompted for an overwrite confirmation choose Yes to all files and directo ries Only for JTAG If not already installed unzip and install SEGGR J Link Software Note After applying the patch to your SAM BA installation onl
20. y the new platforms deRFusbX3E00 and deRFusbX3E06 are available All other platforms will be removed from the platform menu To restore the previous platforms and re move the deRFusb platforms you must re install SAM BA Alternatively you can also make a backup copy of the SAM BA directory before applying the patch www dresden elektronik de Page 4 of 26 User Manual Version 1 3 Ae deRFusb Firmware Update e 3 Preparations for update via USB Two versions of the deRFusb sticks are available one without the other with preinstalled firmware For USB sticks without preinstalled firmware the following step is not necessary since these USB sticks already have the SAM BA interface activated 3 1 Erase USB stick For sticks with preinstalled firmware either an appropriate update mechanism is provided or a JTAG interface is available The JTAG interface offers the same functionality as described in section 4 and onwards It is recommended to use dresden elektronik SAM ICE Adapter to access the JTAG and Trace functionality with standard connectors You should only resort to the here described procedure if you have absolutely no other choice since it deletes all data on the stick including manufacturer supplied board data e g the MAC address Further explanations on this topic can be found in chapter 6 Note You should always include a software option into your own application firm ware for activating the SAM BA bootloader mode
Download Pdf Manuals
Related Search
Related Contents
BM-170 Manual Acer Aspire T180 14頁 5078KB Manual_SPALB007_DEITCZHUHRSLORO Cruze MY2013 SHIVER 35 MANUAL - Fantic Motor JPN 1.透析医療事故防止のための標準的透析操作マニュアル User Manual - ADFWeb.com User Manual Copyright © All rights reserved.
Failed to retrieve file