Home
Using FlashRunner - Texas Instruments
Contents
1. coer al T sre the coment enhanc tn ater congerie pic an wy tinea oni an or sede WEN Pa tan ae lev natn tere lacing rir and shoud erly Pa such oman ae and Ot idee apeclc apii Lom ofa mrt re acd wem py gorteen escena tering al of prod geom Tanne ay Tescndiie Ex fr thei and aco uim T pecan aod pte eng on paraang Tl eos rol represent al any tance ee xpos ar mateg rale er T gant o Fay wor rhs socia ay common ache Sr anh ducto used rao plished by regain Vr ey adum of serves ies ro ete crue Tt u tarana tra riy m ers Us of ec domain may repe urn rna Rid py uda ihe pont ster proe he tr py cr Kara fam naa he peo oe ete propery el TE Regie Ti dot Soka oa shuns perma on V a amd al ciere Wis d Roter Reucion o tis ih maraton am Star and busines Te vapor latie fo ach ocean Iara parie vay o Sf tral cn Rio Wenceslas Se ine pac prt en etre sty Siracusa were are hei pout iremos be np Sete death er the pars nave cct an aren gering nh is ues eps have Sorry npe rte ft
2. password wil be sent otherwise pw tength byte wil be ransmited User defined password ROMBACK command is used to send back to ROM mode when a customer fmware is running on the device The command device 18 and pw ara user definable Moreover pw is optional and f no password protection desired then the requirement for pw Ignored by assigning the 0 value to pw length Example for non password implementation of ROMBACK command ROMBACK 09 100 UCDS0DOISO 1 02090707 were the 09 command resets the device without he need for a password his command must be defined in the source cade of the pre existing 100 the delay timo to allow device o enter ROM modo UCDSOODISO1 L0 2I090707 is the Device ID of the pre existing femwaro on the device obtained from Device GUI as shown below Bea Cu Figure 19 Reading UCD Device ID using UCD Device GUI Examples of ROMBACK command with 1 2 or 4 byte password implementation shown in table below ROMBACK 26 100 UCD300UISO11 0 2 000707 4 524129078 ROMBACK 25 100 UCD30001S0111 0 2090707 2 3458 TPCMD ROMBAGK 24 100 UCD300DISO1 1 290707 1 12 Password Command Password Byte Option code Bysi Eyez Bye3 yer 1 AA z pg Dg Un 4 3 DTE 90 CA Ui NOTE In order to implement the ROMBACK command successfully The Device ID of the pre existin
3. i reproduction witout nd i accompani y a kasod warn conor iat end nace not responsi d ate frac aed locumenatonrtrmatan af it pres may suelo Ress oT components or senes ih dilereni vom or beyond Ie parameters stated by TI or at componen or serice te a tarta nd any orca waranle or e TI component or Seve andi rand decal buses pace lina respon or ale o any such Buyer acknowledges and agrees al 1 sole respon or conplaace wih a leal regulary stt elled eeuemenis is products and any ol Ti components t any aptcsten eed or at may primed by treats and aye Dal hat necesse expr c cese and implement sequat uin nteiale dangers cons quences I aures ont aes and me cansequerces lesen e bend olla Pai ilt caue amm ana take approprater medalacione Buyer wi ney Tan ls feres taee gual any damages ars auo vae any T component in sae In same cass T components may be poate specie to lacte app amp catons With such components TI goa i lo hop enable coner t des and ee our end od olore thal Het apple clonal ste Sardar suc componen suec v ese lame NATL components authored fr use FDA Clas M or areal equipment unes auod ates ol he pre ave exerted a special agreement special governing such use Ony T co
4. programming has been executed or not Ia valid Checksum was writen during fie generation step then te device wil be put in Flash modo aftar successful programming If an invalid Checksum was writen uring xo generation step then the device wil stay in ROM mode after successful programming There aro several reasons related to set up which can cause programming to be unsuccessful A cll is provided in able below for trouble shooting purpose Reason for unsuccessful programming Troubleshooting Guldaing ROVBACK command PaseWord e conect Use corect password To stg rmuate In o device DEY TS PATA T ROMERCKIOmasTI freske Um or wT UHR COGS TNT sicnt asta reset according to Seaton 4 Tn is document ROMBACICEOTGI S ROUGE WSBT Aas ROMBACK statement in SCRIPTO FRS Tie device tobe programma in Flash mode DEVICE ID n ROMBACK conect Use area DEVICE TD acanimg o penia m In ROMBACK statement usd Dewcs TOSETOEV Use eriy vali Device names UCO3020 UCDSIZS and UCOS 38 m TESETDEY statement rame er SCRIPIOFRS Change Scroll same To SCRIPTO FRS ne FRE name m SD cad dier nar TET Change FRE name im E FRE the name script tle TPSETRC statement te 10 match fe stated in SD card 2s is nor properly imtai d or too Chedk cemaclbr Insaton or Cw mal value 1o supp
5. 2012 Figure 22 FlashRunner Control Panel ater successfully sending FRB fie to SD Nole The flename of FRE fie installed in the SD card must be the same as the specified in the TPSETRC command ine of the SCRIPTO FRS script fle Example TPSETSRC FILE PFC_1 FRE Next Click Send Scrip In the pop up window browse locate the SCRIPTO FRS script fle created in section 2 34 and cick Star mem Figure 23 Sending seript fle SCRIPTO FRs fie to SD card using FlashRunner Control Panel Once again after succassful execution of this step a message is displayed Click Exi After this the FlashRunner unit withthe SD card is ready to perform Standalone programming of UCD3ex devices Copyright 2012 Texas Instruments Incorporated Tous Using FlashRunner FROSTXIO to Program 0 0302020283040 and UCD3138 canis SEUASSA August 2012 23 6 Additional Notes The Flastiunner unit 1s provided with all the censes and algorithm files related to programming devices pre installed in ne SD card at the appropriate locations TLDALG and DEFAULTALG fles must be present inside the ALGOS directory inside the SD card Type FSCO ALGOS command in Control Panel and enter the ALGOS directory of SD card Next type FSLS command to ist the and the required fles are available Enter FSCD V lo retum to the root directory Mt these are not present then save DEFAULTALG and TL DALG fles provide
6. Script SCRIPTO FRS fles to SD card in FlashRunner Pease review Sections SD Card File Structure m FlashRunner Programmers Manual for detailed Information regarding the subject covered in this section The FlashRunner unit is provided with a pre formatied SD card with the fle structure shown in Figure 20 Copyright 2012 Texas Instruments Incorporated Using FlashRunner FROST to Program UCD30203028 3040 and UCD3138 SLUASSS August 2012 Figure 20 SD Card fie structure aler formating by FlashRunner The final preparation step for standalone programming wih FROS involves instaling the FRB created in section 23 3 and the SCRIPTO FRS script fle created in section 2 3 4 al the appropriate locations in the SD ard In order to accomplish this tna following steps need 19 be performed TL insert the SD card provided into the FlashRunnar uni Click Send FlashRunner Binary In the pop up window browse and locala the FRB fle created in 233 al the locaton ClPregram Fies Soffec Microsystoms FlashRunner ControlPanelBINARIES Click Sta Figure 21 Sending FRE fleo SO card using FlashRunnee Control Panel After successful execution of this step a message is displayed Cick Exi In this example the PFC_1 FRE fle was installed in the BINARIES folder nthe SD card Copyright 2012 Texas Instruments Incorporated Tous Using FlashRunner FROSTIo to Program 0 0302020283040 and UCD3138 TEAS aie SEUASSA August
7. can choose between two Spes of verificato 41 CheckSum method S Recommended 2 Read Out method 8 VERIFY F S 10000 910000 58000 VERIFY E S 18800 18800 800 Run program Works only if issued in the same session as PROGRAM command TPCMD R N Ends programming block TPEND Additonal points to nol In the TCSETDEV command only the following device name options are allowed UCD3020 UCD3028 UCD3040 and UCD3138 Examples TCsETDEV Ti UCD3020 TLD TCSETDEV UCD3028 Ti D TCSETDEV TI UCD3040 TLD T sETDEV T UCD3138 TLD The TCSETPAR SCLK 400000 command sels the clock frequency in for PMBUS protocol Either 100kH2 or 400 can e used 400kH is recommended for fast programming A high frequency capacitor Cy in may be necessary to support data transfer at 400kHz Inthe TPSETRO command tho name of the FlashRunner Binary file FRB must match the name of the FRB file that was generated in section 2 3 3 Example TPSETSRC FILE PFC_1 FRB The actual programming of the device is executed by the TPCMD PROGRAM command with F option for programming the Program flash and E option for programming the Data flash in UCD devices Adsitonaly parameters must be specified in this command to specify the exact starting address and length bytes nat need o programmed in the UCOSxx device The VERIFY command with S option implements the Checksum calculation described earlier for
8. review Secion2 FlashAunner Commands in FlashFunner Programmers Manual for detailed Information regarding command statements executed by FlashFunner Ti has partnered with SMH Technologies to develop sample scripts that can be used for fast and reliable programming cf devices from ROM mode as wal Flash mode Femware Update The sample provided inthe nex 2 sections can be used for programming the UCDSxxx devices 234 1 Sample Script for Programming UCD3xxx device in ROM Mode sample script for programming of UCD30xx devices fom ROM mode is provided below This script programs 32B ofthe program tash and 2 8 of data Nash in CD3oo devices and performs verification In verification step the FlashRunner performs Checksum calculation on the FRB image fle independentiy and FlashiRunner also instructs the UCD3xxx ROM to perform Checksum calculation on the downloaded firmware image in the device By comparing these 2 calculations the FlashRunner determines whether valid programming has been executed or nat Copyright 2012 Texas Instruments Incorporated Using FiashRunner FROSTXIO to Program UCD30203028 3040 and UCD3138 T NM SLUASSS August 2012 FLASHRUNNER SCRIPT EXAMPLE FOR TI UCD3020 Use this example staring point for your speci programming needs HARDWARE CONNECTIONS Dio DIO2 SDATA Tums of logging ioc OFF Halt on errors ON FAIL Sets device TCSETDEV T ucDa02
9. the memory locations specified by the staring address and length of bytes For Standalone programming with FRO3 the script file must be named as SCRIPTO FRS 23 42 Sample Script for Programming UCD3xx device in Flash Mode Firmware Update For updating the firmware in device for reprogramming the fmware image itis necessary to first send the device back to the ROM mode This is accomplished by adding one more command known ROMBACK command to the script used for programming in ROM mode The ROMBACK command is inserted immediately afr the TPSTART command in the script All other commands in tha ROM mode programming sept are retained for Flash mode programming as wel The ROMBACK statement in the script sends a PMBUS command to the UCDS ex device forcing ito enter tha ROM mode It is also possible to implement a password requirement in this stop in order to avoid accidental reprogramming or for added data securly The pre existing firmware in the device must be capable of recognizing and implementing this PMBUS function Command syntax Copyright 2012 Texas Instruments Incorporated Tous Using FlashRunner FROSTXIO to Program UCD30203028 3040 and UCD3138 T iis SLUASSS August 2012 TPCMD ROMBACK command delays device id pw lengtho lt pw gt command Command to return to ROM mode detay Delay msec before a new boot ROM command 10 UCD3XXX device ID code pe length longi S 0
10. 0 ri D ATTENTION for more information on the avaiable commands and parameter tuning please visit our website No Wwiesmh loch com cick on Support amp download menu Download Area fection and Application Note subsection and download the document related tothe speci programming algorithm SETTINGS Target voltage mV change as needed TCSETPAR VDD 3300 VDD Rise Time ms change as needed TCSETPAR PWUP 1 DD Fal Time ms change as needed TCSETPAR PWOOWN 1 12C clock frequency Hz change as needed For this device the maximum clock frequency is 400000 He SCLK 400000 Image fie o be programmed must be placed in the BINARIES directory TPS TSRCFILE FLASHFRE START PROGRAMMING SESSION TPSTART Mass erases complete Flash Memony Program memory Data mamory C F E MASSERASE Erase ProgramData page FIE change address and length as needed ERASE F 10000 8000 Blank checks ProgramData FE memory change address and length as needed TPCMD SLANKCHECK F 10000 8000 Programs ProgramiData FIE memory change addresses and length as needed Copyright 2012 Texas Instruments Incorporated 13 VERAS Using FlashRunner FROST to Program UCD30203028 3040 and UCD3138 s SEUASSA August 2012 PROGRAM F 510000 10000 8000 TPCMD PROGRAM E 518800 18800 800 Veris ProgramData F E memory change source target address and length as needed H you want you
11. 3 TEXAS Using FlashRunner FROSTXIO to Program UCD3020 028 3040 and UCD3138 INSTRUMENTS SEUASSA August 2012 Using FlashRunner FRO3TXIO for Standalone Programming of UCD3020 UCD3028 UCD3040 amp UCD3138 Digital Power Controllers August 2012 SLUAGS4 Copyright 2012 Texas Instruments Incorporated Texas Using FiashRunner FROSTKI to Program UCD30209028 3040 and UCD3138 INSTRUMENTS SLUASSA August 2012 Table of Contents 1 0 Introduction to FlashRunner FRO3TXIO 4 2 0 System Set Up for Successful Programming 2 2 Hardware Preparations 2 3 Software Preparations 8 3 0 FlashRunner FRO3 Standalone Programming Procedure 21 4 0 Source Code Requirements for Successful Programming 22 5 0 Device Programming Time using FlashRunner 25 6 0 References 25 Copyright 2012 Texas Instruments Incorporated Using FlashRunner FROSTIo to Program UCD30203028 3040 and UCD3138 SEUASSA August 2012 Texas INSTRUMENTS Scope of this Document This document from Texas Instruments provides step by step information about Hardware and Software setup of FlashRunnar FROITXIO required for standalone programming UCD30xx and UCD3138 digital controllers Additional documentation available from SMH Technologies www smh techcom regarding generic Flashftunner FROS topics include FlashRunner ROS User s Manual 2 FlashRunner FRO3 Programmers Manual Additional documentation available from SMH Technologies w
12. alue needed with diferent cable lengths in tests conducted at TI This can be insaled tothe ISP connector shown in Figure 10 PMBUS Connector J1 UCD3138CC84EVN 030 ISP Connector Flashrunner FROS Figure 92 Cable with high traquency capacitor for interfacing FRO3 ISP Connector to UCD3138CC64EVM 030 PMBUS Connector 1 farin system programming Figure 93 wih high requency capacitor for interfacing FRO3 ISP connector wih UCD3138CC64EVM 030 PMBUS Connector 31 Table 1 Cir capacitor needed between PMBUS_DATA and GND lines for successful programming with Copyright 2012 Texas Instruments Incorporated Tous Using Fashuner to Program UCoan20 2440 UCD INSTRUMENTS erent cable lengths actual capacitor value will vary based on programming environment Cable length Cur Capacitor value needed in TI Test Set up TOU KHZ operating 400 KH operating frequency frequency Boom No capacitor needed TPF Boom reer par onem TF 52 2 3 Software Preparations 22 1 Generating Firmware Image Hox fonder to abe 0009198 device Ia transfer conta from ROM mode to Fash mode aur a fae age peated valid Checks according lo e slepa bdo Compile the Source using Code Composer Sto and obtain x fi b Using Texas Instruments UCD3XXX Device QUI in FUSION DIGITAL POWER DESIGNER ivan ti con
13. an tons of tr soricalons and anawaspe ar soe ay ae Se de vie aia a pia sd ay en dn eT Tad erates art any age th of pote suc ral sepa Pouce ne ther derape rer ended Use arenermrent unes rece are etica devansat by Ta my grace s pasta Oriy pte dite Sy mary paeent Buys sckwuage ard agres hl ary auch ae oTi prot whch foal dti a ial e Bayera nak are a ay are sy rer or wana decor eureen income wh ch the TI products ar desget er ened ey oe i umole appleston renee unes he smi despre oy er comp to SOS VEA aurean Safes and agree they se erate rote appear Tne erga ny aure uch egrets Flug ae UALS idea adii eta er er fni ana poc ad fer duo Produce Applications pop Mtoe and Traraportaton wa b com aum les Shen orit Team mi per E ma edere red Enya weeny Emu e ania d e rit Communty HomePage ies Copyright 2012 Texas Instruments Incorporated IMPORTANT NOTICE Texas Incorporated subsidtaries 1 reserve he oh 1o make conscons enhancement improvements and aiher changes ate semcondactr produci ad sevens per S040 tse 6 decoris ay podut o per JE SAL est Ss Buyers sould aba he ele
14. as needed i It you don t have a password put 0 in password length field otherwise indicate password length 4 bytes and then put it password feld reter 1 Application Note for related firmware requirements ROMBACK 09 100 0 0300080111 0210907070 TPCMD ROMBACK 26 100 UCD300ISO1 1 0 2 090707 4 34129078 3 TPCMD ROMBACK 26 100 UCD3000150111 2 2 080707 4 534129078 TPCMD ROMBACK 26 100 UCD3000ISO1 1 0 21090707 4 34129078 Mass erases complete Flash Memory Program memory Data mamory MASSERASE C Erase ProgramiData page FIE change address and length as needed ERASE F 310000 8000 Blank checks ProgramData F E memory change address and length as needed TPCMD BLANKCHECK F 10000 8000 Programs ProgramData FIE memory change addresses and length as needed TPCMD PROGRAM F 510000 510000 58000 PROGRAM E 518800 18800 800 Verifies ProgramData FIE memory change source target address and length as needed H you want you can choose between two types of verification 41 CheckSum method 5 Recommended 2 Read Cut method R TPCMD VERIFY F 5 510000 10000 8000 TPCMD VERIFY E S 518800 518800 800 Run program Works oniy issued in the same session as PROGRAM command TPCHD RUN Ends programming block PEND NOTE For standalone programming with FlashRunner FROS the fle name of the script file MUST be SCRIPTORE 23 5 Sending Binary FRE amp
15. below and uncomment tha ROMBACK statement for na desired password option FLASHRUNNER SCRIPT EXAMPLE FOR TI UCD3020 Use this example as starting point for your specific programming needs HARDWARE CONNECTIONS Dios Scu 0102 SDATA Tums of logging oc OFF Halt on errors ON FAIL Sets device TCSETDEV T ucDa020 ri D ATTENTION for more information on the avaliable commands and parameter tuning please visit our website Nip uwiesmh lach com cick on Support amp downiaad monu Download Area fection and Application Note subsection and download the document related to the specific programming algorithm SETTINGS Target voltage mV change as needed TCSETPAR VDD 3300 VDD Fise Timo ms change as needed TCSETPAR PWUP 1 VOD Fall Time ms change as needed TCSETPAR PWDOWN 1 12C clock frequency Hz change as needed this device the maximum frequency is 400000 He TCSETPAR SCLK 400000 Image fle o be programmed must be placed in the BINARIES directory TPS TSRC FILE FLASHFRE Copyright 2012 Texas Instruments Incorporated Using FlashRunner FROSTXIO to Program UCD30203028 3040 and UCD3138 Texas SEUASSA August 2012 START PROGRAMMING SESSION TPSTART 4 This instruction is needed only for e programming of device Firmware UPDATE This instruction permits to restore ROM mode from Flash mode change command delay Device ID needed password length password
16. d by SMH technologies local path C Program FilesSofTec MierosystemslFlsshRunneriCorirolPanelALGOS and install them inside the SD cand using Send Algorithm option of Control Panel Imasimiarmanner ensure that all required licence fies are installed inside the LICENSES directory of the SD card If not the save all the license fles LIC in local path C Program Fies SofTec MirosyslamsiFlashunnerControPPanelLICENSES and install the fles in the SD card using Send Licences option of Control Panel The licence fies LIC are excusive to the FlashRunner FRO3 uni serial 4 being used for Programming and also the UCD 3x programming algorithm Copyright 2012 Texas Instruments Incorporated E Using Fashuner PROS to Program UCD 3 FlashRunner FRO3 Standalone Programming Procedure Programming the Flashiunnor involves the folowing stops 1 Power up the FlashRunner FROS 2 Insert SD card with all the requisite fles installed inside Use Checklist below Ensure SCRIPTO FRS script fle amp firmware image FRB fle are installed in SD card at correct location Ensure that the correct Device name is used in the TCSETDEY statement inthe scrote Ensure that the flename af the firmware image fle FRB in the SD card matches the name specified in the TPSETSRC statement in the script fle Ensure thal corect Device ID of the pre existing fimware is used in the ROMBACK statement in the script for firmwa
17. e pam infe case PMBUS MR PARM VALUE metum pmbus wie value default break return 0 Copyright 2012 Texas Instruments Incorporated E Using FlashRunner FROSTXIO to Program UCD30203028 3040 and UCD3138 Texas SEUASSA August 2012 INSTRUMENTS 5 UCD3xxx Device Programming Time using FlashRunner FRO Programming Time The table below provides ime taken for programming 32KB program lash and 2B data fash and verification by FlashRunner FRO3 in Standalone modo for a UCD3040 device OKRE PNEUS PHIBUS RON Wode 34 sac erg Flash Mods Tosa Er firmware update The measurements above were generated from UCD3040 799 Control Card biased using the PMBUS ine VPROGO from FlashRunner ISP connector Using script examples provided in this document with 100ms delay time in ROMBACK command for Flash mode programming 6 References 1 FlashRunner FRO Users Manual 1 Flashtunner FRO3 Programmer s Manual 3 AND0153 Interfacing FlashRunner with TI UCDSOXX Devices DC 10498 pdf UCD9040 20 28 Device Datasheet Literature amp 5 0888 3 UCD3Do Flash Application Note UCDSI38 Device Datasheet Literature SLUSAP2 7 UCD8138 ARM and Digital System Programmer s Manual SLUUSG Copyright 2012 Texas Instruments Incorporated Texas Using FlashRunner FROST to Program UCD30203028 3040 and UCD3138 T aama SLUASSS August 2012 IMPORTANT NOTICE Tasa
18. ection with FiashRunner the Communication section select FlashRunnor serial version and specify the COM port you are using and the baud rate by default FashRunner communicates at 115200 bps Thon click Connect After successful is made the Control Panel responds with PONG message as shown below Figure 14 FlashRunnor Control Panel uit afer communication with host PC Copyright 2012 Texas Instruments Incorporated Tous Using FiashRunner FROSTIo to Program UCD30203028 3040 and UCD3138 T NN SLUASSS August 2012 cick Create FlashRunner Binary Format FRBJ In the pop up window that opens browse amd locate the Hex created in Section 2 3 1 select Intel Hex option fom the dropdown menu in Format Then click OK In the example below the fle was chosen Figure 15 Creating FRB using FlashRunner Control Panel V FRB fie with the specified fle name by default same name as Hex is crated and a message is displayed Figure 16 Successful creation af FRE file using FlashRunner Control Panel The FRB fe is docaed in the CiPregram FiesiSofTec Mirosysteme FlashRunner Contro PanalBINARIES A txt creation report is also created at the Samo locaton Inthe example below a FRB fle named PFC 1 FRB was generated Figure 17 FRB fle created at C Program FilesiSofTec Micrasystem FlashRunner ContrePanaliBINARIES Copyr
19. er 4kh2 PMBUS capacitor vue PHBUS command ROMBACK Pre exstng femmare mp deves mus muppar PNEUS mot recognized by the preening Armure on command in ROMBACK statement Fm update the devi Teatre cannot be sed fis condition na met Copyright 2012 Texas Instruments Incorporated ERAS Using FlashRunner FROST ta Program 0 0302020283040 and UCD3138 s SEUASSA August 2012 4 Source Code Requirements for Successful ROMBACK Command Implementation in Flash Mode Programming I Firmware Update feature using FlashRunner is desired then it is important to ensure that the pre existing firmware mag on the device has the capability to recognize the PMBUS command in the ROMBACK statement and to send the device back to the ROM made from where it can be re programmed This means that the PMBUS command must be properly defined i the source code of the pre existing image inthe device ROMBACK Command syntax TPOMD ROMBACK lt command gt delays device id pw lengtho pw command Command to retur to ROM mode Delay msec before a new boot ROM command device 10 devie ID cade pe length fp lengi 1S 0 no password wil be sent otherwise pw length byte wil be transmitted e User defined password Command parameters This command s used a back to ROM mode when a customer fime is running on the device The comand device ID and pw paramet
20. ers ar user definable Moreover pw 8 optional and fro password protection is desired then the requirement or pw is gnored by assigning the 0 value to pw length 4 1 Implementing Fast Device Re programming The PMBUS command in the ROMBACK statement wil deliberately reset the device and force invalid checksum to send it back to ROM mode A delay ime has to be specified in the ROMBACK command lowing enough ime for the device to enter ROM mode However is delay time must be kept 19 a minimum to enable Tast re programming There are 2 methods recommended to enable delay ime of less than i00ms 1 One method to force a quick reset in less than 100ms is by pointing the device to ilegal memory location during the PMBUS command execution This is easly implemented by adding the code highighted in boldface in he interrupts fle case 12 lero integly word DacRags PFLASHILOCK Di42DC1STE J Write key Program Flash Interlock Register i register Uint32 program index program Taglar Ui source index Tagala Unie zu rela 2 courier Uit32 019000 store destination address for erase checksum Urnt32 aro integrity word Set source adress of PFLASH Uints2 end zero word Calculate for counter 0 counter lt zo size counter Copy program from PFLASH lo RAM program indexes source indere register FUNC PTR func ptr Tunc pir FUNC PTRJOX 9000 Se funct
21. ftware on the PC The software setup instalis Copyright 2012 Texas Instruments Incorporated Texas Using FlashRunner FROSTKI to Program UCD30209028 3040 and UCD3138 INSTRUMENTS SEUASSA August 2012 all of the required components on the hard drive These components include The FlashRunner Control Panel uy GUI Script examples Documentation in PDF format The FlashRunner Contro Pane uty is used for the following purposes 1 To create and set up the necessary and licenses in SD card for Stand alone programming 2 To send commands from host PC fo instruct FROS to program target devices In this document oniy the requirements and proceduras ralatad stand alone programming are covered 2 3 3 Generating Binary File for programming using FlashRunner Please review Section 7 1 3 Creating FlashRunner Binary Files in FlashRunner Programmer s Manual for detailed information regarding subject covered in this section FlashRunner accepts tha firmware image fles in a FRB FlashRunner Binary format In order to generate the image from the Intel Hex le the following steps must be executed L A Connect the FlashRunnor unit to hast using the S pin serial cable and provide 7 5VDC power input i Launch the FlashRunner Control Panel uy Select Start gt Programs gt SofTac Microsystems gt FiashRunner gt Control Panel The Control Panel ly wil open Figure 13 FrashRunner Control Panel uty upon launch i Te establish a conn
22. g firmware image of the device must be known The pre existing firmware image on the UCD3xxx device MUST be capable of recognizing the PMBUS command such as a standard 09 command for non password option and specific User defined commands for password option called by the ROMBACK statement to force the device to enter ROM mode This requires the PMBUS command to be properly defined in the Source code of he preexisting firmware image Copyright 2012 Texas Instruments Incorporated VERAS Using FlashRunner FROST to Program UCO30203028 3040 and UCD3138 LR a SEUASSA August 2012 Also in all the examples above a delay time of 100ms is used Special functions MUST be included in the source code of the pre existing firmware image in order allow the device to return to ROM modo reliably within 100ms If these methods are not implemented thon delay time of at least 3000ms will bo necessary for UCD3020 302813040 and a delay time of at least 2000ms will be necessary for UCD3138 Section 4 of this document provides a detailed discussion regarding source code requirements for Implementing the ROMBACK command examples listed above The completo example script for programming in Flash mode is provided below and the ROMBACK command needed is highlighted in boldface In tis script example the ROMBACK command is implemented Wit non password option to implement password security simply comment out tha ROMBACK statement shawn
23. he UCDi0x device UO ports involved in programming are as follows PMBUS PMBUS Clock frequency PMBUS DATA PMBUS Data ine 0 Device Bias supply DGND amp AGND Device ground These Ines must be connected to the FlashRunner s ISP connector according to Figure Figure 8 Hardware Interface requirement between UCD3 target device and FROS ISP connector For example it ina target device is located on the UCD3138CCE4EVM 020 EVM from Texas Instruments 313 gt 030 than a connector cable must be prepared between the FiashRunner ISP connector and the connector J1 in UCD3138CC64 030 EVM This is in Copyright 2012 Texas Instruments Incorporated 5 Texas Using FiashRunner FROST to Program 0 0302020283040 and UCD3138 T am SLUASSS August 2012 Figure 9 The target device can be biased directly rom the PMBUS Ine coming from the FlashRunner ISP connector jumper J2 in Figure 9 1 NOTE Itis necessary to insert high trequency capacitor between the PMBUS_DATA and GND fine to support 400kH2 data transfer The exact value of depends on cable length and the programming environment 47pF is good starting point fr a 20cm approximately cable A higher value be needed for longer cable lengths and diferant board configurations As an example Table 1 Summarizes the capacitance v
24. ight 2012 Texas Instruments Incorporated Using FiashRunner FROSTIo to Program 0 0302020283040 and UCD3138 s site SEUASSA August 2012 23 4 Generating Script File for Standalone Programming Please review Section Scrpts in FlashFlunner Programmer s Manual for detailed information regarding subject covered in hi section Standalone mode operation of the FlashRunner is enabled by ha uso of Script fies Scip fles are text fles stored in the SD card which contain a sequence of FiashRunner commands With FlashRunnar FRO for Standalone programming the SCRIPTOFRS must be used for the scrpl fie The automate fexecuton of the sequence of commands in the SCRIPTO FRS serpt fie is triggered when the red START push button on he FlashRunnar FRO s depressed When FlashRunner begins executing the script fie the BUSY LED tums on During script fie execution FiashRunner wil not answer host commands Script fle execution ends alther ater FlashRunnor has executed the last command in the script or immediately ar the frst command in the script that is nol Successful When script execution ends the BUSY LED tums off and iiher the PASS or FAIL LED tums on depending on whether the last command executed was successful ar not The flowchart below summarizes the typical sequence of commands executed in the script fle for standalone operation a C pm Figure 18 FlashRunner Scril development Please
25. ion to 0x19000 func pi now jump out into space and force a reset unc ptr FUNC PTRJOX200000j Set function to 0x200000 func ptr execute erase checksum ratum 2 Another method to force quick reset in less than 100ms is by implementing a software reset using the Copyright 2012 Texas Instruments Incorporated 2 Texas Using FlashRunner FROSTXIO to Program UCD30209028 3040 and UCD3138 INSTRUMENTS SEUASSA August 2012 system exception control register SYSECR bit in the lear program flash fe highiighted in boldface below void zero cut integrity DecRogs FLASHILOCK 042001876 Write key to Program Flash interlock Register DecRegs MFBALR all MFBALRX BYTEO BLOCK SIZE 32K enable program fash write program flash inlgrity_word Deckegs MFEALRT al MFBALRX BYTEO BLOCK SIZE 32K program flash out to 4x real MFBALRX_BYTEO_RONLY hile DecRegs PFLASHCTRL bit BUSY 1 0 ide nothing wie it programs SysRegs SYSECR bILRESET 2 ireset device return NOTE One of these reset methods described above must be implemented in the source code of pre existing firmware the device in order to be able to use a delay time of 100ms in the ROMBACK command t these methods are not implemented then a delay time of 3000ms will be necessary for UCD3020 3028 3040 and a delay time of 2000ms will be necessary for UCD3138 42 Implementing Password Protection during Firmware Update Flachunner als
26. iw smb tech com regarding programming UCD3020 3028 3040 amp UCD2138 controllers using FlashRunner 5 ANOOISS Interfacing FlashRunner with TI UCDSOXX Devices DC 10498 pdf Additonal documentation available rom Texas Instruments regarding UCO30xx and UCD3138 controllers UCD3040 20 28 Device Datasheet Literature SLUGS 2 UCO30xx Flash Application Nole UCD3138 Device Datasheet Literature SLUSAP2 5 UCD3138 ARM and Digital System Programmer s Manual For the most up to date product specifications please visit www ti com Copyright 2012 Texas Instruments Incorporated Texas Using FlashRunner FROSTXIO to Program UCD30209028 3040 and UCD3138 INSTRUMENTS SEUASSA August 2012 1 Introduction 1 1 FlashRunner FR03 Overview FlashRunner FROS is a high performance standalone In System Programmer from SMH Technologies specific for Flash based microcontrollers and serial memories FlashRunner FROS is targeted al production environments easly interfaces to a programming system or Automatic Test Equipment ATE and can work tether in fal landalone mode controlled by host system Flachfunner FROSTXID is capable of programming Texas Instruments digital controller devices UCD3020 2 UCD3040 and UCD3138 PMBUS protocol at 400KHz operating frequency is used to program these devices Figure 1 FlashRunner FROS from SMH Technologies 1 2 Features Kay attributes of FashRunnar include 7 Sta
27. mponents wich TI has speitcaly designated as miliary grade or entanced plaste are designed intended lor usen ry aecspare appeatonso Buyer scinowedqes id agrees Mat any aerospace us TI comunes tic have not been an esqnted ssl e Boyer and tal Bayer obey responsi rcorlance weh ga ana guar n conecto wih suen use has spacteaty designated ceti component as meeting 15071918848 resurement automotive use any ot use of onesies Twi ot be resort oan o meet ISO TS 16349 emisso and Transportation Jeu auarave piers lie tom Communications Telcom wekicontonmuniclore Duis converters fabcomwetericom Computers and Perera wiwlconconpdens DPI Produce Consumer Electronics ww L oorniconsumer apps ose Energy and Lighting loge lagen Securty Power Mori Powercom Space Avionics and Detense weklconipace dvor dense Mencontoles Video and maging comin CMAPHooleaionsPrcenom wwwicomomup TI EZE Community Wireless Connect ew coniwessconnecty Mating Ades Texas stuents Post ce Box 665305 Dalas Texas 75205 20 Teras tuner eared
28. ndalone operation wih Sart button projects and code images stored on a memory card Controllable by any host system via RS 232 also can be integrated with ATE Supports ISP r sjstom programming protocole LED indicators for Power Instrument Status amp Programming Status 1 2 1 Hardware Features SP connector with ports for communication with target device tat is to be programmed Five digital VO ines I Two dial 10 or analog output ines 1 One programmable output voltage 0 to 5 5V 0 5A I One programmable clock output Secure Digital memory card up to 2 GB One command input button START Three programming status LED indicator FAIL PASS BUSY RE 232 channel communication with host system 77 5V DC power suppl input Copyright 2012 Texas Instruments Incorporated Using FlashRunner FROSTXI to Program UCD30209028 3040 and UCD3138 INSTRUMENTS SEUASSA August 2012 TOWER Rex Connecter Comedor Power and Instument gt status LEDs Programming 3 Staton LEDs START CONTROL isP Push Button Connector Connector Figure 2 FlashRunner Hardware Features 122 Software Features Fully autonomous standalone moda based on SD memory card Controllable by any host system through a terminal utiity and simple ASCII protocol 1 hardware selectable project scrip 1 United sofiware selectable projects scripts Erase blank check program read vei oscilator timi
29. ng c 1 2 3 FRO3TXIO Package Key tems in the FRO3TXIO package include Flashtunner FRO3 uni including SD card pre installed with the programming algorithm and licences fer UCD3020UCD3028 UCDA040IUCD3138 devices Spin Serial cable for connection between FlashiRunnar and host PC 3 FlashRunner System Sofware CD ROM containing the FlashRunner Control Panel utility instalation fles and FiashRunner documentation ACIDE Power Supply 7 5V DC output must be provided by user lo power up FlashRunner Figure 3 FashRunner FROSTXO package contents Copyright 2012 Texas Instruments Incorporated TRS ees Vana Penne FRosTH to Program COLOR bn ana CDs 2 System Set Up for Successful Programming 2 1 Overview The following stops are necessary in order to use FlashRunner FROS to achieve standalone programming of the UCD devices T Hardware Preparations 3 Develop hardware interface between and Target board with the device 2 Software preparations 3 Generale Image fle for programming the target device b Generate script fle SCRIPTO FRS for standalone operation 9 Install Image and script fles in SD card using FlashRunner FRO3 2 2 Hardware Preparations Connector is necessary to interface between the target device and devices are programmed using PMBUSIIZC communication interface Itis possible fo power the UCDSxxx device using the VODIGNO connectors available tom FROG T
30. o offers tha user the option to Implement password protection during firmware update The password can be 1 byte 2 bytes or 4 bytes long and is defined by the user The code highlighted in boldface Below examples of how to implement the 1 2 and 4 bit passwords and related PMBUS Commands shown n tabla below One of the password options may be chosen and the related code should be included in ombus c in the source code of pre existing firmware on the device The user has t0 define the exact command code Password command Password Byte Option Code Bysi Eyez Bye3 ayet 1 Da xz 2 3 3 4 25 pug 90 TZ Tat 0 at command byte trom a write perspective int32 pmbus message void switch pmbus buff t case PMBUS_CMD_ROM_MODE ratum pmbus wit rom model case 0x24 if pmbus 91 bylos 3 byte password t return pmbus_wri return 0 0x25 iMipmbus buferz O34 amp amp pmbus buffer pmbus numbor of bytes 4 1 word password aa return pmbus_write_rom_mode Copyright 2012 Texas Instruments Incorporated Using FlashRunner FROSTXIO to Program 0 0302020283040 and UCD3138 Texas SEUASSA August 2012 INSTRUMENTS return 0 0x25 if ombus butter pmbus buffer pmbus t return 0 cass PMBUS_CMO_MFR_PARM INFO Tetum pmbus writ
31. re update Ensure that the pre existing firmware can support the PMBUS commands in ROMBACK statement for firmware update Ensure the corect password is used in ROMBACK statement if desired for firmware update Ensure that all of the FROS unit being used are installed in SD card at correct location Ensure that TI D ALG and DEFAULTALG algorithm flos are loaded in the SD card at correct location 3 Connect interface cable between the DUT board withthe device to be programmed and tha unit SP connector Ensure that the Gyr capacitor is propery installed on the interface cable to support high frequency PMBUS protocol during programming 4 Provide 3 3V bias to tha target Device be biased either with extemal power supply or drecty from the VPROGD line from FlashRunner ISP connecter 5 Press the red START button on he FROS unit The response trom the status LEDS is summarized below enar TED suus 1 Deng me slow SUSY sats ag er sucess arg and ry FROT Ths rsen PASS stats LED s up ea FAIL LED WD In verification step the FlashRunnor performs Checksum calculation on the FRB image independenty Flashifunner also instructs the ROM to perform Checksum calculation on the downloaded firmware image in the device By comparing these 2 calculations the FlashRunner determines whether
32. stocfusion gia power designer create Intel by following the 3 staps below Select x0 to Hex Tool option in the GUI as shown below Figure 10 X0 to Hex Too option of FUSION DIGITAL POWER DESIGNER Device GUI i Browse and locate the fle on the PC i Select radio bution indicating Calculate and export valid checksum option This wil put tha device in Flash mode affer successful programming with FlashRunner however if for any reason it is desired to retain tha device in ROM mode after successful programming then select the Export bad Checksum Stay in ROMY option Copyright 2012 Texas Instruments Incorporated Using FiashRunner FROST to Program 0 0302020283040 and UCD3138 SLUASSS August 2012 screen wil be displayed upon successi conversion pee mna Figure 11 Intel creation with Calculato and export valid checksum option iv Click Conver The intel Hex fle wil be created at the same location as the fla and the following Figure 12 Intel creation with Calculate and export valid checksum option 2 32 installing FlashRunner Control Panel Utility Please review Section 7 FlashRunner Control Panel in FlashRunnar Programmers Manual for detailed Information regarding use of FlashFunner Contr Panel Uti Using the CD ROM provided install the Flashiunnor system so
33. vat slate ardere ta strain curent and brie semiconductor produce asa ler Component sad sujet lo Tr tema conan ase at 1e o order ckrowleent Ti warrants fs components the speclcaons apical al he iv o sale in accordance with te waranty in TH tems and anton o of semiconductor product Tesing and alter qual cono ae used othe exten T ora necessary io support warianty Except eher rndated y socie ebria Al parse GI each compunen rl neces Tl assumes no laity lr polos assistance or e design o Buyers produ Buyers are responsi n hl products and opicatons ng TI componens To minimize he faa associated wi Buyers products applatone Buyers haud proide dei operating salegana Tl does nol warant or represent that cens eer express ar implied rated under any mask won it or amer property ngn any combination mache or process wich TI components sence are used nona bland by T reperiri Hr paniy Products a arviota es al aries lae procs dr sen ara o Endorsement thre Use o suen imation may reque censa tror Wd parl under he paleo er el pope ot the Rea pary ora icense rom unde patents amp r oer teteki property T Reproduction al ignia prre of T nonrakan T data books or at sheets permissible
Download Pdf Manuals
Related Search
Related Contents
Kitchen scale Instruction manual Báscula de cocina Manual Xantrex FREEDOM SW 3000 User's Manual AM-990 VME Service Manual www.crosley.com P/N 134856500 (0701) FireLock® Clapet Anti-Retour d`Alarme I-751-FRC Conception - Réalisation - Entretien Documentation technique Emtec C310 Pop Art 8 GB H1000AC Hoist Instruction Cortacésped eléctrico Manual de instrucciones de uso Copyright © All rights reserved.
Failed to retrieve file