Home

UPP2-X with AES encryption Portable Programmer

image

Contents

1. 52 Addenum AT89LPxx E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Serial Flash SPI Flash Basics The UPP1 P R firmware also supports the in Circuit programmable SPI Flash chips of the types AT25DFxxx S25FLxxx and SST25VFxxx Connectors The included 6pin cable must be used The connections of the receptable header on the target board must be done in a way like the schematic below shows it MISO SO o1 2o vcc 3 3v SCLK 03 4o MOSI SI CS SELECT 05 60 GND TopView header on the Target E LAB Computers Addenum Serial Flash SPI Flash e 53 UPP2 X Portable in Circuit Programmer with GLCD Other E LAB Programmers ISP3 X The ISP3 X programmer always needs a PC and hence is not portable It is the cheapest device of the E LAB programmer family The connection to the PC is via USB2 UPP1 X The programmer UPP1 X can be operated by the PC or independently of the PC portable In the portable mode the projects are stored on its microSD flash card The device is internally Li Po battery powered in portable mode The connection to the PC is via USB2 UPP1 XS The programmer UPP1 XS can be operated by the PC or independently of the PC portable In the portable mode upto 10 projects are stored on its microSD flash card The project selection is done with the Up Down buttons with the help of the LED display The selected project name can be displayed on the display in a
2. sise 8 DORE E 10 Functions of Buttons and Menus sise 11 AEO PACIGO ren ee 25 Iiteractive ProgratfittllllQ nn ones E iE Ee eE AUR YA Ronda ER eX ERE Teak 26 BUARI FRONT RIOS TET aa eo ne nn out 26 Programming Using ihe SD CaN siminer oEe tex paed et e bupietepesvbxen centres scene he encens 27 States Error Display and Problems ie 28 xcix 29 Buttons and VIII D PNE E MT 29 Command line parameters nennen nennen niak Dai NAKANE nsns nnna iari nnn rins n naar nnn nnns 33 aille HR 33 LE ig Haie UU TUM 34 Working Stand Alone nennen nennen nnn nns nna nnn nsssna nnn is snna enn n rins naar nnns nna nns 36 EXTERNAL OY iu ccc 40 Protection of the PFO CM AVN t OE DO OE TO 40 Miscellaneous Adaptors ne nn tte dtuicucdmsasu ssa dates e enesseenens seit int 40 MULTILE PROGRAMMER S 2 a a E cu 41 BAUCFV ODETI O esa EEE E anne ann E E EEE eee case 41 TARGET POWER SUPPEY scussicrjo anii Ea EE a E N E EEE 41 USB DRIVER erien E E UT 42 Installing CTS IGINS CLV OFS seen esse nnmnnn eurent 43 FIRMWARE UPDATE eset on ap eee ewe eeueteeennee eu ocousseeenneuevecacuseeerceuuesuucues 46 NN ES E 48 PRIN M n 48 NS OO ts ienree 48 AS MDC O
3. User Manual E LAB UPP2 X Programmer 2 X with AES encryption Portable Programmer Copyright 1998 2015 by E LAB Computers EXE LAB ICP ISP Programmer AVR avr fatmmc E File Device Program Options Encrypt Help 21x OC Oc OC OC Oc OC Oc OC MOn ad 34 34 34 ad ad 34 34 45 lE lE lE AA lE lE lE 3C 45 45 45 3C 45 45 45 45 45 45 45 3C 45 45 45 ac Oc ac ac OC ac 0C ac 34 ad 34 34 34 34 aq 34 lE lE lE lE Ce lE lE lE 45 45 wee 45 45 SE 45 45 45 ry h Eri Ez bz Ez A om Ezio bz UUL Eri Ez me Lzi Ex me ml Ez Meme A bx bn bz Ez fa bx br Ex A dr 1 bmi WEB www e lab de Tel 07268 9124 0 Fax 07268 9124 24 CPU MEGA128 clock 15000000 Hz 5 08Volt UPP LISB Programmer UPP2 X Portable in Circuit Programmer with GLCD Table of Contents OVERVIEW c P CP 3 uz pi ccs v eden 3 CONNECTION S 3 SOFTWARE aa re A en ce cln ree E eee cleans sameweeien 5 PN 21 OG PAPAS PR 5 B virga E MEET tee eee ane eee ee 7 Call options Command Line Parameters
4. Projects encrypted in this way only be processed with PackProg exe E LAB Computers AVRProg Software e 21 UPP2 X Portable in Circuit Programmer with GLCD Standard encrypt Mode This option builds a packed and well encrypted project which only can be processed with the PackProg program in conjunction with an ISP 3 programmer type But also a UPP programmer can directly load using its memory card and process such a file As an option a password can be included so that processing this file is only possibly by the programmer which generated the password The menu item opens the dialog shown below UPP Packfile Extension i The dialog serves to set the file extension The extension can UPP Fie extensions Pame include a number en0 en9 for a better handling with the UPP Y e i programmer or a simple enu The choice must be done with one e dani of the file number buttons enl Extension En enu The checkbox Dock or DLL selects no more then 10 possible en Back or DLL projects on the flash card end C end C enB enr C eng f eng set Filenumber EEE x This dialog mainly serves to decide whether a password must be Standard Encrypt Mode A included or not A password exclusively binds this file to this destination avr evab enu 2 specific programmer which supplied it If a password is necessary he then it must be selected from the list field K This option must be selected by the button Encrypt w
5. suc pM use CheckSum in target shows the flash check sum in the target if present The check button write ChkSum shows the state of this option CheckSum inLIPP ISP 9AB7 CheckSum in UPP ISP shows the flash check sum present in the ISP and PC Storing Parameters into the target If there is enough space in the flash memory of the target CPU additional parameters and information can be placed at the end of the flash memory With the option switches checkboxes of the dialog above each option can be individually enabled or disabled A change gets saved immediately Also these options are stored into the project s INI file as usual The options if any are programmed at the end of a programming cycle into the last bytes of the target s flash At each invocation of this dialog there is a try to read the actual parameters from the target This operation only works if the target is present powered and not protected of course The firmware in the target CPU always has access to this data Project Name into Flash If the checkbox write Name is activated the ISP is enforced to write the project s name into the flash This is done at the end of a programming cycle Serial Number into Flash Activating the checkbox write Number instructs the ISP to burn a serial number into the flash The integer part of this number is then incremented The serial number consists of 2 parts 1 Two arbitrary characters from the f
6. 1 8V 5 5V XMegas must be supplied with max 3 6V and the TINYs not below 5 0V None of the 4 control lines of the device must be shorted A continuous short circuit can destroy the programmer Only electrically tested boards should be connected For JTAG programming of the target CPU the 6 wire ribbon cable must be replaced by 10 wire type Because the UPP2 X uses the same plug for ISP and also for JTAG programming the JTAG plug on the target system differs from the original Atmel JTAG plug See the schematic on the left On the left is the recommended E LAB plug connection which must be used for the target system if the JTAG interface of the target AVR is to be be used for programming Please note that also the RESET line must be connected to the target CPU Tiny 4 5 9 10 20 programming TPI DAT O1 20 VCC SV These Tinys must be programmed with 5V through 3 pins TPI CLK O3 40 The programming mode is called TPI Because the same programming plug is also used by the SPI mode the plug on the target system differs from the Atmel plug The load on the RES O5 60 GND TPI_DAT pin must not be lower than 80kOhm 4 e Connections 1 ELAB Computers UPP2 X Portable in Circuit Programmer with GLCD SOFTWARE There are two supplied programs that can be used to control the UPP2 X programmer The first is AVRProg exe which is the more extensive program that can be used for creating a project editing viewing the data and
7. Help Deep encrypt ISP3 UPP 1 2 For the ISP3 X UPP1 X and UPP2 X one should only use pack Project ISP3 UPP1 2 or AES pack for ISP3 X Standard encrypt ISP3 UPF 1 2 pack Project ISP3 UPP 1 2 After selecting the MMC drive Reader Writer Windows le _ i stores the packed file to the card AES pack for ISP3 X UPP L X UPP2 X Alternatively the file can also be stored to another media e g Floppy Disk Drive or it can be attached to an Email Please note for the programmer in direct mode the Encypt modes are not available Encrypted files can only be accessed with the PackProg exe software With packed files or projects there is a medium protection All Hex files and also the programming control fuses etc are written into a binary file so the recipient does not need to have great programming knowledge and it is also impossible to change any setups fuses or file contents The encryption enhances a packed file in such a way that programming files can be sent to every place in the world and the recipient or others are unable to disassemble them or do any reverse engineering Furthermore there is the additional feature to include a password into the encryption so only the right UPP2 X programmer can use this file This is an additional protection against illegal copies Deep encrypted files can only be used with the program PackProg exe Standard encrypted files can be loaded into the UPP programmer types But for us
8. The order is MSB at the lower address and LSB on the upper most address IEEE Address location The programming software supports the address F 128 S1FFF8 write IEEE handling so that this address can be preset and m becomes auto incremented after each programming Preserve Serial Number cycle LSB Serial Number Order With Preserve Serial Number the number in the Gana Target is read back and used for the next programming cycle provided that the chip is not protected With LSB Serial Number Order the serial number will be stored beginning with the LSB and ascending in the Flash otherwise beginning with the MSB These options can be set and edited in the dialog Options Target Options Connectors The included 6 wire ribbon cable must be used The connections of the receptable header on the target board must be done in a way like the schematic below shows it N C o1 20 vcc Attention 34 The PIN2 must be connected with the positive P2 2 CLK Q O DATA P2 1 Target supply VCC PIN6 must be connected to the ground of the Target Connect PIN5 to the RESET 05 60 GND RESET PIN PIN3 to the Debug Clock P2 2 and PIN4 to the DATA PIN P2 1 of the TopView header on the Target CC2430 E LAB Computers Addenum Chipcon e 49 UPP2 X Portable in Circuit Programmer with GLCD Verity While programming the target which is done with 1kB blocks a verify of the current block is automatically executed after f
9. UPP USB File administration avr evaboardi _ x the blue header on the top shows the actual nono Maintenance loaded project a fi UPP2 3 reload ist Any projects contained on the MMC SD card E a ROOT X delete all are shown in the list EVA JTAG PK1 LP4052 PKS check file and file Info allows to check the downloads on the SD card 2510 32 PKA 0252 PKB5 89253 PK7 TESI 52 Pk8 83956753 PK9 HIPCON 2430 128 PAC 2430 32 PAC 2430 54 PAC 2510 15 PAC 2510 32 PAC 2510 5 PAC 2511 16 PAC erase md Iz verify oe prog CHIP current action progress EE umuummmomummuum E LAB Computers PackProg Software e 31 UPP2 X Portable in Circuit Programmer with GLCD A click in the list field selects a project This enables the erase verify und prog buttons With prog CHIP button the CPU can now be programmed If the chip is not protected the verify CHIP button tests the CPU The Print Button outputs a hard copy of the actual file list to the printer lisp3 x The file Info button displays important parameters of 2012 Sep 01 00 58 36 the selected project File downloaded 2012 Sep 06 CPU Name XMEGA256A3U CPU Clock 32 MHz Rest in pet 196780 bytes A test with the check File button should always show EEprom to program none an OK UserRow program none Fuse to program yes Lockbits to program yes Information E X Auto release target yes PDI programming yes MA Uer SE Target powered by I
10. arrow can be placed to come Setup und this option can be Chuhntnact aA started with the select key EY n ER 1 Bac light 3255 System Check S Sel C Exit moe Setup g Sel With the select key the contrast or Backlight can be selected and then can be changed with the up or down key With the select key the System Check can be executed This checks the device calibration the flash card and eee un The changed values then can be also all files on the card NM Fi es found stored with the select key or ho file errors discarded with the clear key S cont C exit With the programmer type UPP2 X the start screen looks somewhat different E LmnE E LHE CAIPPZ X UPF Progr Fr oder E a Projects E Remote checkisetue El 36 e Stand Alone Mode E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Reset Simultaneously pressing the up and down key executes a hardware reset in the programmer Start Up Because the UPP2 X is equipped with an internal battery the bettery state is always checked at power up in Signing meds lif the ba ttery state is too low then this display raises If so then the battery should be charged through PC or one of the contained charging devices Projects If the dialog Projects was selected and started in the main menu with the select key a short memory test is executed and the project select dialog below is shown As the picture shows t
11. binary File Save EEprom Buffer to binary File Save Flash Buffer to Hex File Save EEprom Buffer to Hex File search programmers w USB devices only Exit nmm rH SG DA AT D Battery Operation The programmer contains a rechargeable battery pack with 3 7V 700mAh When the device is portable operated and programming a target without an own power supply or the target s power supply is to weak to also supply the programmer this battery is used An internal battery with 3 7V 1500mAh is available as an option An internal step up regulator provides the selected target voltage The internal battery is recharged whenever the programmer is connected to an powered USB port Contained in the USB2 X package is also a mini AC to USB power supply as well as a car converter for cigarette lighter 12V to 5V USB TARGET POWER SUPPLY All USB programmers have the feature to supply the target CPU with a selectable voltage current Because a USB port of the PC or HUB also can supply at least 100mA 5Volts this can be used as an alternative to a separate power supply Please note that the official nominal 5V in many cases is not 5V but maybe 4 8V or less for example Furthermore the device internal voltage regulator also has a drop out voltage of approximately 0 2Volt To reach a 5V output the programmer has a built in step up regulator so the gt 5V are always achievable E LAB Computers Multiple Programmers e 41 UPP2 X Por
12. caused by capacitors can lead to problems So it s a good idea to design system with less or no loads on the programming lines Resistance below 2k Ohm and capacitors larger than 100pF should be avoided in conjunction with the programming lines This is true for both SPl programming and also for JTAG programming Miscellaneous Adaptors These adapters are useful if your target board has connectors with Atmel standard pinouts As an option an adaptor As an option an adaptor is is available from E LAB available from E LAB 6 pin SPI to Atmel 10 10pin JTAG to Atmel 10pin pin SPI 2125 JTAG Atmel 10pin JTAG Connector Atmel 10pin SPI Connector E LAB 6pin Programmer Cable 2 JTAG Apaptor3 E LAB Programmer 40 e External Hardware E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD MULTILE PROGRAMMERS COMports and USB E If the PC control program AVAprog exe or PackProg exe finds several USB programmers or at least one serial and i one USB type are present the programmer must be ii rero selected from this dialog Basically only one serial type is searched If one is found the search for these types is aborted Regardless of how many programmers have been found only one can be used for working at a time Gang programming is not possible Edit Load Project Save Praject parameters detect the currently connected programmers with the menu item File search programmers Save Flash Buffer tn
13. field If enabled the ISP programmer supplies the selected voltage to the target system The current limiter can be set between 30mA and 300mA The current will be limited to the selected value Basically this power supply is switched off after the programming cycle If the supply shall continuously supply the target so the checkbox stay active must be checked If in addition the auto release target is activated the target system starts up and can be tested at runtime The editable fuse and lock bits are displayed on the right side in the Write column and here they can be edited The Read columns can always be updated with the Refresh button To do this the actual fuse and lock bits are read out of the target as far as possible The button program Fuses is very useful for erasing of illegal FuseBits which may be activated by an accidential programming One can try with program Fuses to set all fuses to the desired value Some possible error messages can be ignored in this case In most cases the CPU then shows a normal behaviour as expected Attention SPI mode Some CPU types have an internal RC Oscillator or the feature to connect an external RC Oscillator These options must be selected by some fuse bits Sometimes it s also possible to select an external low frequency quartz crystal With selecting such an oscillator one must be very careful 1 Internal RC oscillator With this option selected the standard frequency is typi
14. first the flash is displayed and then the EEprom if present and activated in the project setup If errors are encountered these are displayed With no errors the ok screen is shown Verify Project verify ver ify EVA JTAG PKI JTG i CPU MEGAIZS LE E I L 1 rona ID TT Press ang key press any key ae oe e If the verify cycle was started with the select key so some checks follow The necessary voltage is checked and also the ID of the target if applicable Then the communication is checked If all tests passed the verify screen is shown with a gauge At first the flash is displayed and then the EEprom if present and activated in the project setup Of course a verify must fail if the target is protected If errors are encountered these are displayed With no errors the ok screen is shown 38 Stand Alone Mode E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD If the chip Erase was selected immediately after the mandatory checks an ok or fail display is shown If errors are encountered these are displayed With no errors the ok screen is shown Press ang key I Error Messages With program verify or erase the possible error messages are Power Down the first check at all looks for the target voltage It must be 2 7V Power Error if the programmer must supply the target it also checks it for the correct voltage Wrong ID if the target has a readable and usable ID it must be ch
15. n Ne aa ne n7 ne a4 58 erase UserSignaturRow erases the UserRow to FF XMega A click on the Erase button erases the entire chip inclusive the lock bits Please note that the fuse bits are not erased or changed The Program button erases the chip completely including the lock bits then the chip is reprogrammed The fuse and lock bits are treated as set in Options The Security button writes the lock bits which are defined in Options It is required that the chip is not protected until this time The Verify button starts a verify of the target with the buffers Only possible on an unprotected device The Stop button aborts the current action After programming a device the reset stays active The target can be released by a click on the Run button or again reset without disconnecting the programmer from the target If the option autorelease target is enabled in the option dialog the reset is always removed after a programming cycle ae e Options Menu All of the fuse bits and lock bits Reset polarity etc and also the whole behaviour of the programmer and it s additional options must be setup at least once for a project To do this there a two dialogs the Options Dialog and the Target Options Dialog These are called with the menu below Options Encrypt Tools Hel Programmer options starts the Options Dialog where the Fuse and Lock bits can must be defined and also some other functions Programmer aptions Target options st
16. of packed or encrypted projects a m I9 for direct In Circuit programming of the Chips with all types of programmers for indirect In Circuit programming via Flash Card with the UPP programmer types for the download of packed projects into the flash card of the UPP programmer types 6 for storing of packed projects onto the flash card in the Flash Drive of the PC Most of these functions are not necessarily desired in the production and service area And furthermore they distract and can be possible sources for handling errors To avoid this there is the pure programming tool PackProg exe for the programmer types ISP3 UPP1 and UPP2 This tool only supports programming of the Chips and with the UPP types the download of packed projects into the programmer In addition this is the only tool which can process the deep encrypted projects Buttons and Menus Project Import i EET m FRERE ao ER A Ae Ip e Bf ae oe zar ee P E LAB ISP3 UPP1 UPP2 Programmer and Downloader File Setup Info administratian direct mode LIPP E LAB File name Be A amp 4 fea iig e p XMega256 pac asset SN SNSNSNSNSNSNENEN Filetype standard packed F intern Project name avr problems CPU name MMEGAZS5BA3LI USB 2 0 Flash size 30040 full speed prog Flash true driver 2 51 1 0 EEpram size Buh j FL e co prag EEprom true prag LiserE ow true prog made Batt 100 Bi program serial number project loaded LIPP2X Prog Rev 1409
17. selecting fuse lock and programmer setup options such as power supply programming and verifying the target and creating packed or encrypted programming files for use elsewhere The second program is PackProg exe and it can only be used for programming or verifying using a packed or encrypted file that has been previously created by AVRProg It is the most suitable program for production use and is described later in this manual The UPP2 can also be used in Stand Alone mode ie without a PC attached which is described later E LHE The programmer will display this screen while being controlled from LILIPP meee Fer mS Sa r Peyote AVRProg AVRProg can be executed from within the AVRCo IDE PED32 and in this mode all the project settings are passed directly from the IDE It can also be executed directly from a shortcut or the Start Menu In this mode an existing project has to be opened or a new one created so the project select dialog is opened on startup Open Existing Project A project can be opened and loaded by a double click on the desired entry or by a single click on the entry and an additional click on the Load button All project related parameters and files are loaded A E LAB ISP UPP Projects HN 21x Project loaded none Details of the highlighted project from the select window with CPU Praject Name mega Prog XMEGA128A1 type Directory C PROJEKTE PROG AVRUMega Testl ER _ Accompanyin
18. the comment field Insert the password into the password field Store all with the button Add d eos 6 With files which are sent to this recipient with a password it must be clear that only the correct password must be used for the file generation An alternative is item 7 7 With the button Public there is no password included and all recipients who have the program PackProg exe can process this file Depending on the selection the created file has a file extension enu or enO enf1 Programming Devices the PackProg exe software supports all programmer types SP3 USB UPP1 and UPP2 See the chapter PackProg Software for more information Also the receiver of the files should own this manual 24 AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD AES PAC files If absolutely secure PAC files are needed for the types ISP3 X UPP1 X or UPP2 X X programmer they must be created with AES encryption AES is an absolutely secure encryption which can t be hacked Because the encryption can only be done in the X programmer types listening sniffing on the USB lines results in unusable data Furthermore the AES mode has the advantage to create a PAC file for a specific programmer using its serial number so this file can t be used on any other programmer As an additional feature the Quantity limitation can be used So hidden black productions are absolute i
19. two functions 1 ashort click to this button executes a Hardware Reset 2 a longer click to this button 1sec also executes a Hardware Reset and in addition it forces the device to enter the forced Download state like described above E LAB Computers Firmware Update e 47 UPP2 X Portable in Circuit Programmer with GLCD ADDENDUM XMega Attention The RESET line on the target must never be loaded with capacitors because the PDI CLK is fed here with gt 1MHz A jumper which disconnects RESET condenser at programming time can help Mega PDI speed With older XMegas for example XMega128A1 or long programming cables high speed some errors maybe raised Here Atmel recommends that the clock rate of the PDI interface should be reduced This can be done in Options Programmer low speed options These Tinys must be programmed with 5V through 3 pins The programming mode is called TPI Because the same programming plug is also used by the SPI mode the plug on the target system differs from the Atmel plug The load on the TPI DAT pin must not be lower than 80kOhm This is the connection of the programmer cable to a TPI Tiny RES prog y Because the RESET pin of these TINYs can be disabled by a fuse a normal re programming of these devices is not possible Then the high voltage programming mode must be used Fortunately the programming scheme is the same but only the RESET line must be set to 12V Here is a simple sche
20. with the download button UPP USB Hie admit The project stored in the SD card must be selected by a SIN mee click onto the entry in the list box Now the erase verify UPP2 and prog buttons are enabled El m ROOT BETE VA JTAG PK p The programming can be started with the prog Chip Es i ate rue button E 8252 PK6 E p B 89553 PK7 BELLE If the chip is not protected it can optionally be verified B TEST 52 PK8 with the verify Chip button B 8998253 PKI EI CHIPCON B 2430 128 PAC m B 2430 32 PAC ey check tile The current file list in the SD can be printed out as a die pe hardcopy with the Print button E 2510 32 PAC _ 4 tie into mem E 2510 8 PAC j E 2511 16 PAC E print erase E E verity CHIP S prog CHIP 122 MB current action progress action progress Parameter list of isp3 same The file info button shows some relevant programming TE parameters of the loaded project 2012 Sep D1 00 58 36 2012 Sep DB XMEGA25BA3U 32 MHz Flash to program 196780 bytes EEprom to program none UserRow program none Fuse to program yes Lockbits to program yes Auto release target yes PDI programming yes Target powered by ISP UPP 3 30 100m max program serial number no preserve serial number no File protect AES Password Quantity Quantity limit 10 Exit Programming parameters and option of the loaded project E LAB Computers
21. 19 Infos about the actual laaded praject This opens the following project dialog E LAB Computers PackProg works with a Project Pool similar to the main program AVRprog But only packed or encrypted projects that have been previously created with AVRProg can be imported This means that a new project must be registered first in order to work with it New projects must be registered by the project administration dialog opened by the menu item open or the File button Kil File Setup PackProg Software e 29 UPP2 X Portable in Circuit Programmer with GLCD With the Add button a new project can be included into the pool Board Test Firmware 128lock pac mill3x pac With the Delete button an existing avr evaboardi encr millaxe pac A 1 avr evaboardi pack XM LOCkK pac Project project can be removed from the avrevaca pac Mega256 pat pool BO9864 pac XMEGAtst pac cant28m pac With the Load button or a double cani28s pac AUD Ac click onto a list entry the selected etherbd2 pac project is loaded EVA1 pac EVA128sp pac F3 Load EVA128US pac EVATA pac evaboard pac evacan pac fatmme pac f Exit Available Programmers Before one can work with the selected and zer TMBTSE3 2 f loaded project the programmer must be HSP 3 Debug Prof ser 11223344 1 mma meme searched for This must be done with the Check USB button If a programmer was found this is displayed in
22. Arbeiten mit dem UPP e 27 UPP2 X Portable in Circuit Programmer with GLCD States Error Display and Problems Possible error messages of the programming system AVRprog PC Programmer not found a The programmer is not plugged into the PC s COM port or USB port b The COM ports of the PC are all used by other devices N A for USB c The connection is missing some lines in the cable N A for USB Please observe the paragraph Connection Target Power down a The 6 pin plug is not connected to the target b The target is without power or the voltage is too low 3Volt c he project setup expects that the ISP powers the target but the power supply of the ISP is not connected or the current consumption of the target is too high Device not responding a The voltage of the target is too high or too low see below b Target has no clock SPI Mode c Chip defective d Reset is not connected to the target CPU Wrong Device ID a The voltage of the target is too high or too low see below b Wrong device selected c Chip defective It is possible that a device ID in the target is permanently destroyed but the device works correct If itis the correct CPU type the programming can be continued All the above problems can also be a problem of a defective programmer In many cases the Reset Pin is loaded with Rs and or Cs In this case activating Push Pull Reset can help If a CPU shows a wrong device ID at programmi
23. N oo 49 Chipcon Evaluation Boards D 51 PA OC 52 Seria Fl sh ol lla SIN gaudiis c oconicium eu eacUUd oves Resim vURS E AE 53 OIher E LAB Program Mers usisne aaa anai 54 2 e Table of Contents E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD OVERVIEW In Circuit Programming ISP or JTAG is the technology of the future at least for small and medium series of electronic components with embedded processors With SMD parts there is a problem with programming because many expensive and specialized socket adapters are required An additional advantage of ISP JTAG is the practically unlimited reprogrammability of the CPUS This UPP Programmer emphasizes minimum size extensive software and ease of use This manual is only valid for the UPP2 X version of programmers FEATURES e Connection to the PC through a USB port USB2 USB1 and Hubs supported e No power supply necessary The unit is powered by the internal rechargeable battery directly from PC interface USB or by the target e Adapts automatically to the target s voltage 1 8 5 5Volt e Power consumption 50 70mA if powered from the target system e Easy and extensive software Up to 63 projects can be stored on the included micro SD card e Software runs under Windows XP Vista and Windows7 8 32 a
24. Prog Software MEGA189 MEGA168P p c MEGA2560 MEGA2561 MEGA32 MEGA323 MEGA324 MEGA324P MEGA325 MEGA3250 MEGA329 MEGA3290 MEGA3290P MEGA329P MEGA48 MEGA64 MEGA640 MEGA644 MEGA644P _ MEGA645 MEGA6450 MEGA649 MEGA6490 MEGA6490P Chipcon ColdFire Serial ROM MEGA649P MEGAS MEGAB8515 MEGAS8535 MEGAB88 TINY13 TINY22 TINY2313 TINY24 TINY25 TINY26 A1 xl x A right click to an entry in the project select load dialog opens this Comment dialog With this dialog it s possible to add or view a comment for each project If a project is being created initially or an existing project must be changed first the CPU type must be defined This is the purpose of this selection dialog The CPU types LPC TMS and PIC are not implemented at this time E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Device state dialog Po After selecting the CPU the clock frequency of the target must be set To do this the button opens the Device State Dialog The dialog shows the parameters of the PC loaded project and the parameters of the hex files loaded Editable parameters are located in the Environment J Device State Device i r Programmer group CPU Mame UJPP25PFPro AREAS ESS 3 The clock defines the SPI Flash size 262144 bytes Ser Num 1aFATFEAZ speed for ISP progr
25. SEL1 CKSELOTe 0 ckESELG DA BFF wi epEN 5 fer PEN CKOPTT CKOFT EESAWE 3 SESAVE BOOTSz1 2 mBoOOTSzT1 Boocrszn 4 socrsre BOOTRET O BOOTRST SEF FIF Calibration bytes 00 val S1FFFE addr Write Cal Byte more Pnwverbupply amp clocks 1 10 Volt E stay active Emira Su BE Reset options inverse Reset I Pushn Pul Reset VERAS Eel Reset Delay E E WEN CPET roe to General EI Etant check after erase AERE EE IM program Flash si me program EEprem I II ignore false ID F 2f Auto release Target Mioacy 1 w103c wperoN of WOTON SFF SFP w program Lockbits save restores EEpram r armePaert FF program Fuses MH prog Fuses ne print refresh i If for example no EEprom file is loaded EEP the item program EEprom is disabled If the CPU does not support Fuse Bits the Fuse bits groups are not visible otherwise the accessible fuses are enabled for access The meaning of the Fuse Bits can be found in the Atmel CPU datasheets The General group defines the common behaviour of the unit The item blank check after erase is only necessary for testing purpose Normally it should be disabled Program Flash and program EEprom normally both should be enabled Ignore false ID disables the error popup in case of a false Device ID It is generally u
26. SP UPP 3 30V 100mA max 1 fe EVAJTAG PAC check ok program serial number na preserve serial number no File protect AES Password Quantity Quantity limit 10 Exit Programming parameters and option of the loaded project Setup If encrypted or deep encrypted projects are to be built using AVRProg then the password of the target programmer must be supplied to the file creator To find the password of the connected programmer Setup Info request Password must be used in the Setup Menu TN xi Calibrate 7487553 Lr E3 copy to clipboard download new Firmware Telnet active Telnet config Telnet info close Get the programmers internal password Needed to ent auto search programmer The download of a new Firmware for the programmer is started and executed as described below If the option auto search programmer is enabled a programmer search is automatically started the program PackProg is run The system is then scanned for any connected and active ISP3 or UPP programmer If a programmer is found it is displayed here serial number UPP 1 Prog found UPP 1 Prog Rev 061211 Project do program EEprom 32 e PackProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Command line parameters In principle with all calls of PackProg switches can be appended These are p Automatic programming start V Verify target f Verify flash only u Check programmer t En
27. SPIEN fuse This fuse normally is don t care with SPI Low Voltage programming But there are exceptions the Tiny12 for example In this case the SPIEN fuse must be activated Otherwise the chip is not accessible any more The SPIEN fuse is always programmable in the JTAG Mode If SPIEN and JTAGEN are disabled this CPU is also not accessible any more Note that JTAG mode commandeers some l O pins from normal use Sometimes it is more readable for the designer if the binary values of the fuses are shown instead of the boolean values This can be accomplished with this button Calibration Byte Dialog Some CPUS which feature an internal RC oscillator often have also up to four special read only fuses called Calibration bytes which are shown in the field Calibration Bytes These bytes can be used by the program application to fine tune the internal RC oscillator Because this byte is unique in each CPU it must be individually passed to the application A checked checkbox WriteCal Byte forces the programmer to read this fuse byte and store it into the Flash The target location of this calibration byte must be supplied by the user with the help of the dialog Calibration bytes shown below FJ Calibration bytes 3 xX Dependent of the CPU type there are up to 4 Calibration Bytes which must be read out of the CPU Each byte corresponds with a unique Possible Calibration bytes RC oscillator The choice of this byte radio CalByte Cal By
28. VR xmega_F File Device Program Options Encrypt Tools He a Blank Check read back Flash read back EEprom read back LiserSignatureRow read back All lg Se Verity Flash ia Verify EEprom is Verify LiserSignatureR ow 5 Verify all Strg Fio FF check device UPP2 X Portable in Circuit Programmer with GLCD Blank Check tests the target CPU for unprogrammed ie empty If the target is protected a message is raised Read back Flash if the target is not protected the contents of the Flash is read back into the Flash buffer Read back EEprom if the target is not protected the contents of the EEprom is read back into the EEprom buffer Read back UserSignatureRow if the target is not protected the contents of the UserRow memory is read back into the UserRow buffer Only XMega read back All if the target is not protected the contents of the Flash and the EEprom is read back into the related buffer 4 With XMegas also the UserSignatureRow is read back Verify Flash if the target is not protected the contents of the target s Flash is compared to the Flash buffer If there is any difference an error message is raised Verify EEprom if the target is not protected the contents of the targets EEprom is compared to the EEprom buffer If there is any difference an error message is raised Verify UserSignatureRow if the target is not protected the contents of the targets UserRow is compared to the UserRow Buff
29. Version D of the UPP1 where the version S has a rotary switch on its back side which supports the selection of one project out of 10 stored projects The version D in combination with its Docking Station also supports selecting one out of 10 projects With selecting a project in these ways there is the problem that the relation of projects on the SD card to the position of the switch is not static It absolutely depends on the order of the FAT16 directory entries on the SD card If a card becomes completely erased and then projects are stored sequential onto the card the order of the storing absolutely corresponds to the switch positions But if then files are deleted rewritten or updated this relation can change dramatically As a consequence of this after each SD content alteration the resulting new file order must be copied from the UPP File Dialog of the PC program Without taking care of this there can be strange problems with portable programming In order to avoid all these hazzles both download functions provide the option to set an absolute relation between a file project and the switch position of the UPP1 Basically all UPP Pack Files have the file extension pac and the encrypted types have the extension enu To set a fixed relation between such a project and the selection switch a number between 0 and 9 can be appended to the extension which forces the UPP to fix this project to a switch position When a PAC or ENU files m
30. able Telnet server C Program exit S No visual error messages are generated Instead the errors are written into the file ISP_UPP err in the program directory Filename automatically opens and loads the PackFile defined with Filename The order of the switches in the command line doesn t matter The switches must be separated by spaces A switch must not contain spaces Example C pppp PackProg exe abc pac d12345678 p c Return Codes These return codes can be used by a batch file to control its flow 0 dsOk Operation successful finished 1 dsPwrDown No Target voltage 2 dsPwrErr Target too high or too low 3 dsFalseTyp Wrong CPU ID found 4 dsProtect Target is protected by fuses 5 dsNotEmpty Target is not empty after an erase 6 dsVerifyErr Target or Programmer found a Verify error while programming 7 dsFileError N A 8 dsTimeOutErr USB driver returns a timeout 9 dsCommeError Communication problem with the Programmer 10 dsNoProg Programmer not found 11 dsNoProj Project not found 12 dsFwLost Programmer returna an invalid firmware 13 dsNotfound File eg Hexfile was not found 14 dsCalReq Programmer returns a lost or illegal calibration E LAB Computers PackProg Software e 33 UPP2 X Portable in Circuit Programmer with GLCD Telnet Interface There is an easy to use remote control interface in PackProg To simplify this remote control the Telnet protocol is used So other applications and also o
31. al driver set which resides in a separate sub directory of the installation directory USB2_Driver driver set for all ISP3 USB UPP 1 and UPP 2 types In the AVRco compiler installation these drivers can be found in their subdirectories below the directory AVRco Driver installation The necessary installation of the driver onto a PC is relative simple and without any problems With the installation of the programmer package the necessary USB drivers are automatically installed But one must proceed in fixed procedure Disconnect any programmer devices from the PC Startup the computer and wait until the system is ready for working The execute the included programmer install program SP_ CPinst exe not for AVRco The following Windows dialogs concerning the USB driver must be answered with yes Plug the USB programmer into a free USB port of the PC Windows now recognizes a new unknown USB device and registers it The programmer software is now ready to work UE a er 42 USB Driver E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Installing unsigned drivers In order to force the installation of unsigned not Microsoft certified drivers under Windows8 64 this must be enabled before the start up of the Windows system with cmd shutdown r o Windows now executes a restart This concerns the E LAB AVRprog USB driver and also the AVRco USB driver Step 1 If Windows 8 has started then t
32. amming EEpram size 4096 bytes Prod 2014 08 22 and can be changed every time If this value is too high Device state programmed Firmware 406 AY 1 1 the programming can fail signature TE Se 42 Update 140919 For JTAG TPI PDI Application Programmer Properties programming mode this value T has no meaning But this iiis apinta PDLAMega prog yes parameter should have always Flash used 5342 bytes TPEFTIMYxx prog yes the correct value EEprom used SPI ROM prog yes The voltage field on the right of JserRow used Hat prog no g 9 it reflects the current voltage value which the ISP Environment LISE driver revision programmer measures on the 32 MHz El 3 30 v 82mA 36110 target board if connected 33 Volt El 00 mA E Batt 100 The current field selects the maximum allowed current to supply 0 0mA sets the internal supply to the off state The other values enable the ISP internal supply If a current gt OmA is selected the desired supply voltage can be selected in the voltage field If enabled the UPP2 X programmer supplies the selected voltage to the target system only in programming state The current will be limited to the selected value With XMegas the maximum supply voltage is limited to 3 6V With some TINYs the minimum supply voltage is limited to 5 0V The Application group shows the actual loaded project in the PC The Programmer group shows the information about the co
33. amp TDESL srARTUPTIMET 3 STARTUPTIMET STARTUPTIMEO T 2 STARTUPTIMEC WELOCKT 1 WDLOCK JTAGEN 0 JTAGEN SFF FE Xi Tx Programmer Mod C SP made PD mode rs NS mite C TH made PowerSupply amp cocks ERM 4 v stay active EMA 214 General Blank check after erase Iw program Flash M programEEprom ignore false ID J Auto release Target v program UserRow program Lockbits program Fuses prog Fuses B print 3 refresh With the XMegas some options are impossible or make no sense The dialog above is typical for an XMega Please note that there is the checkbox program UserRow It can only be checked when a hex file for the UserRow is present xxx usr The fuse JTAGEN can always be unprogrammed because the JTAG interface is never used here Instead the PDI interface is always used Some combinations in the Fusebits1 Fusebits2 and Fusebits5 can be illegal and should be avoided Otherwise an unexpected behaviour of the CPU can result Please note that the voltage supply is limited to 3 6V for XMegas 16 e AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Power Supply The Power Supply group selects the maximum allowed current to supply 0 0mA sets the internal supply to the off state The other values enable the ISP internal supply If a current OmA is selected the desired supply voltage can be selected in the voltage
34. arts the Target Options dialog where powerful extra Target optians functions can be enabled and setup Erase ICP DownLoad new Firmware starts a firmware update of the programmer For more information take a look into the chapter Firmware Update at the end of Format MMC card this manual Download new Firmware Supported are SD cards with size 2 32 GByte Also SDHC cards Please use only Speed Grade 4 or above For high speed cluster size is important Good values are for SD Card size up to 4GB gt 4kB 16GB gt 16kB 32GB gt 32kB E LAB Computers AVRProg Software e 13 UPP2 X Portable in Circuit Programmer with GLCD Programmer Options Dialog The Options Dialog controls the behaviour of the programmer at erase resp programming of the target The types of the options depend of the Hex files and the selected CPU type Aoptions MEGA128 Test 128 i x Fs 3 Pes t Hokies Mode pean 7 ware cd BEAD wame icd reap 79 ware fl C SPimode 2b rode ocneN 7 Ie ocpEN BODLEVEL RS 7 BOoDLEVEL ale Me m TAG mode 7 TP mode AGENT 6 4 JTAGEN BODEN 6 BODEN kF s EC BoOcTLOCKiz 5 BOO 8TLOCK1Z BocTLOCKid1 4 BOOTLOCK11 BOcLOCKO2 3 BoorLOCcKOUS BOOTLOCKOd 2 BOOTLOCKO01 Locksrz 4 Lockerz bLockanif o LocKkem SBF SFF Si s Emi Sue 4 Sur exsers 3 cKSera ckskELZ 2 CKSEL gt cksELT 4 Gck
35. cal 1MHz Because of this the programmer s frequency selector must also be set to 1MHz otherwise there will be errors with accessing the target CPU The nominal frequency is 1MHz With a CPU voltage of 3Volt the frequency drops to 500kHz 2 External RC oscillator If this mode is activated there must be a proper external circuit connected Otherwise the target CPU will be never accessible 3 Low Frequency Crystal If this mode is activated a 32kHz watch quartz must be connected to the target Otherwise the target CPU will be never accessible Please note in addition that while programming the actual fuses in the CPU are relevant The new programmed fuses become valid the first time after a reset Some fuses become valid the first time after a power down With accidentally wrongly programmed oscillator fuses it s possible that after that the external oscillator circuit must be changed to again get access to the target CPU The above restrictions and warnings are not relevant for JTAG TPI and PDI programming Here the CPU must simply be supplied with voltage current A working oscillator is not necessary and is ignored But then never disable the JTAGEN fuse in JTAG mode The settings of the Lockbits protected unprotected and the voltage supply of the target by the ISP are also displayed in the main program by two symbols The padlock means that the target will be locked protected by the lockbits The mains or is PDI batter
36. downloaded 2012 5ep 06 programmer CPU Name AMEGA255A3U CPU Clock 32 MHz Attention Flash to program 195780 bytes EEprom to program none AES encrypted PAC files can be processed by every old UserRow program none programmer type ISP3 USB UPP1 USB UPP2 USB but aah aman because they are unable to decrypt such files only RUE nonsense will be programmed PDI programming yes Target powered by ISP UPP 3 30 max 100mA program serial number no breserve serial number no File protect AES Password Quantity Quantity limit 10 E LAB Computers AVRProg Software e 25 UPP2 X Portable in Circuit Programmer with GLCD Interactive Programming Sj This button starts interactive programming from out of the user interface The behaviour of the UPP programmer is like the smaller ISP3 USB The whole Chip is erased incl the LockBits and a new programming cycle is performed Fuse and Lock Bits settings are done according the settings in Options As the PC and the controlling program owns all data the MMC card is not necessary and not accessed Building Project Files The previous pages introduced two ways that UPP Project files can be created Either by direct download into the SD card in the UPP or through a Flash drive of the PC There was a notice that the standard UPP version can only use one project in the portable mode because there is no way to select a project with the UPP itself Because of this there are the Version S and
37. e A check of the target s supply voltage and reading and checking the device ID of target is included if possible amp Bros Which of these operations are executed is controlled by the content of the packed or encrypted file Project Because the control program knows and has access to all relevant data the SD card is not necessary and is not used Program Chip These buttons start a complete programming cycle of the chip This includes the Flash EEprom Fusebits Lockbits and eventually a serial number aj Verify Chip Verify the contents of the Flash and EEPROM Of course this is only possible if the chip is not protected If the programming of the serial number was enabled at the project creation time packed or encrypted file then the actual number is displayed With a double click onto this field it becomes editable At programming time this number is stored into the Flash and after that it is incremented prog EEprom false prog EEprom false prog mode SPI prog mode SPI serial number 8899AAB2CCDDEE3C serial number 88 99 AA B2 CC DD EE 3C Target protected Target protected JPP 1 Prog Rev 061211 Targ 3 28V 0mA UPP 1 Prog Rev 061211 Targ 3 28V OmA nfos about the actual loaded project Infos about the actual loaded project Programming from SD Card the Download Button reads the SD card an opens the menu below Deep encrypted projects can not be stored on the flash card They must be used in direct mode
38. e PackProg to read it This number is shown in the setup request password dialogue in PackProg The author of the destination file must enter this serial number in the edit Password field and add it to the list To create and store the encrypted file select the destination programmer from the list use Encrypt with PWD The button Encrypt w o PWD creates and stores an encrypted file that is not bound to a specific programmer Is is encrypted but has no password Depending on the selected file extension the encrypted file becomes the extension enu or enO en1 The menu item opens the dialog shown below E LAB ISP 3 UPP File Encryptor EN Xl New passwords can be appended with the Add KEY button Deep Encrypt Mode Existing ones can be deleted with the De KEY button destination avr evaboardi encr EVEN KEY The Encrypt with PWD button builds a file with password pop protection A password protection absolutely binds the SRI ER mi Del KEY generated file to this specific programmer which supplied this password qu Add KEY With the Encrypt w o PWD button generates an encrypted edit Password file without a password protection 45037BC0 The building of an UPP2 X password is completely described in the paragraph about PackProg exe below a If the target programmer is already connected to this PC _DeEncryptwo Pwo _ Encrypt with PWD then the necessary password can be found with the button Head KEY
39. e with the UPP2 X the utility program PackProg is absolutely necessary Packed files can be loaded into the UPP programmer types But for use with the UPP2 X the utility program PackProg is absolutely necessary AES pack files can be loaded into the UPP programmer types But for use with the UPP2 X the utility program PackProg is absolutely necessary 20 AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Deep encrypt Mode This option builds a packed and deep encrypted project which only can be processed with the program PackProg exe in conjunction with an UPP2 X programmer type As an option a password can be included so that processing this file is only possibly by this programmer which generated and supplied it This encryption prevents to disassemble the files or use any kind of Re Engineering so they can shipped around the world The encrypted file enu or en contains the serial number of a specific destination UPP device This ensures that only this specific programmer is able to handle the file To generate an encrypted file the serial number of the destination device must be known to the creator If the destination programmer is connect to the PC the serial number can be read by clicking the Read Key button The serial number appears in the edit Password field You can add the to the list with Add Key If the serial number of the destination device is unknown the owner of the device must us
40. ecked Protected a single verify must fail if the target is protected Can also raised after an erase failure Not Empty an erase operation either direct or in conjunction with programming can show this error Verify Error with programming or verifying this error can occur Battery State When in idle mode the battery state can be interrogated with the C button y QUEM A LALAI I Fa OUV N Po AE t exl H ac E ww ilc Shut Down Pressing the C and the S button at the same time the UPP2 X gets switched off powerdown E LAB Computers Stand Alone Mode e 39 UPP2 X Portable in Circuit Programmer with GLCD EXTERNAL HARDWARE Protection of the programmer against external short circuits and over voltage All newer programmer types are protected against continuous short circuit The overvoltage protection must be somewhat limited by such a device and is only allowable for a very short time and low voltages The protection consists of a resistor zener diode combination for each control line The resistor is 220 Ohm and is connected between the 10 pin ribbon cable header and the internal AVR CPU The diodes are a high speed protection diode array of 6 Volt types Each diode is connected to the junction between the resistor and the CPU pin the other side is connected to ground Because of this wiring there can be problems with programming parts if the target system loads the control lines with low ohm resistance Also dynamic loads
41. er If there is any difference an error message is raised Only XMega Verify all if the target is not protected the contents of the target s Flash and EEprom are compared to the related buffer If there is any difference an error message is raised With XMegas also the UserSignatureRow is verified check device checks the programmer and also the target If any there are any problems they will be displayed If the CPU is protected only the device ID can be displayed ID 00 01 02 E The check button has the same result as the item check Device in the Device Menu above 12 AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Program Menu ISP Programmer AVR xmega Frog Program Options Encrypt Tools Help program all programs the Flash the EEprom and also the fuse and program all Strg4F9 lock bits in the manner defined at Options program Flash Strg F6 program flash programs the Flash only program EEprom strg4F7 program EEprom programs the EEprom only not in JTAG mode program UsersignatureRow program UserSignaturRow programs the UserRow XMega program Fuses program Fuses programs the fuse bits as defined at Options program Lockbits sare program Lockbits programs the lockbits only erase Device Stra4F5 erase EEprom erase Device erases the entire device but not the fuse bits erase LiserSignatureRow erase EEprom erases the entire EEprom not in JTAG mode fe a4 na
42. eries resistor of a few kilo ohms The reset delay the time a reset stays inactive before the next activation can take place can be extended This is only for special cases The field Programmer Mode is only visible if the selected CPU supports SPI JTAG TPI or PDI programming In this case one of these modes can be selected E LAB Computers AVRProg Software e 15 XMega Options Dialog E Options XMEGA128A1 xmega Prog FussBits 1 wDWPERS 7 WOWPERS wpwPER2 6 WOWPER wDWPERI 5 WDWPERI wowPERO 4 WOWPERO WOPERS 3 w PERS WDPER2 2 WDPERZ woPERI 4 woPERI wnPERO o WODPERO AFF SEF xl useBits READ _ gt WRITE w pyspoN 7 DVSDON BOOTRST 6 SOOTRET zm rm F 4 T3 E 20 BopPDi 4 mBODFDi BopPDOo o BODPDD Bopa cri 45 BODACTOT 4 EESAVE a3 EESAVE BoptEveL2 2 SODLEVELZ BODLEVELT1 1 BODLEVEL1 BoDLEVvELO o BoODLEVELO SFF SFF Xl ap P were Bf JrAGUID w 7 v STASUIDT Jracupe 6 masupa JrAGuIDS JTAGUIDS JAGU 4 JTAGUIDa Jagun 3 gr amp aumps JTAGUID2 2 i JTAGUID2 JAGUT 1 TASUD JTAGUIDO lw 0o 5 JTAGUIDO DA IA FuseBi s 4 UPP2 X Portable in Circuit Programmer with GLCD BitBB1 7 BLBBI BLBBO 6 mBLBBO BLBAIT 5 BBAJ BLBAO 4 BLBAO BLBATI 3 mBLBATI BLB amp TO 2 BLBA TOU ii 3 LB tgo of LBG SBF FF hi La s Fsr F 5 E ASTOISSL 4 R
43. g project path HexFile Name XMega Prog hex m hex Flash The Flash Hexfile with file EEpFile Name XMega Prag eep join Files eep EEprom extension UserFile Name Mega prog usr usr UsrRoW EEprom file with extension XMega UserRow with extens Alsle OlelF e Hl t2 ki tiM N ees otore changed or new project CPU Tests X cancel Test 52 Test megab44 amp TestTiny13 _X cancel Test 53 Test mega8515 1 e Test 53 1 Test mega88 Project Commands Test 8252 Test REC T New Build a new project Test 8252 1 Test Rec 2 Test 8253 Test Timy1 Test 8253 1 Test Tiny15 Test mega128 Test Tiny2313 7 Edit Edit an existin roiect Test mega16 Test Tiny24 sz Edit g p J lisse lior ud JE Search Search project on network Test mega328 Test Tiny45 Test mega48 Test XMega Test megab44 J Test323 Delete a project Load a project Exit this dialog With each project it is possible to store a text comment See Comment dialog below E LAB Computers AVRProg Software e 5 UPP2 X Portable in Circuit Programmer with GLCD Build a new project Select the desired target page of the tabbed notebook Click button New Type the desired name into the field Project Name Click to the field Directory From the appearing dialog select the desired directory Now the dialog for selecting the file extensions and file types appears Select edit extensions and file types The Flash file dialog appears Select the file which contains the F
44. he Boot Options Menu must be started To do this on the Windows 8 desktop the button combination of Win R must be pressed to open the Execute dialog In this dialog the following command must be typed in to start the Options menu at boot time Choose an option Step 2 In the Options menu click onto Troubleshoot Continue 3 Exit and continue to Windows 8 Troubleshoot Refresh or reset your PC or use advanced tools Turn off your PC Tr ou h es h ele t Step3 click onto advanced options Refresh your PC If your PC isn t running well you can refresh it without losing your files Reset your PC If you want to remove all of your files you can reset your PC completely Advanced options E LAB Computers USB Driver e 43 UPP2 X Portable in Circuit Programmer with GLCD ele e la Step4 click onto Startup Settings Step5 click onto Disable driver signature enforcement and Restart L Step6 Choose Disable Driver Signature Enforcement and Enter key to start Windows Advanced Boot Options Choose Advanced Options for Windows 6 Use the arrow keys to highlight your choice Repair Your Computer safe Mode safe Mode with Networking safe Mode with Command Prompt Enable Boot Logging Enable low resolution video Debugging Mode Diceble awtiomaticrestart on _systemfailure n PISAU LAL iy LAWL HHI THA LALIC ODP rer Now the AVRco or AVRprog driver can be installed
45. here can be several directories folders But at least the ROOT folder exists Within these folders there a the stored projects If the arrow points to a folder this folder can be opened with the select key and the included projects are listed An open folder can be closed with the clear key The number right of the folder shows the project count in this folder If there are more than 5 folders the list can be scrolled with the up down keys The UPP2 programmer can use only one directory level This means that sub directories in these folders are not allowed A total count of up to 64 projects and folders can be present and used _ If a folder has been opened with the select key a dialog like the left one Me SAL 128 mA is shown With the up down keys the arrow can be moved up or down nb ii 128 REN FAI D If there are more than 4 projects stored in this folder the list can also be ML mo moi scrolled with the up down keys The clear key closes the opened folder With the select key this one project becomes loaded where the arrow points to Operation Selection The main parameters of the actually loaded des project then are displayed in this dialog On the top there is the file name On the right below the actual voltage of the target is displayed if connected If the programmer must supply the target and the target is connected also its current consumption is shown With the clear key the program returns into the projec
46. ht shows a green the arget connected i Device ID 1E9802 d E downloading can be started CPU name MEGA2561 Device ID The vertical bar shows the download and programming progress USB 2 The Open button opens a dialog which shows all possible firmware update files The filenames start with the date of creation and can be easily located A double click loads the selected file into the download buffer cy A click to the Com port button then connects the programmer s download section to the PC s downloader The downloader checks the file against the info in the programmer If the file can t be accepted an error messages is raised n SB 3i If the file matches the programmer and a connection is established the download can be started with a click to the phone button This process can be observed in the progress bar at the dialog s right side If the downloads hangs a click to the stop button aborts the operation On problems an increase or decrease of the external UPP voltage can help Ww 46 Firmware Update E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD An incomplete download programming normally is detected at reset or power up of the programmer If so the programmer immediately enters the download state and reclaims a new download It is also possible to force a firmware download 1 USB and power supply jack 2 Micro SD card slot 3 RESET button This RESET button has
47. ield Serial Number in ICP ISP This part stays unchanged 2 Anumber in the right field This number can be zeroed with the button Reset Number or preset with a number and the Preset button The count of the programmed targets up to now can be found here 18 e AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Preserve Serial Number If the serial number is enabled then this option prevents writing a new different number into the flash If the target is not protected the internal number in the target is read out and is used for reprogramming the flash This ensures that the number stays unchanged and the old one is re used despite of a new programming of the chip Checksum into Flash While downloading the flash file a 16bit checksum is generated over this data This number is displayed in the field Checksum in ICP ISP This value can be written into the flash by checking the checkbox write Checksum This is done after every programming cycle Note that the checksum contains only values from the original Flash Hex file Additional parameters programmed at the end of the flash by the ISP itself are not recognized Also empty not addressed parts in the hex file are discarded Reset All This button resets all values and options Note all changes are immediately stored But they are only recognized at the next programming cycle The application firmware always has access to this parameters The parameters a
48. inishing the programming of this block In case of a verify error the operation becomes aborted and an appropriate message rises Chip internal ID 2 Xl This ID number is read out of the current connected chip and is displayed here FA Device State Programme CC2430 F128 Mame ISP 3 Debug Prof The first byte is always zero and has no RCE ce AT TOv Ser N m 171FE66A meaning The second one represents the Tm Des SEA Eyes iod CPU revision 01 and the third byte EEpromsize Prod 2008 03 20 shows the Chip ID 85 for the CC2430 Device state programmed um Firmware 4 family Signature 00 01 88 Update 06022 i Attention Please note that a wrong chip ID is always a result of a defect programmer cable or CC23130 128 i board connection Of course a defect chip Flash used 23373 bytes can also be the reason for it BSE use A false chip ID should never be ignored o beeccnius But the reasons for it should be carefully researched 32 MHz fe 31Vo 33 Volt E 200 mA g 50 e Addenum Chipcon E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Chipcon Evaluation Boards CC2430DB This board has two 6pin headers which provide an access for external programmers But the UPP programmer can not directly plugged into the board In order support programming of this board by the UPP there is an optional accessory for the UPP which consists of a small adaptor board This
49. is not included but must be ordered separately ord 2109 The adaptor must be connected to the evaluation board like the pictures below show SOC BB his board has one 10pin header which provides an access for external programmers But the UPP programmer can not directly plugged into the board In order support programming of this board by the UPP there is an optional accessory for the UPP which consists of the small board SOC BB Adaptor This is not included but must be ordered separately ord 2123 The adaptor must be connected to the evaluation board like the pictures below show E LAB Computers Addenum Chipcon e 51 UPP2 X Portable in Circuit Programmer with GLCD ATS9LPxx Basics The UPP2 X firmware also supports the in Circuit programmable Atmel Chip family AT89LP2052 und 4052 The difference to the AVRs and 89Sxx types consists of programming connections of the CPU with in circuit programming Connectors The included 10 wire ribbon cable must be used The connections of the receptable header on the target board must be done in a way like the schematic below shows it MISO VCC SCLK MOSI RESET GND SS N C N C N C TopView header on the Target Attention The PIN2 must be connected with the positive Target supply VCC PING must be connected to the ground of the Target Connect PIN5 to the RESET pin PIN3 to the SCLK PIN4 to the MOSI pin PIN1 to the MISO pin and PIN7 to the oo pin of the target
50. ith PWD or fai Aadkev disabled with the button Encrypt w o PWD edtPassword lf the target programmer is already connected to this PC the 450378C8 password can be requested With the button Read KEY the va Rese password is read out of the programmer and displayed With the button Add Key the new password can be appended to the password pool 6 Encrypt wo PWD Encrypt with PWD This file type can be processed with the program PackProg exe and also with all UPP programmer types 22 AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD pack Project Mode This option builds a packed but not encrypted project which only can be processed with the PackProg program and an ISP3 USB programmer Also the UPP programmer are able to load and process these files but without a password or a connection to a specific destination programmer ISP3 UPP Packfile Extension a The menu item opens this dialog UPP File extensions Filename The dialog serves to set the file extension The extension can none Test mega16 include a number pkO pk9 for a better handling with the UPP PKO programmer or a simple pac The choice must be done with pki one of the file number buttons y Extension pac DockorDLL The checkbox Dock or DLL selects availability of no more than ish UPP2 special 10 projects on the MMC card pk4 pK5 PK6 pk pk8 Ka El P store file Dialogue when the Dock Option is se
51. k dsPwrDown dsPwrErr dsFalseTyp dsProtect dsNotEmpty dsVerifyErr dsFileError dsTimeOutErr 9 dsCommError 10 dsNoProg 11 dsNoProj 12 dsFwLost 13 dsNotfound 14 dsCalReq O N OO OF D O Networks Operation successful finished No Target voltage Target too high or too low Wrong CPU ID found Target is protected by fuses Target is not empty after an erase Target or Programmer found a Verify error while programming N A USB driver returns a timeout Communication problem with the Programmer Programmer not found Project not found Programmer returna an invalid firmware File eg Hexfile was not found Programmer returns a lost or illegal calibration Some networks e g Novell use DOS 8 1 style filenames and cannot handle the Project File Extension ispe This can be solved by changing the corresponding entry in the INI File of the programmer ISPISP 3 ini Example Settings ProjExt isp Alternative programming A Pack file can be created that conatins all the project information This can then be used with the PackProg program or transferred to the UPP SD card for Stand Alone Mode PackProg is included in the UPP2 X programmer package and described later in this manual This option is also useful when creating a file to send to another location for programming E LAB Computers AVRProg Software e 9 UPP2 X Portable in Circuit Programmer with GLCD Button Bar For fast access of the functions with
52. lash Buffer into a Save EEprom Buffer to binary File E binary file A File Dialog is opened ea Save EEprom Buffer to binary File stores the Flash Buffer into a dmm e EUM binary file A FileDialog is opened Save EEprom Butter to Hex File Save Flash Buffer to binary File stores the Flash Buffer into a hex file A File Dialog is opened pop CE e search programmers y USB devices only Save EEprom Buffer to binary File stores the Flash Buffer into a Exit hex file A FileDialog is opened aongdgso OC 94 De OF OC 54 D m 00 cn a Search Programmers is a support function which closes the currently opened programmer connections and then tries to find all connected programmers See separate section below regarding Multiple Programmers USB2 devices only disables the global programmer searching and enumerates USB2 types only This avoids long timeouts with the COMport searching which can take several minutes if a Bluetooth virtual Comport is installed on the PC 4j The Project Open button opens the project dialog A new project can be built or an existing one can be zx opened and loaded c The Reload button loads the previously loaded Hex Files again o The Flush button clears the Flash Buffer and also the EEprom Buffer completely to FF o The Device State button opens the Device State dialog Description see above E LAB Computers AVRProg Software e 11 Device Menu E E LAB ICP ISP Programmer A
53. lash contents Finally the CPU type must be selected from the CPU Select dialog Up to here the selections are a must The following dialog for selecting an EEprom file can be ignored if nothing exists The new project must be stored by the Save button File Extensions v hesadecimal C binam Bep C binary EEprom EEprom UserSignature Ri ow usr LUserRow G hesadecimal C binary Dialog for the file types and extensions of a project These parameters are project related and must be defined for each new project Editing an existing project Click the button Edit The program is now in edit mode With a click onto the items and fields the accompanying dialog opens After all changes are done store them with a click onto the Save button Moving a project from one page to another page of the notebook is very simple Select the project enter the edit mode switch the notebook page to the desired page and then store the project with the save button Dialog for CPU Selection Comment Editor AVR aTagsiP LPc2000 MsPa30 s6RF401 30CAN32 90CAN64 J0PWMZ 3 9081200 9052313 9082323 9052333 9052343 9084414 9054433 9084434 9088545 9088535 90USB128 90USB64 ATA6285 ATA6289 MEGA103 MEGA128CAN MEGA15 MEGA161 MEGA162 MEGA163 MEGA164 MEGA164P MEGA165 PAMESA128 MEGA168 MEGA1280 M MEGA1281 6 AVR
54. lected ISP3 UPF Packfile Extension LIPP File extensions Filename f none pk8 Test mega16 eevee ese C0 0 0 iS t pko pk8 Extension pk PKA pk2 pkB The UPP version D with Docking Station stores and handles pk3 Wo more than 10 projects These file types can be processed with the program PackProg exe and also with all UPP programmer types ISP3 UPP Packfile Extension m store file Filename i Test megat15 Extension M The Checkbox UPP2 special allows to build nearly any file L extensions for example axL oder 3zL DockorDLL But then these files can only be used in conjunction with the UPP2 special UPP2 X programmer extension L ar F am urr HE store file Common Procedure Create a project as usual or load an existing project Select the proper setups and properties for this project as usual Select one of the three file modes heavy encrypted encrypted or packed The two encrypted types provide a password protection so that only this programmer which supplied the password can process it Click the button Encrypt or one of the file number buttons Copy the generated file to a storage media 7 Ifthe receiver doesn t own the program PackProg exe also copy this tool and this manual onto the media 8 Ship the media to the receiver p pu onm E LAB Computers AVRProg Software e 23 UPP2 X Portable in Circuit Programmer with GLCD Shippi
55. ll calls of AVRprog command line switches can be appended These are USB2 Only search for devices with USB2 e Automatic Device erase p Automatic Programming Start r Automatic Target Run c Program exit S No visual error messages are generated Instead the errors are written into the file ICPISP err This file then can be found in the project path or in the program directory of no parameter specifies the project path u0 A standard Pack File will be build u1 An encrypted Pack File will be build gProgSerNum f more than one Programmer is found then the Programmer with the serial number ProgSerNum is used The order of the switches in the command line doesn t matter The internal processing is always done in the above order The switches must be separated by spaces A switch must not contain spaces Example C pppp AVRProg exe ProjectName USB2 p c If the switch p is active a previous erase e is not necessary because a programming process always first erases the target If the switch c is active a previous Target RUN is not necessary because a program exit also releases the target With the parameter ProjectName there are 2 possibilities You can pass the complete path and name of the desired control file like C files hex myprog ispe Or only the name of the project is supplied like myprog 8 e AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Return Codes dsO
56. marquee mode The device is internally Li Po battery powered in portable mode The connection to the PC is via USB2 54 e Other E LAB Programmers E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD TARGET 5m 5 om REMOTE made in Germany roduction roarammer SPI JTAG TF1 POL P DE BUSY RESET e fl E q E LAB Computers TARGET UPP1 P Production Programmer SPL JTAG TRI PDI UPP1 P and UPP1 PR The productions implementation of the UPP1 X In top hat DIN rail case Can be controlled by a PC with USB or Remote controlled by our DLL version P or with wire control version PR Other E LAB Programmers e 55 NOTES NOTES NOTES NOTES 1998 2015 E LAB Computers Grombacherstr 27 D74906 Bad Rappenau Tel 07268 9124 0 Fax 07268 9124 24 Internet www e lab de e mail info e lab de
57. matic where the RESET output of the programmer is used to switch a 12V source TPI DAT TPI DAT PIN1C PIN3 C TPI CLK TPI CLK PIN TARGET VCC JAL 5 0V Rz FLEN TINY4 5 9 10 20 Programmer ana GND TLC3702 1 TINY RESET Pin GND CMOS Comparator with Push Pull Output 48 Addenum XMega Tiny4 5 9 10 20 E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Chipcon Basics The UPP2 X firmware also supports the in Circuit programmable ZigBee Chip family CC1110 CC2510 and CC2430 from TI Chipcon With the creation of a new project for the CC2430 in addition to an existing Flash hexfile also the correct CPU must be selected CC2430 F32 CC2430 F64 or CC2430 F128 The generated supply voltage for the target can be set between 2 7V and 3 6V if the programmer has to supply the target A valid CPU clock must be selected either 16MHz or 32MHz There are no fuse bits but a lock bit block The meaning of these lock bits can be found in the datasheet of the CC2430 IEEE Address Chipcon IEEE Address T _x Because the CC2430 is a ZigBee device the controller must have a fixed and unique address IEEE similar to a MAC address with Ethernet Chipcon defined that this address 8 bytes must 2 TI 66 55 44 33 22 11 reside in the upper most and last 8 bytes of the flash memory With the F128 this is 1FFF8 1FFFF IEEE Address in chip Next IEEE Address to pr gram A5 77 66 55 44 33 22 12
58. mpossible So it makes sense to use the AES encryption at least for external production With in house production the standard PAC file is sufficient E pack Project ISP 3 UPP L 2 Standard PAC file pack Project for ISP3 X UPP 1 X UPP2 X AES PAC file P3 X UPP1 X UPP2 X File Encrypto To create an AES PAC it is mandatory to have an X AES Encrypt Mode programmer connected to the PC XE a ja a A a E Vigo CIR RONER FERRO NIIODeighIUSP Update The dialog for creating of an AES PAC file provides three additional encryption options different modes SR RES A Standard Encryption only AES used pem nac B Encryption with password Sernum used Here the USE Teepe ag Det KEY serial number of the target programmer is needed It Gg durer will then be integrated into the encryption and checked by the target programmer The target programmer is PE not needed here only its serial number C Quantity limitation Sernum Quantity used Also here 5 Read KEY the serial number of the target programmer is necessary Furthermore the maximum allowed Quantity of program devices limited to Execute programming cycles are preset If this number is o not usable X ccs reached exceeded the programmer ignores further programming attempts Parameter list of isp3 3 Project Name The AES properties of a PAC file can be requested with File created 2012 8ep 01 00 58 36 the tool PackProg by File Info from the target File
59. n adaptor from E LAB UPP2 X to ChipCon SOC BB Evaluation Board not included Optimally suited for production and service purposes CONNECTIONS Windows XP Vista or Windows 7 8 is required An USB1 or USB 2 port is required With a USB 1 port the programming time will be increased somewhat E LAB Computers Overview and Features e 3 UPP2 X Portable in Circuit Programmer with GLCD The included USB cable must be connected to a free USB connector of the PC The USB drivers must be installed once in order to work properly See the USB section at the end of this manual The internal voltage is 3 3Volt Don t apply high loads at the target pins used for programming No capacitors are allowed at these pins Capacitance at the RESET pin must not exceed 100nF With XMegas there must be no capacitor connected to the Reset pin Pullup minimum 100kOhm The definition of the 6 pin target plug 0 1 inch pitch male header dual inline conforms to a recommendation from Atmel The TOP VIEW onto the connector of the Target is below CPU MISO TxD o1 20 VCC PDI DAT o1 20 VCC 3 3V CPU SCLK 03 40 CPU MOSI RxD o3 4o RES o5 601 GND RESET PDI CLK o5 60 GND Top View AVR SPI header Top View XMEGA PDI header Pin1 of the 6pin plug of the programmer can be located by a small triangle on the front of it A misalignment of the plug leads to malfunction and can possibly DESTROY the unit The working voltage of the Target CPU must be in the range of
60. nadvisable to check this Investigate why the wrong ID is being returned Auto release Target releases the RESET of the CPU automatically after programming Program Fuses should always be checked Fuses are essential for the AVRs Program Lockbits also should be checked But it has no meaning if no Lockbit is activated The item Security defines the lockbits for the protection modes LockbitO or Lockbit1 by themselves make little sense A complete protection of the device can only be achieved if both bits are active checked The BootLock bits should only be activated if the boot section in the AVR is used for booting self program The exact function and meaning of the fuses should be observed in the CPU datasheets The Fusebits group define various functions as defined by particular CPUs e g Mega128 the fuse programmable internal Reset time With other CPU types the internal oscillator or the Brown Out can be defined Because each CPU interprets these bits in its own way it s impossible to make a general statement here Some fields can be hidden if the CPU doesn t support some fuses otherwise the supported fuse bits can be changed by the user Unsupported fuse bits are disabled An empty field means that this option is disabled 1 A green ok means that this option is set 0 ie enabled 14 e AVRProg Software ELAB Computers UPP2 X Portable in Circuit Programmer with GLCD Attention within the fusebit groups some CPUs have a
61. nd 64bit e Small lightweight and handy unit 110x55x20mm e Supports all SPI JTAG PDI and TPI programmable AVRs e Supports the SPI programmable AT89Sxx types e Supports the Atmel AT89LPxx family e Supports the ChipCon CC1110 CC2510 und CC2430 family e Supports the serial flash SPI Flash families AT25DFxxx S25FLxxx and SST25VFxxx e Programmable supply voltage source for the target system 30mA 300mA 1 8 5 5Volt e Extremely fast programs a full Mega128 in 3sec JTAG and a Tiny44 in 1sec 16MHz e Self update feature via the PC e Very well suited for production programming by using highly secure AES encryption e Also processes AES encrypted project files PAC onboard e Supports programming cycles limitation with AES PAC files e Comprehensive and convenient graphical menu system on the programmer s display Showing projects directories folders project properties and actual target parameters e micro SD card included FAT16 up to 2GB and FAT32 up to 32GB and SDHC are supported e External mini power supply for USB jack with 5Volt 1000mA included e Car adapter for cigarette lighter included e Internal Battery Pack 3 7V 700mAh included Option 3 7V 1500mA available e Option adapter from Atmel 6pol SPI to Atmel 10pol programming connector not included e Option adapter from E LAB JTAG to Atmel JTAG programming connector not included e Option adaptor from E LAB UPP2 X to ChipCon CC2430 Evaluation Board not included e Optio
62. ng nevertheless one can continue with programming Bluetooth Interfaces many of these interfaces emulate a virtual COMport in the PC If the programmer software in Programmer Options sets the interface to automatic then in addition to the USB drivers also all COMports are scanned This can lead to unexpected long wait times until the Bluetooth returns with a timeout regardless whether any programmer is connected or not In this case the programmer port selection must be set to USB only State messages in Stand Alone mode without a PC connected the UPP programmer works only with its MMC flash card The state is displayed optically Display and LED and by beeps See above Hard Reset in all modes the simultaneous pressing of both arrow keys resets the programmer The UPP2 X has also a reset button at the case Wake up of the UPP2 X A short click onto the the RESET button the devices starts up Battery state In the idle state oft he device the battery state can be displayed by pressing the C button Shutdown Simultanously pressing the S and the C button switches the device off 28 e Arbeiten mit dem UPP E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD PackProg The main program of the E LAB programming system the AVRprog exe described in the preceding sections can be used for all kinds of work 1 for creating projects with Fuse and Lockbits defining editting of the Flash and EEprom files etc for creating
63. ng this file s via email is also possible In this case it s a good idea to zip all files for secure internet transport Encryption The encryption feature uses a secure algorithm Unfortunately up to now there is no absolutely secure uncrackable encryption But the time investment to decrypt the file is so high and expensive it s cheaper and faster to completely start an new program from scratch Password The program PackProg exe on demand reads out the internal password of a connected ISP 3 programmer This password is only valid for this programmer and is not portable to other programmers Because of this it s assured that programmer files containing this password can only be programmed with this programmer Password creation 1 The chip or board programmer must install the program PackProg on the computer which will be used for the chip programming To do so the file PackProg exe must be copied into the desired directory 2 The program PackProg exe must be started The UPP2 X programmer must be connected to this PC 4 The password displayed with the menu item Setup request Password must be passed to the creator of the programming files packed or encrypted projects 5 The creator then inserts the password in the program AVRprog exe into his system a Start of AVHprog exe Open the Encrypt Pack dialog with the menu item Encrypt PackProg Encrypt Click the button Add Add any comment or name into
64. nnected programmer device programmer type serial number date of production firmware revision and the last firmware update The last item is important because all update files start with their date of build yy mm dd In the dialog above this is 2011 Feb 21 So you can easily find out whether a new downloaded file from the WEB is the same or newer than the one already downloaded in the ISP The download of an update into the ISP is described below in the section Firmware Update at the end of this manual USB power supply For powering the target board the UPP2 X has an internal step up voltage converter which generates a voltage of about 5 6V from the USB voltage 4 4 8V So an external power supply is not necessary provided that the target load is less than what can be provided by the USB port hub or the internal battery See the section Target Power Supply below for more discussion on power supplies E LAB Computers AVRProg Software e 7 UPP2 X Portable in Circuit Programmer with GLCD Call options Command Line Parameters Start with the Windows Explorer If you make a link in the Windows Explorer from the file extension iSpe to AVRprog exe a double click to a project inifile xxx ispe in the Explorer automatically invokes AVRprog exe which by itself reads the ini file and loads the complete project Start within the E LAB IDE PED32 The program start is already implemented into the IDE Command line parameters With a
65. or Error xx SF start Programming response ok or Error xx ay start Verify all response ok or Error xx ovr start Verify Flash response Dk of Error xx R 3 response ok or Error xx xi Reset target CheckISP3 R Release target CheckISP3 response ak or Error xx T Telnet close response ok ay exit response ok E LAB Computers Possible error messages are PowerDown Voltage False Typ readable Protected notEmpty Verify File TimeOut Comm noProg noProj Firmware Target has no power Target voltage too high or too low Target has the wrong ID or ID not With a Verify operation With a programming cycle Verify Error while programming File not found command F Communication timeout Communication problem Programmer not found No project selected Programmer lost Firmware PackProg Software e 35 UPP2 X Portable in Circuit Programmer with GLCD Working Stand Alone The device provides four keys up down select S and clear C graphic display leads the user through the dialogs and operations After the power on the main screen appears on the display The flash card symbol with the means that there is no card inserted or the card found is defective When the select key is pressed the device requests a valid flash card The flash card symbol now shows a valid card With the up or down key the
66. re stored into the last 16 resp 32 bytes of the flash The project name has a lead in of proj The serial number has a preamble of ser The number is always the fourth and third last byte The checksum if present always can be found in the last 2 Bytes of the flash The order of the serial number and the checksum is loByte hiByte Sample _ m bo R h Ia Fi un Dmm co j LJ mc Mo n ie taj on 6 aV amp i serit LSB as ser number checksum h3 e aoe Attention with programming from out of the flash card each successful programming cycle writes the serial number to the card This means stress to the flash card and may cause early failures To avoid this you should use newer and better cards with the x80 or better soeed grade These guarantee a 10 year life cycle for write cycles E LAB Computers AVRProg Software e 19 UPP2 X Portable in Circuit Programmer with GLCD Project Download The UPP programmer offers several modes While in PC direct mode a MMC flash card is not necessary all other modes need a project loaded onto the MMC card There are several possibilities to write projects to the MMC card Flash card Reader Writer On the PC the UPP is visible as an additional drive The software creates a packed or encrypted project file by loading the project Then open the Encrypt Menu and select pack Project or Standard encrypt This opens a dialogue to store the files Tools
67. t selection dialog With the select key one out of four operations can be executed for this project E LAB Computers Stand Alone Mode e 37 UPP2 X Portable in Circuit Programmer with GLCD Project Info Pros ec te AEC PAC PTT In the project info dialog the project or file name is shown In the same line the programming mode is displayed in this case PDI Uii sp ni Below there is the info about the CPU Device type and which parts of it gase ues Foie must be programmed On the right the voltage and maximum current is shown USROU ses which the programmer must supply the target a 5s pom P Here some options are displaye eg AES encryption and quantity limits LOLK yes Eee natura If the UPP2 must supply the target so these values are checked For example it BES PLD Gant ita Must supply 4 0Volts and the target has its own supply with 5 0 Volt then a warning 1 3 pcs left is raised with a programming verifying or erase operation Power Error This can be ignored with the select key and the operation continues Program Prosect program program EUR JTBB PKI JTE 2 CPU MEGAIZE _ OK FL I L ipee dl Urong ID FLASH if ss al Press ang key If the programming cycle was started with the select key so some checks follow The necessary voltage is checked and also the ID of the target if applicable Then the communication is checked If all tests passed the programming screen is shown with a gauge At
68. table in Circuit Programmer with GLCD As an option an external power supply with 5 Volt can be connected to the USB jack This supply is included Because of the internal battery the programmer can always deliver up to 300mA to the target if the internal battery is full or nearly full Whether there is an external power supply connected or not The programming connector of the UPP1 X device also provides a pin for an external power supply It can be connected to a power supply which can supply 5 9V DC up to 500mA Pin6 Ground Pin10 can be used as the external positive supply input USB DRIVER Windows compatibility For a reliable working with a USB Programmer and a Windows system at least Win98SE is necessary Win95 NT3 4 and standard Win98 don t support USB Also with Win98SE one must be careful Not all versions can handle USB in a reliable way Because of this E LAB can not guarantee the functionality of the USB programmer with Win98SE So for the USB versions only XP Vista or Windows7 should be used Basically hard and or software development systems should only be operated with XP or newer These systems are very stable now and don t show the previous problems of restricted resources and handle count like their predecessors Driver locations E LAB programmers with USB interface like all other non standard USB devices need a special USB driver This driver is included in the installation All USB 2 types have a common speci
69. te 1 Cal Byte 2 Cal Byte 3 buttons is dependent on the settings of the CLKSEL fuses Bd m zd us With the edit field address the target address v 1MHz C OZMHz C 4MHz aMHz in the Flash for this byte must be set With CPUS up to 64kByte Flash size this can be each value 0000 With CPUs 64kB Flash mega128 the selected address must be even Write Calinration Byte t DODIFFF address With newer AVRs and the use of the standard RC oscillator a Calibration Byte handling is not necessary These devices automatically read this byte from its EEprom memory into the OSCAL register Attention All Fuse and Lockbits are low active This means if the data sheet shows a zero 0 for a specific bit the corresponding field in this dialog must show a green ok Then a 1 bit must show an empty field Atmel always uses negative logic for Fuse and Lockbits With the field ComPort the interface to use can be selected With an UPP2 X the setting USB only should be preferred If V24 serial programmer types can also be connected to this PC automatic should be selected The field Reset options defines the controlling behaviour of ISP to the target CPU Normally all 3 items are inactive For special target hardware the reset level can be inverted Push Pull reset makes sense if the reset input of the target CPU is burdened by other electronics e g R C combination But here the loadings must be reduced by a s
70. ters USB Driver e 45 UPP2 X Portable in Circuit Programmer with GLCD FIRMWARE UPDATE The latest E LAB programmers support downloading of new firmware into the programmer You can determine whether your device has this feature if you open the Device Status dialog If this device is updateable then in the line Update a number appears which shows the current firmware date which is also a part of the update file name With a firmware update of a programmer the entire program Flash is erased except a small partition which is called boot sector New firmware for the programmers can be downloaded from www e lab de These programs cannot be executed on the PC but must be loaded into the programmer USB version file yymmdd UPP2 X pupd or from WEB in file UPP2 Xupdate zip This must be done with the menu item Options Download new Firmware Please note that all update files must be placed into the folder ISP Updates below the programmer s home directory Otherwise they will not found The menu item opens the dialog described below ISP UPP Firmware Loader Dialog Er The group File state contains the state of the loaded file filename file size and info about the expected target CPU Fije state Target state W ated Firmware 110427 The group Target state contains the c state of the programmer 110427 UPP2 USB 101 pup e Mod gize 253952 Bytes e 2 m Ifthe traffic lig
71. the main window If more than one programmer is connected and found then this dialog is raised Because only one programmer at a time can be used the desired one must be selected from the list Project Check _ With the Info button the most important parameters and properties of the actual loaded jisp3 x project can be displayed File created File downloaded CPU Name CPU Clock Flash to program EEprom to program UserRow program Fuse to program Lockbits to program Auto release target PDI programming Target powered by program serial number preserve serial number File protect Quantity limit 2012 Sep D1 00 58 38 2012 Sep 06 XMEGA25BA3U 32 MHz Two items of project information are also displayed in the 185780 bytes nane none yes yes yes ye ee G ISP UPP 3 30 100mA max no no AES Password Quantity 10 main window The Battery symbol is visible if the programmer must supply the target with a voltage current The lock symbol is displayed if the programmer must lock protect the target Programming parameters and option of the loaded project 30 e PackProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Programming in direct Mode This transparent mode controls the UPP 2 from the PC und supplies all data without the need of a lash card D Device Check With this button a check is done of the programmer and the target devic
72. the mouse the program has a bar with speed buttons These allow fast working without the use of the menus Action none 15 mE f Firmware revision display of the actual action release of the reset of CPU and restart abort of the actual action MED Flash and EEprom Verify subsequent Fuse programming ecce eee ee Flash EEprom and Fuses programming EE Chip erase State of the programmer and the target D flush of the Flash and EEprom buffer E E E reload of the Flash and EEprom buffer Se ee ee another resp new project load Download button not shown above is used to transfer projects to the SD card see section below 10 AVRProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD Functions of Buttons and Menus Normally the use of the menus is not necessary All standard operations can be started with the speedbuttons by a mouse click Specialized operations can be found only in the menus File Menu SPV Boe cu Edit Load Project opens the project dialog A new project can be File Device Program Options Encrypt build or an existing one can be opened and loaded Edit Load Project Save Project parameters stores the actual parameters to the isp Save Project parameters file Save Flash Buffer to binary File Save Flash Buffer to binary File stores the F
73. ther PCs can remotely control a programmer via Telnet command strings Setup Info Im This menu item enables and disables the request Password PackProg Telnet Server Calibrate download new Firmware The active Telnet Server is displayed in the NT 8 amp Telnet active main window Telnet config Telnet info auto search programmer Telnet config The Telnet Server needs an USER ID and a password If a Telnet Client another application connects to the Server this Client must provide the correct ID and password This disables unauthorized Telnet Clients so they can t take control of the Server or influence it aix Telnet Server Corifiguration User ID rh Password xe Server Port X close Telnet configuration Set security and access values An invalid request made with a Telnet tool looks like this Favorites Ee AVR y PackLoader2 Trying 192 168 1 2 PORT 23 Connected to 192 168 1 2 E LAB PackProg Telnet Server Anwendername rh Paliwort Ung ltige Anmeldung In Telnet mode PackProg uses Transparent Mode 34 e PackProg Software E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD The menu item Telnet info shows the Telnet command list Information 1 Telnet communication 185 Search programmer response ok ar Error xx FFname load File fname Fesponse nk or Error xx mc Check target response ak
74. ust be created one of these dialogs opens UPP Packfile Extension UFP File extensions Filename UFP File extensions Filename s pkD dds10 s ano lend dds10 oki tersi EEUU E Extension f sni Frea Extension C pk2 pac enu an C enA m C pk Dock or DEL ESL MEE 7 C pk4 C end C enB Pi pk5 C end C enG D C pke Fer Ua no Filenumber A od C en enE a pkg Hl En i al pkg set Filenumber Cent set Filenumber 26 e Arbeiten mit dem UPP E LAB Computers UPP2 X Portable in Circuit Programmer with GLCD If the button no Filenumber is pressed a standard pac or enu project will be build If the button set Filenumber is pressed an encrypted file gets the extension en0 and a packed file gets the extension pkoO The activated radio check defines the last character of the extension and this character now absolutely defines the position of this file in the internal file list of the UPP which furthermore defines its relation to the rotary switch The UPP rejects files with extension numbers when there is already a file on the SD which has the same extension number These file types can co exist DDS10 pac DDS10 enu DDS10 pk0 DDS10 en1 etc Programming using the SD card There is the additional possibility to use the PC for programming by using one of the projects which are stored on the SD card of the UPP To do this the download dialog below must be opened
75. without any error message Please note that the included start Window Normally Jescription Allows drivers containing improper sigi EXEs must be started in WIN7 mode 44 e USB Driver j 1 ELAB Computers UPP2 X Portable in Circuit Programmer with GLCD Installing multiple programmers The E LAB programmers are individually registered by Windows If the very first USB programmer becomes registered now Windows at least knows this SVOISIOTUD DG of ISP 3 or UPP of programmer E Further new devices normally show this dialog at the first plug in and then automatically become registered ISF USB Programmer But with some system environment it s also possible that Windows requests the location path where the driver is located Neue Hardware gefunden Installation De installing programmer drivers Basically it makes no sense to de install drivers for the E LAB USB programmers because these drivers are only loaded temporarily if a device gets connected So the system is not loaded if no device is connected But if it becomes necessary to de install USB drivers this must not be done manually Only this driver where the related hardware is connected can be de installed To start de installation at first open the device manager of Windows With the help of this tool the driver can be de installed Other Windows utilities offer a so called deactivating of drivers which has nothing to do with de installation E LAB Compu
76. y symbol means that ISP must supply the target system Both symbols belong to the 2 actual loaded project in the PC program E LAB Computers AVRProg Software e 17 UPP2 X Portable in Circuit Programmer with GLCD Target Options Dialog This dialog has two jobs 1 Store program of additional data into the Flash of the target 2 Serial number administration The caption shows the name of the project present in the PC Doar 2 xl Projectname in target If a project name is programmed into the target and it is avr evaboardi v write Name readable it is displayed in this panel The check button write Name shows the state of this option Gere numberiterget I ie NU TES Serial number in target shows the read back serial number ab Nn P IAS EET from the target if any The check button write Number shows uses the state of this option Seral number in LIPPIEBSE lab o Not Preset Number Reset Number M Preserve Serial Number Serial number in UPP ISP shows the serial number in the ISP and PC It s incremented after every programming With Preserve Serial Number the number in the Target is Reset al read back and used for the next programming cycle s Risks Reset all resets all options also the serial number v SP options CheckSum in target ISP options enables or disables all options AB M write ChekS

Download Pdf Manuals

image

Related Search

Related Contents

Smart Technologies 280 Security Camera User Manual  3. FreeView  Aquacom® MK-7 Buddy-Line User Guide  ICF-C1T - Sony Europe  Bosch GSR 10,8-LI  取扱説明書    Akasa AK-FC-06U3BK fan speed controller  Manual del usuario  陸 上 自 衛 隊 航空機等外注整備共通仕様書  

Copyright © All rights reserved.
Failed to retrieve file