Home

FlashPro2000 User`s Manual

image

Contents

1. Table of Contents VOTO ON er eens eee Ona a TAR PACA DOG ORES COR AAS LG ERAS SOS 8 LA E eal a de ee atin A ag ek TE es wees da eae be 9 2 1 Customized features phil dt eddie towed ea edge noth awe da orchid e aid 10 2 1 1 Encrypted Project option s sa sacs Yee hem ht Mee ete Sere DD 10 2 1 2 Serpt file sue oh ela no A CdS Geeta ee ag eed ede ey 10 E D D aoe eee ee ee gre eee ee eee ee ae ee eee 10 2 4 Sel Vest Program id dile 10 Bo GOING Started ince AA Ew A dae Radek A WAL DASA Aa 11 3 1 SoftWare Installation 4 25455 525s 46a eer eh aa 11 3 1 1 Driver Installation ver ras 13 3 2 Hardware SOUP eee Sent a ea ar ana a ek ce AEA OAE et a OA A a 16 3 3 Starting up FlashPro2000 Flash Programmer 17 BA X Pro Selector li e Ee oS da EOL e Bee 18 4 Programming Dialog SCTCAN RARA SEE SAG EEE ORES BEER AAA 20 4 1 Interface Type rai dav iaacdae lathe a 21 4 2 Microcontroller Type 24 4 244044 sede a er a oe Pee ee aS 22 4 3 Code File Management veis desd sis 23 4 4 CSM and Security Password o s ees Ui tte ea ees etre et Oe 26 4 5 Power Device and Clock frequency test 0 0 0 0 e eee ee nee 29 46 Device ACOn BOX pactada edu os Geman da Gee wean eee es 30 4 6 1 Auto Program button versidad eos eee Rees wees 32 4 6 2 Verify CSM Password button 0 0c eee eee 33 4 6 3 Erase Flash button 2 2 3 0424 s4oesaeddeeisaed beendautanbide 33 4 6 4 Blank Check button o sici 64 eee eh bes
2. select for a suitable driver for my device recommended FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 15 Te and press Next Select the third option Specify a location for a location of the Driver Files From the browser select the D drivers W2000 ME XP for Win 2000 or D drivers W98 for Win 98SE directory where D CD ROM drive location or in the application software directory C Program Files Elprotronic XPro USB Drivers W98 and press Next Driver installation process will start Driver installation procedures should be done twice Software will install two USB drivers the Boot Found New Hardware Wizard os Completing the Found New Hardware Wizard The wizard has finished installing the software for USB FPA Elprotronic Click Finish to close the wizard Back Carcel Figure 3 1 5 driver and the Application driver Reboot computer after installation 3 2 Hardware Setup FlashPro2000 software support the USB FPA versions 4 4 adapter and can communicate with target device via JTAG interface or via SCI BOOT interface When the JTAG interface is used then it should be plug in the C2000 JTAG adapter between standard TT s JTAG connector and Programming Adapter FPA Figure 3 2 1 1 Connect USB FPA Flash Programming Adapter to the PC USB Port using provided cable extender USB A to USB B Plug in C2000 JTAG adapter to FPA Plug in 14 wires ribbon
3. Documentation Flash Programmers for Texas Instruments DSP C2000 Supports USB FPA Adapters from Elprotronic only FlashPro2000 Contanins GUI API DLL USB drivers Examples Documentation Figure 3 1 1 3 If the Setup wizard does not start automatically click the Start button and choose the Run dialog box Type D CD entry exe where D represents the drive letter of your CD ROM drive Then click the OK button 4 Once the installation program starts on screen instructions will guide you through the remainder of the installation You must accept licence agreement before using software FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 12 3 1 1 Driver Installation Software installation program is placing the USB driver files in the windows directories Windows inf and Windows system32 drivers that simplified driver installation l Plug in USB FPA to the PC USB Port using provided cable extender USB A to USB B Windows XP VISTA 2 The New hardware has been found USB FPA BOOT should be displayed Follow the wizard instruction to install the drivers In the first Wizard dialog screen see Figure 3 1 2 select the Yes this time only option Found New Hardware Wizard a Welcome to the Found New ey Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the
4. FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 22 When the selected and detected MCU type are not the same then following error is displayed xX The target microcontroller type does not match selection Selected microcontroller type TMS320F2801 Target microcontroller type TMS320F2808 Select the desired MCU and try again Figure 4 2 3 Procedure is terminated You should select correct name of used microcontroller and try again 4 3 Code File Management FlashPro2000 flash programmer provides a few options to manage code files These options allow the user to open a code file convert to other format and save the programming data into a code file Following code formats are supplied all are 16 bits data width with extended addressing mode over 16 bits addressing Texas Instruments txt Intel hex Motorola s19 s28 s37 and TI s CCS from Code Composer Studio out formats foren i x Look in G FlashPro2000 32 enm test 4k txt a 3 Zo T ao we m ying yy a SE oF J o oO a G4 o uw Mm fa a Hr x T E CodeFromE M2808 txt El MemView txt E dataz txt E msPlist txt gt Files of type gt Texas Instruments txt y Cancel gt Texas Instruments txt txt s19 s28 s37 hex out Motorola s19 s28 s37 Intel hex TI Code Composer Studio out Ta Figure FEST a FlashPro2000
5. NOTE This equipment has been tested and found to comply with the limits for a Class B digital devices pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one of more of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help ES x x Warning Changes or modifications not expressly approved by Elprotronic Inc could void the user s authority to operate the equipment This Class B digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations Cet appereil numerique de la classe B respecte toutes les exigences du Reglement sur le material brouilleur du Canada
6. 0x1234 0x5678 Ox9ABC OxDEFO 0x1327 0x1758 0x8532 Oxabf0 TDefault Password empty flash memory C none OxEFFF OxFFFF OxFFFF OxFFFF OxFFFF OxFFFF OxFFFF OxFFFF Note Selected Lock Security Password is downloaded to Target Device All listed passwords are used to unlock the current Target Device Save Defined Password TI s txt OK EXIT Figure 4 4 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 26 In the most natural scenario the code file contains the security password that would be downloaded to the flash and the target device before programming is blank In this case the blank security password all OxFFFF can be used to unlock an access to target device After programming the target device contains the new security password and the empty security password cannot unlock the access to programmed device In this case the security password taken from the code file can unlock an access to target device But if the target device is not empty before programming then it can have the security password written in flash other then the password taken from the code file and other than the empty password To cover this case one more password can be loaded to the passwords collection password taken from the old code file downloaded to target device When the Open Password file button is used then from the whole code file are taken only the data containing the security password All other data a
7. based software cable to connect the adapter with the computer s USB port and two converters with flat ribbon cables one for JTAG connection with 14 wires ribbon cable and the second for the SCI BOOT connection with 10 wires ribbon cable Communication speed via JTAG is selectable up to 3Mb s or 1 Mb s and allows use of longer JTAG cables if required useful in production To facilitate high speed communication via SCI BOOT Interface a new Fast Boot Loader is temporarily downloaded to RAM of each programmed device that allows to communicate with target device with speed up to 500 kb s Figure 1 1 To simplify production process the programming software package can assign serial numbers model type and revision Each serial number is unique for each programmed device and is assigned automatically Several serial number formats are available There are a number of erase write options also available This allows to erase write all flash memory or just the specified fragment of memory This feature is very useful when only part of programmed data code should be replaced For example this feature can be used to download the serial number calibration data or personality data without losing existing program code FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 8 2 Features Major features of the FlashPro2000 programmer are Support TMS320F24xx and TMS320F28xx flash based devices Programmer has a uniqu
8. lt Ascii format gt 3034 3035 3131 3031 3233 0405110123 Size 10 bytes Display Format YYDDD 1234 size in FLASH 9 bytes SN 042140123 will be saved as YYDDD 04214 gt 0x30 0x34 0x32 0x31 0x34 bytes or L VO T g 1234 0123 gt 0x30 0x31 0x32 0x33 bytes or MON 1 e 3 In flash memory this number can be seen as lt Hex format gt lt Ascii format gt 3034 3231 3430 3132 3300 042140123 Size 9 bytes Display Format 123456768 size in FLASH 8 bytes SN 12345678 will be saved as 12345678 gt 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 bytes In flash memory this number can be seen as lt Hex format gt lt Ascii format gt 3132 3334 3536 3738 12345678 Size 8 bytes Display Format 1234 size in FLASH 4 bytes SN 1234 will be saved as 1234 gt 0x31 0x32 0x33 0x34 bytes In flash memory this number can be seen as lt Hex format gt lt Ascii format gt 3132 3334 1234 Size 4 bytes Display Format Custom or from the file size in FLASH defined size in bytes Taken from the file or entered manually Ascii string will be saved in the flash memory FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 65 When the Ascii format is selected then the Ascii string is saved in memory as is All Ascii characters can be used For example the entered following string 02WX245234 will be saved in memory as 3032 5758
9. BarCode scan is selected By default Bar Code Scanner is sending the CR ENTER character as a termination character following the scanned message From the Terminator Character selector is possible to get other termination character then CR if required Note Only Ascii characters from 0x21 to OxFE are accepted from the Bar Code Scanner Others characters like white characters space tab are ignored All characters are converted to the lower case characters FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 68 8 3 Serialization Report Dialog Screen Serialization Report Dialog Screen reports the results of the serialization procedure The report contains the detailed information of the two highest serial number programmed units quantity of programmed units along with the new created serial numbers unmodified SN reprogrammed units manually created SN and quantity of the overwritten SN Detailed information about all programmed units can be viewed using the Notepad text editor by pressing the NotePad button Short information of the created serial numbers format date and time of programming is displayed on the white report box see Figure 8 3 1 Serial numbers are created automatically via software by incrementing the highest SN taken from the serial number files If from any reason the highest serial number is wrong it can be removed from the database by pressing the Delete SN button Note that the delete oper
10. C2000 Flash Programmer PMO034A01 Rev 2 23 The Open Code File button or the Open Code File from the FILE pull down menu prompts for opening the object file that contains the code data as shown in Figure 4 3 1 When the file is selected the contents of the object file are downloaded into the PC memory If the selected microcontroller does not have enough memory to fit the data contained in the code file the warning message in Figure 4 3 2 will be displayed and more detailed information displayed in the report window Figure 4 3 3 AA The Code File C Elprotronic Project Cpp DSP C200 data3 txt contains data outside of the TM5320 Microcontroller Flash Memory space or data that should be verified Detected data outside of the FLASH space See the report window for details Please Check the Code file source code or compiler setup Excess data will be ignored Figure 4 3 2 Selected Device Information R M 6 0kB FLASH 32kB Report Code size 0x7980 31104 bytes Code Error report Dut of flash or OTP space data First Address 0x3E 8000 No of errors 49152 List of initial errors ADDR Data Ox3E8000 01011 Ox3E8001 00011 Ox3E8002 01011 Adapter C2000 FlashPro2000 STD E Figure 4 3 3 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 24 When code file is open and read successfully the code file name and full path will be displayed on the right side o
11. if access to the microcontroller is available When the BSL Interface is M __VERIFY FLASH _ selected then the password is verified to unlock access to the READ COPY microcontroller and the Fast BSL is downloaded to the target device Script File none Once the specified action is completed successfully the green check p AUTO PROGRAM mark will appear Also the device will return to the state it was in NEXT F5 before the action was executed i Figure 4 6 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 30 Progress of all actions is displayed in the report window If the particular action has been finished successfully then message done or OK will appear on the right side of processed procedure Fig 4 6 2 If not a message failed will be displayed and selected action will be terminated Final status is also displayed in the Status window see Fig 4 6 3 as Active blue Pass green or Fail red On the bottom of the programmer dialog screen the progress bar is displayed and the total run time is shown in the report window Run time does not include the time when user interaction is required Report Communication initialization OF a CSM Password venfication OF Unlocked by password from Password file Downloading firmware to DSP OF Flash AFI version 3 02 Era ing MEMON ooo eee done All memory Blank checking OF
12. 3234 5332 3334 gt 02WX245234 When the HEX format is selected then the string is converted to HEX format only hex characters are accepted 0 1 2 3 4 5 6 7 8 9 A B C D E F All two character pairs are converted to hex format and saved in memory For example the entered following string 02A3B109E12F will be saved in memory as HEX MSB first gt 02A3 B109 El2F or HEX LSB first gt 2FE1 09B1 A302 Location in the target device s flash memory where described above bytes are saved is specify in the Memory Location SN Start Address in Memory field of the serialization dialog screen see figure 8 2 1 Specified address must be even and should be specified in the empty memory space not used by program code or data block When software detects that any serial number character is using memory location used by code file then the following error message will be displayed Serial Number or Model Text is overlaping the active code space Please check the serialization setup Would you like to continue writing process anyway Yes No Figure 8 2 1 1 8 2 3 Model Group Revision Custom text or data hex saved in target device s flash memory is a string or data up to 32 characters bytes long in Ascii or hex format It can contain any text or data but this feature is FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 66 intentionally created to allow the hardware model revision and group to
13. Below is an easy script file contents that allows to create following sequence l Vcc supplied to target device is turn OFF and first message box with buttons OK CANCEL is displayed Programmer is waiting until button OK or CANCEL is pressed 2 When confirmed then first configuration file test A cfg is downloaded to programmer Configuration file test A cfg should be prepared first using programming software with desired configuration selected desired code file etc Programmer s configuration should be saved using Save setup us option 3 When test code is downloaded and processor started if enabled in test A cfg file then message box is displayed and software is waiting until button YES NO is press Meantime manual target s device test can be done If test is positive then button OK should be pressed Or button NO if test failed 4 When button OK has been pressed then programmer downloads finalcode cfg configuration file to programmer Current configuration can activate serialization if required reload final code to be downloaded etc When the new configuration is reloaded then final code is downloaded to target device serialization is created etc 5 On the end programmer returns to beginning and waiting for the next target device to be connected Script file demo program without DLL file i gt START VCCOFF MESSAGEBOX OKCANCEL VCC if OFF now Connect the test board When ready press the
14. CS_init_crc32_tab unsigned long poly_in int n k unsigned long c poly poly OL for n 0 n lt 32 n poly lt lt 1 poly 1L amp poly_in poly_in gt gt 1 for n 0 n lt 256 n unsigned long n for k 0 k lt 8 k c c amp 1 poly c gt gt 1 c gt gt 1 crc_tab32 n c FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 10 Script File defined programming sequence Programming sequence can be customized when is using a script file Script file prepared as a text file using any editor like notepad can contains customized programming sequences in any order Generally all buttons available on the main dialogue screen can be used in the script file All other options available on others screens like memory options serialization type etc can not be modified from the script file directly but can be reloaded in fully using configuration file From the script file any configuration files can be called at any time that allows to modify programmer configuration This method can simplify programming process using script file and allows to use full options available in the programmer Programming sequence conditions can be taken from user defined procedures attached as an independent DLL if required Programmer has two entry for taking the sequence from the script file 1 By pressing the Script File button in the Main dialog de By using the rf with the
15. Figure 4 1 the desired SN file should be opened Selected file is converted to final format and all listed serial numbers are verified with the data base file if there was note used before If the specified SN have been used before then these numbers are FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 removed from the SN list When the SN file is read and verified then the pending SN list is displayed in the screen Figure 8 4 1 with following information displayed on the top of the list number of the SN found in data base and removed from the pending list number of the Serial Numbers with incorrect size and removed from the pending list number of the accepted SN When the Paste to Notepad button is pressed then the pending Serial Number list can be saved in format ready to be used as a valid SN data file if required Serial numbers list from the file x 0 Number of the SN found in the data base removed from the list 0 Number of the SN numbers with incorrect size F current setup 6 char removed from the list 10 Number of the SN attached to the list 001 123456 002 242211 003 240212 004 24H213 005 2DD214 006 2YY215 007 2ZZ216 008 2NN217 009 2MM218 010 20E219 Paste to Notepad Figure 8 4 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 73 9 Check Sum Options Programming software has two groups of check sum CS calculation The first group is used
16. Flash programming 00 0 done Verfuing check sur OF DONE run time 10 0 sec gt Figure 4 6 2 Status Total 22 Balance 21 SN qty s Figure 4 6 3 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 31 4 6 1 Auto Program button Auto Program button is the most frequently used button when programming microcontrollers in the production process Auto Program button activates all required procedures to fully program and verify the flash memory contents Typically when flash memory needs to be erased Auto Program executes the following procedures reload code file when Reload Code File is selected useful for debugging when the code file is frequently modified initialization read labelling information Serial Number Model Group Revision optional erase flash memory confirm if memory has been erase flash programming and verification labelling information generation flash memory check sum verification retrieve labelling information writing the Security Password if enabled In the report window you can see a typical report message during the Auto Program procedure see Fig 4 6 2 Status window see fig 4 6 3 has a counter that is useful in production process The total number of programmed microcontrollers can be entered in the Total edit line The Balance line shows the number of microcontrollers that have not been programmed yet
17. Password incorrect the DSP cannot be unlocked PS FAILED II Adapter C2000 FlashPro2000 STD E Figure 4 4 3 When target is unlocked that to device can be erased and programmed The security password for locking the target device can be selected from four listed above security passwords By default the security password taken from the code file is used for locking the target device But it can be modified if required by selection of the desired password in the Lock group located in the CSM Security Password dialog screen Also the Security Password option must be enabled in the main dialog screen Figure 4 1 and 4 4 4 CSM Security From Code File W Enable Write CSM password Figure 4 4 4 In the CSM Security group is displayed an active Security Password in this case the Security Password is taken from the Code File When option Enable is not selected then the Security Password is disabled and the location of the Security Password in Flash is not saved By default when flash is erased then the flash contains empty password all OxFFFF When the Enable option in the CSM Security group is selected but contents of the selected Security Password is empty or contains all OxFFFF then the following message is displayed when the target device is programmed Figure 4 4 5 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 28 St ies The selected CSM Security Password is empty all OxF
18. READ FLASH NEXT will take a name and feature of the READ FLASH button NEXT F5 see Fig 4 7 3 The read flash procedure will be called if button NEXT or function key F5 is pressed Figure 4 7 3 4 8 Script button The Script button is the dynamically programmable device Script File none action button that allows to take a desired action taken from the script file Figure 4 8 1 See chapter 9 4 for details of the script file commands The Script button has a name Script File none Figure 4 8 1 if the script file is not defined or Script with used file name when the script file is active Figure 4 8 2 Figure 4 8 2 When the Script button is pressed and the current script file is not active then the Open File dialog is displayed and the desired script file should be selected When the Script file button is not empty and the new script file if required then the new file can be selected from the pull down menu File gt Open Script File The Script button is very useful if target devices are connected in the JTAG chain and more then one unit should be programmed Using one button it is possible to program a few devices connected in the JTAG chain with different code downloaded to each device Below is an easy script file used to download two independent codes to two target devices connected in the JTAG chain Using the notepad editor create the script file and save it eg as the file script chain sf
19. RESET on the main dialog screen equivalent to pressed button AUTOPROGRAM on the main dialog screen equivalent to pressed button VERIFY SEC FUSE on the main dialog screen equivalent to pressed button VERIFY PASSWORD on the main dialog screen equivalent to pressed button ERASE FLASH on the main dialog screen equivalent to pressed button BLANK CHECK on the main dialog screen FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 85 WRITEFLASH equivalent to pressed button WRITE FLASH on the main dialog screen VERIFYFLASH equivalent to pressed button VERIFY FLASH on the main dialog screen READFLASH equivalent to pressed button READ COPY on the main dialog screen READSN equivalent to pressed button READ SN on the main dialog screen WRITECSMPASSWORD equivalent to pressed button Write CSM Password on the main dialog screen TRACEOFF trace OFF TRACEON trace ON and saved in the Trace Scr txt file in current working directory Option useful for debugging Trace file contains sequence of all executed commands from script file in the run time On the left side of all lines the current line numbers correspondent to the line number in the script file are printed Line numbers are counted without empty lines and without lines contains comments only END end of script program Programming sequence conditions can be taken from user defined procedures attached as an independent DLL and called in the script as a function FC
20. The first test checks all memory contents If it fails then just the specified memory segment is checked see setup in Memory Erase Write Group The following conditions can appear at the completion of this operation A all memory is blank all memory is not blank but selected part of it is memory is not blank FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 33 4 6 5 Write Flash button When write flash button is clicked then contents from the code file without the Security Password contents will be written to the flash memory Note 1 See chapter 5 1 Memory Erase Write Group for details on how to specify memory segment for writing Note 2 The Security Password is removed from the Code contents and the unprotected code is downloaded to flash If the Security Password should be downloaded to target device use the Write CSM Password at the endo or use Autoprogram button to process whole programming action to target device 4 6 6 Verify Flash button The Verify Flash function compares the contents of the flash memory with data from the code file Verify flash function initiated this way will always use the standard memory verification method even if the fast verification method is selected from the memory write verification options see chapter 5 Memory Option Dialog Screen At the beginning of the verification the check sum of the programmed data specified in the code file are calculated If checksum is OK then the f
21. Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software Yes this time only C Yes now and every time connect a device No not this time Click Next to continue Back Figure 3 1 2 2 In the second Wizard dialog screen see Figure 3 1 3 select the Instal the software automatically Recommend and press NEXT button FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 13 Found New Hardware Wizard This wizard helps you install software for USB FPA BOOT If your hardware came with an installation CD 42 or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue cmos Figure 3 1 3 Please wait while the wizard installs the software Na Sy 2 USB FPA BOOT Hardware Installation A The software you are installing for this hardware USB FPA BDOT Laja has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passe
22. a 64 bit F24xx or 128 bits F28xx password which the user programs into the flash One Code Security Module CSM is used to protect the flash OTP and the LO L1 SARAM blocks The security feature prevents unauthorized users from examining the memory contents via JTAG or SCI BOOT port executing code form external memory or trying to boot load some software that would export the secure memory contents To enable access to the secure block the user must write the correct 64 bits F24xx or 128 bits F28xx KEY value with matches the value stored in the password location within the Flash The FlashPro2000 provide flexible secure password support that allows to easy manage the old and the new passwords used in the programmed devices Up to four secure passwords are used for unlocking the target device l default password all OXFFFF 2 Password extracted from the code file 3 Password extracted from the password file 4 User defined password Contents of the all passwords can be viewed in the CSM Security Password dialog screen Figure 4 4 1 access from the pull down menu View CSM Passwords for viewing passwords only or from Setup gt CSM Password for viewing and modifying password setup CSM Security Passwords g x Lock Password extracted from the Code File C gt Password taken from the Password File C gt Ox1FFF Dx2FFF OxFFFF OxFFFF OxFFFF OxFFFF OxFFFF DxFFFF gt Defined Password e gt
23. be saved Typically the object code does not contains this kind of information but it may be useful in some applications This feature is enabled when the check box ENABLE in the Model Group Revision field is marked see figure 8 2 1 When enabled the size of desired text or data must be specified in the field Size in Bytes Size value can be any even number between 2 and 32 The location of the text data in the flash memory can be specified in the field Start Address in Memory Similarly to the location of the serial number the specified address must be even and must be specified in the empty memory space unused by program code or data block Otherwise the error message will be displayed The text to be saved in the flash memory can be entered in the edit line Bytes can be entered as an Ascii if Ascii option is selected or in hex bytes if the Hex option is selected When the Ascii Hex selector is modified then the contents data is displayed as an Ascii string or as a hex bytes data 8 2 4 Device Serialization box Device Serialization box located on the main programming dialog screen see figures 8 2 4 1 and 4 1 contains serial number and model information The first two read only lines contain information taken from the target device The next two lines contain model text and serial number that are to be saved Whenever a communication with the target device is performed the model text and serial number is read and displa
24. button OK to test the board CANCEL to exit from program IF BUTTONCANCEL GOTO finish LOADCFGFILE C Program Files Elprotronic C2000 USB FlashPro2000 test A cfg MESSAGEBOX OK Press OK to download the test program UTOPROGRAM D MESSAGEBOX YESNO Press YES when the test finished successfully Press NO when the test failed FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 87 IF BUTTONNO GOTO START LOADCFGFILE C Program Files Elprotronic C2000 USB FlashPro2000 finalcode cfg AUTOPROGRAM GOTO STAR gt finish END Script below allows to start programmer download configuration file open the code file and program target device When finished then report failed or pass is saved into the file File contents can be serviced by the external program The GUI popup messages are disabled j Script file demo program Program MCU and exit Save report in the file i GUIMSGBOX DISABLE select Disable or Enable remove or add comment GUIMSGBOX ENABLE IFGUIMSGBOXPRESS CANCI Gl E press CANCEL if GUI box is generated but disabled to be displayed ifGuiMsgBoxPress cancel This is OK also Commands are not case sensitive LOADCFGFILE test script cfg recommended full path and name IF FAILED GOTO fileerror LOADCODEFILE test_1k txt recommended ful
25. chain should be selected The IR size in the TMS320F28xx is 38 bits But other devices connected in the JTAG chain can have not the same IR size The JTAG IR size setup dialog screen available under pull down menu Setup gt JTAG Chain allows to select desired target device with know the IR size or enter the IR size for unknown devices Figure 7 2 Up to six devices can be specified in the JTAG IR size dialog screen When the device is not specified in the pull down menu then option Other should be selected and desired IR size entered in the IR size field JTAG IR size Setup I x Up to six devices can be connected in the JTAG Chain TDI gt Device 1 gt Device 2 gt gt Device 6 gt TDO If more devices are in the chain then combine two or more devices as the one device with combined IR size Total IR size in chain cannot exceed 255 bits m Devices in JTAG Chain Selection Device IR size 1 gt HENO Cancel Figure 7 2 When the IR size is unknown then it is possible to detect the total size of the IR size using the FlashPro2000 software Connect device or devices in the JTAG chain connect JTAG adapter to target device and press any action button like READ button At the communication startup the total IR size and number of devices connected in the chain are displayed in the report window regardless of the success or failed the following JTAG communication Figure 7 3 In the example below are conn
26. from FPA EMU 1 output from FPA DSP Reset XRSn output from FPA JTAG TCK Input pin Not used output from FPA JTAG RESET Not used output from FPA Not used SCI TX from the target input to FPA Not used SCI RX to target output to FPA FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 100 12 1 JTAG connection C2000 JTAG PE034X02 1 Elpr tronic Inc 2008 ny Figure 12 1 CC SW Vec sense 4 roi to osp 5 ms TDO from DSP TEK Socket Header From FPA TMS320F2xxx JTAG FlashPro2000 JTAG Adapter for TMS320F 2xxx PN PEO34X02 ELPROTRONIC INC Figure 12 2 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 101 12 2 SCI BOOT connection C2000 SCI BOOT Q amp S PEO34X01 0 084 Elprotronic Inc 2008 Figure 12 3 vCC SW TDO TDI Vec sense TDI to target i Vec sense DSP RST Tx from DSP nc Tx from target BOOT SCI 9 Rx to target Header Socket to TMS320F2xxx Pin 5 Tx from DSP SCITXD SCIA TX SCIA TX SCIA TX SCIA TX GPIO 29 GPIO 29 GPIO 29 GPIOF4 From FPA Pin 7 Rx to Dsp SCIRXD A Pc Pa GPIO GP10 28 GP10 28 GPIOF5 FlashPro2000 SCI BOOT Adapter sa E sneer se for TMS320F 2xxx via resistor via resistor Pull Down SPISIMO _ PN PEO34X01 via res 10 100k MP MT ii Pull Up GPIO 34 GPIO 18 3 GPIOF2 ELPROTRONIC_INC version weve FER ase E Figure 12 4 FlashPro2000 C200
27. from the code file and target devices are the same then the chunk 1 checksum 0x1BB18 is taken to the global check sum calculation otherwise minus one OxFFFFFFFF is taken for the checksum calculation from the target device The same rule applied to the second data chunk If two above chunks are calculated without errors PSA are the same then the check sum of these two chunks is CS 0x1BB18 0x1324E 0x0002ED66 the same as in the example above If the PSA from the first chunks are not the same then the CS result taken from the target device is minus one regardless the chunk 1 arithmetic check sum result CS OXFFFFFFFF 0x1324E 0x0001324D When the PSA results are not the same even in one chunk calculated from the code data and taken from the target device then the final verification result failed regardless the CS result If code is longer and data are placed without gap then code is divided to chunks with size of each chunk up to 64 words This means that the PSA are calculated from the chunks size up to 64 words each Note 1 During the verification process either all memory or just the selected part of the memory is verified depending on settings specified in the Memory Erase Write Address Range in the Memory Options setup See chapter 5 1 Memory Erase Write Group for details FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 36 Note 2 Checksum is calculated fo r the whole code downloaded to target device an
28. gt BOOT SCI Q Socket FlashPro2000 SCI BOOT connection with the TMS320F2802x Piccolo Figure 12 7 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 104 TMS320F 28 1x GPIOF 2 GPIOF 2 i GPIOF3 Top View GPIOF3 Veo 3 34 Ycc sense CC XRSn DSP RST SCIA TX GPIOF 4 SCIA TX Tx from DSP 5 SCIA RX GPIOF 5 SCIA RX to Dep 7 Dsp GPIOF 12 ra BOOT SCI 9 2 2k GPI0F12 FlashPro2000 SCI BOOT connection with the TMS320F281x Figure 12 8 TMS320F 2823x F2833x 87 GPIO 87 a GPIO 86 GPIO 86 GPIO 85 Vec sense vcc DSP RST XRSN SCIA TX GPIO 29 SCIA TX Tx from DSP GPIO 28 SCIA RX Rx to Dsp 7 SCIA RX GPIO 84 BOOT SCI_9 GPIO 84 gt mi vv 2 2k Socket GND FlashPro2000 SCI BOOT connection with the TMS320F2823x F2833x Figure 12 9 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 105 Appendix A Specification Specification FPA adapters USB FPA 4 4 PC Communication Interface Full Speed USB 1 1 12Mbits s USB connector Adpater site USB type B Computer site USB type A Target connector 14 pins header connector with JTAG and SCI BOOT communication capability Adapters required to convert the pinout from FPA to TI s standard JTAG or SCI BOOT DC Power from USB Interface 5V 20 TOMA target s current 0 100mA Target Device DC supply external 3 0 V to 5 0 V Communication speed via JTAG Interface Fast JTA
29. other file name See this chapter below for all available instructions that can be used in the script file r easy script file LOADCFGFILE C Program Files Elprotronic C2000 USB FlashPro2000 test cfg LOADCODEFILE C Program Files Elprotronic C2000 USB FlashPro2000 test cfg AUTOPROGRAM now the hardware is tested according to downloaded firmware MESSAGEBOX YESNO Press YES when the test finished successfully Press NO when the test failed IF BUTTONNO GOTO finish LOADCFGFILE C Program Files Elprotronic C2000 USB FlashPro2000 final cfg LOADCODEFILE C Program Files Elprotronic C2000 USB FlashPro2000 final cfg AUTOPROGRAM gt finish END When the script file above is used then the first configuration file and the fist code file is downloaded and Autoprogram function is executed When finished then the MCU firmware started make sure that the first configuration allows to start the code when the Autoprogram is finished Final code is downloaded when the test has been finished successfully Before running the script file the configuration files named test cfg and final cfg required in the project should be created using the GUI software first To do that connect target devices to programming adapter select desired configuration and save the configuration file as test cfg and create final configuration file in similar way 10 2 Script file optio
30. x This wizard helps you to create shortcuts to local or network programs files Folders computers or Internet addresses Type the location of the item Prg exe lock sf E MFG prg 04 cf Browse Click Next to continue Back Cancel Figure 11 3 5 configuration setup and locked if required FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 99 12 Target connection The Flash Programming Adapter FPA 4 4 contains 14 pins header connector that support the JTAG and SCI BOOT communication with C2000 DSPs The FlashPro2000 hardware package contains two adapters that can convert the pinout from FPA to desired interface L C2000 JTAG adapter Figure 12 1 and 12 2 that convert the pinout from FPA adapter to standard TI s JTAG presented in the TMS320F2xxx DSP 2 C2000 SCI BOOT adapter Figure 12 3 and 12 4 that convert the pinout from FPA adapter to SCI BOOT customized adapter The definition of all the pins in the FPA adapter is given in the tables 12 1 Table 12 1 FPA Interface connector 1 Red JTAG Data output from target device Not used input to FPA 2 a i VCC In Sense Do not use in the FlashPro2000 application Do not use in the FlashPro2000 application 3 JTAG Data Input to target device Not used output from FPA Target s Device Vcc Sense 0 to 5V Target s Device Vcc Sense 0 to 5V iInput to FPA Input to FPA TMS Input to target device BOOT SCI selection output from FPA output
31. 0 Flash Programmer PMO034A01 Rev 2 102 When the JTAG communication is used then the C2000 JTAG adapter should be plug in to FPA adapter and using 14 wires ribbon cable the C2000 JTAG adapter should be connected with standard TP s 14 pins JTAG connector as it shown on Figure 3 2 1 When the SCI BOOT interface is used then the C2000 SCI BOOT adapter should be plug in to FPA adapter and using 10 wires ribbon cable the C2000 SCI BOOT adapter should be connected with customized 10 pins SCI BOOT connector The SCI BOOT connections are not the same for all TMS320F2xxx microcontrollers and the connection related to used hardware should be created See TP s documentation for details Below are presented schematics of the typical connection to target devices Figure 12 5 12 6 12 7 12 8 and 12 9 TMS320F240x epro 18 LMP AMC 2 2k GPIO 29 SPISIMG 22k vec Voc sense XRSN DSP RST SCITXD Tx from DSP 5 a SCIRXD BOOT EN XF BOOT SCl 9 a FlashPro2000 SCI BOOT connection with the TMS320F240x Figure 12 5 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 103 TMS320F 280x GPIO 18 GPIO 29 Ycc sense vce Ba OSP RST sera Tx o ePIO 29 SCIA TX Tx from DSP GPIO 28 SCIA R SCIA RX 2 2k GND FlashPro2000 SCI BOOT connection with the TMS320F280x Figure 12 6 TMS320F 2802x GPIO 34 Top View Ji GPIO 34 vec Vcc sense XRSN A Tx from DSP Rx to Dsp 7 SCIA TX SCIA RX D
32. 0091016 Format yyyy1234 Device Action I Reload Code File a A _ Verity CSM Password Ti ERASE FLASH Ti BLANK CHECK WRITE FLASH Ti WRITE SN Model I VERIFY FLASH O READ COPY Erase Write memory option Flash Memory only Figure 4 1 Programming dialog box screen Script File none 5 PROGRAM NEXT F5 The programming dialog box see Fig 4 1 contains a pull down menu interface selection box CSM Security blow fuse box device action buttons report status window open file buttons processor information box serial number box power DC status DSP CLK information and check sum result boxes FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 20 All device action buttons power ON OFF button and the check sum result box have their own status indicators Each indicator can assume any of the following conditions blank idle status yellow Test in progress For power on off DC voltage is correct green access enabled red sign access denied For power on off DC voltage is too low below 2 6V device action has been finished successfully KKOO device action has been finished but result failed applies to blank check only Memory is not clean but the specified memory segment is 4 1 Interface Type The communication interface type SCI Boot JTAG fast and JTAG slow can be selected in the Interface group Prop
33. 2 hence od tea sete das 66 8 2 4 Device Serialization OX iria 67 8 2 5 Bar Code Scanner SUD ai AR oo Me ea ace e ee 68 8 3 Serialization Report Dialog Screen 2 0 0 cee eee eee 69 Ge SNdatafile a ed yuh OES Saute iat hake tg Dead dao Tae e den dl 70 9 Check Sum Options so ls A EA A A A ln o a ld 74 9 1 Check Sunt types ett AAA AAA teeta een 77 10 Script File defined programming sequence 0 0 eee 82 10 1 Script DUO des AA A A eles yeaa ees 82 10 2 Script file optin cero aii 83 10 3 Serpe commands ES A A E E eR Eee ks 84 11 Project and Configuration Load Save A A A A ARA A AI 92 11 1 Load Save Set p nner Sond A Od SA AA AA 92 TT Eoad Save Project te a Scie we ecw al Sue 92 11 3 Commands combined with the executable file o 96 IZ TGF CONMECUON saes ga da Haass PANS ae ees Pawn A eee 100 12 14 FRAG CONRECHON geet cating eG eee tate aes db 101 122 SCI BOOT connection so 240654 Gas see oa 102 Appendix A Specificauion oo cossirs AA VR AEA GAR ORNS AA A REA 106 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 7 1 Introduction FlashPro2000 programmer is dedicated to programming the Texas InstrumentsC2000 DSP family TMS320F24xx and TMS320F28xx Using FlashPro430 programmer the target device can be programmed via JTAG Interface 4 wires or via SCI BOOT Interface Each programmer package Figure 1 1 consists of a microcontroller based adapter Windows
34. 3030123 will be saved as YYMM 0303 gt 0x03 0x03 bytes 1234 0123 gt 0x01 0x23 bytes In flash memory this number can be seen as lt Hex format bytes gt 0303 0123 Size 4 bytes Display Format YYMMDD 1234 size in FLASH 5 bytes SN 0405110123 will be saved as YYMMDD 040511 gt 0x04 0x05 0x11 1234 0123 gt 0x01 0x23 In flash memory this number can be seen as lt Hex format bytes gt 0405 1101 2300 Size 5 bytes Display Format YYDDD 1234 size in FLASH 4 bytes The format date is compressed to be able to fit data only in two bytes as follows Bit 15 12 Year number multiple of ones 9 8 1 0 11 10 Year number multiple of tens 3 2 1 0 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 62 9 8 Day number multiple of hundreds 3 2 1 0 7 4 Day number multiple of tens 9 8 1 0 3 0 Day number multiple of ones 9 8 1 0 SN 041110123 will be saved as YYDDD 04111 Decy gt 0x41 0x11 hex 1234 0123 gt 0x01 0x23 hex Display Format 123456768 size in FLASH 4 bytes SN 12345678 will be saved as 1234 5678 gt 0x12 0x34 0x56 0x78 bytes In flash memory this number can be seen as lt Hex format bytes gt 1234 5678 Size 4 bytes Display Format 1234 size in FLASH 2 bytes SN 1234 will be saved as 1234 gt 0x12 0x34 bytes In flash memory this number can be seen as lt Hex format bytes gt 1234 Size 2 b
35. A OxE238 0x38AC 0x0002ED66 Because that simple check sum calculation can give the same result with different code then the PSA is calculated together with the Check Sum above The PSA is calculated for each continues parts of code or data from flash When the PSA calculated from code and target device are the same then the check sum above is not modified If the PSA calculated for the part of code are not the same then the par of the check sum above taken from the target devices is taken as minus 1 OXFFFFFFFF and final checksum verification failed Following PSA 16 bits width procedure is used in the FlashPro2000 UINT PSA_calculation long start_address int size UINT16 data int k UINT16 PSA PSA_POLY PSA_POLY 0x0805 PSA OxFFFF start_address OxFFFF amp start_address gt gt 16 for k 0 k lt size k if PSA amp 0x8000 PSA PSA PSA_POLY PSA PSA lt lt 1 1 else PSA PSA lt lt 1 PSA PSA data k return PSA FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 35 In the code example above would be calculated two chunks of data first for data taken from addresses 0x3F0000 and second taken from addresses 0x3F0100 Size of each chunk 3 words Chunk 3F0000 address 0x 3F0000 2386 AS3F F253 Chunk 1 check sum 0x1BB18 Chunk2 3F0100 address 0x 3F0100 176A E238 38AC Chunk 2 check sum 0x1324E If the PSA of chunk 1
36. DC CD03 OFFF CAAS 9603 8442 92E4 E FFFO 900F CAAS 9604 8A42 92EC 900F Ox3F4048 FFOF FF83 CAAS 9604 8A42 92F4 900F TI hex txt INTEL hex Copy Paste to Notepad Exit Figure 5 1 memory space of the selected microcontroller then warning message FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 41 Data out of the Flash Memory Space of the selected TMS320F2000 is displayed first The contents of the code viewer can be converted to Texas Instruments txt or Intel hex file format by clicking on the TI hex txt or Intel hex button Data will be viewed in the Notepad Editor Contents of the Flash Memory data can be viewed by selecting of the Flash Memory Data from the View menu Flash Memory data viewer displays the memory address data in hex and Ascii format in the same way as the code data viewer Figure 5 1 and 4 6 7 1 To be able to see Flash Memory contents Read Flash option must be selected first Contents of the Code File data and Flash Memory Data or two code files can be compared pata viewer i x Addr DO 01 D2 04 05 06 07 D8 lt scil gt Data Result Comparation Only data from the code file that does not match vith the Flash Memory data is displayed Extra data from the Flash Memory is ignored First Line Data from the Code File Second Line Data from the Flash Memory Ox3F4018 NE ID AA A SOLE sssi Ox3F4018 espacio died Decen
37. FFF k all OxFFFF Ox3F4000 to Ox3F7FFF A842 761F 01C4 1418 E D C v FFE1 9243 900F CDOO ia TANO POLO 1800 REDE Arana 900F CAAB 9602 BAA D B GARG 9609 BAd2 92EC WA GAAB 9603 BALZ 9204 yopo CAA8 9603 8A42 5603 Y S609 B442 9254 COON SANS Das BAA 92E 9DDE EDDA ii ars Figure 4 6 7 1 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 37 data in Ascii format in the right column The contents of the code viewer can be converted to Texas Instruments txt or Intel hex file format 16 bits width by clicking on the TI hex txt or Intel hex button Data will be viewed in the Notepad Editor Read address range can be specified in the Memory Option screen See chapter 5 2 Read group for details When the Copy button is clicked then the contents of the read target device memory would be saved in the specified by user file name and opened as a current Code File Also programmer setup would be modified for the copy procedure Especially the serialization will be disabled and the Flash Memory only option will be selected in the Write Erase Verify Address Range Following message shown on figure 4 6 7 2 is displayed Copy Flash l xi Contents of the Flash Memory has been saved in the file C Elprotronic Project Cpp DSP C2000 FlashPro2000 dataS hex and opened as a current Code File Note The Flash Memory
38. FFF Nothing to save Figure 4 4 2 In this case the Enable option should be disabled or selected Security Password contents corrected 4 5 Power Device and Clock frequency test The programming adapter is monitoring the Vcc taken DSP clock MHz CLE 0 00 reassured Fi CLE 20 00 PLL 50 00 from the programmed device On the main dialog screen the value of the Vcc is displayed When the Vcc is higher then 3 0V the green LED is displayed Figure 4 5 1 Communication with target device can be established When the measured Vcc is below 3 0V then the following message a is displayed when the communication with target device is initialized Figure 4 5 2 Figure 4 5 1 The programming procedure times used in the Flash API using the external clock frequency supplied to DSP The frequency of this used clock must be specified first The FlashPro2000 is measuring the frequency of the external clock connected to DSP and displaying the CLK frequency AAA A A Turn DC Power ON now Please press OK gt when power is turned ON CANCEL gt terminate this action cous Figure 4 5 2 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 29 and the system frequency PLL frequency in the main dialog screen in the DSP clock MHz group Figure 4 5 1 For double checking it is required to enter the expected CLK frequency in the CLK field If the measured frequency is not the same as the specif
39. FlashPro2000 Flash Programmer for Texas Instruments C2000 DSPs family User s Manual Software version 1 2 PM034A01 Rev 2 June 26 2009 Elprotronic Inc Elprotronic Inc 16 Crossroads Drive Richmond Hill Ontario L4E 5C9 CANADA Web site www elprotronic com E mail info elprotronic com Fax 905 780 2414 Voice 905 780 5789 Copyright Elprotronic Inc All rights reserved Disclaimer No part of this document may be reproduced without the prior written consent of Elprotronic Inc The information in this document is subject to change without notice and does not represent a commitment on any part of Elprotronic Inc While the information contained herein is assumed to be accurate Elprotronic Inc assumes no responsibility for any errors or omissions In no event shall Elprotronic Inc its employees or authors of this document be liable for special direct indirect or consequential damage losses costs charges claims demands claims for lost profits fees or expenses of any nature or kind The software described in this document is furnished under a licence and may only be used or copied in accordance with the terms of such a licence Disclaimer of warranties You agree that Elprotronic Inc has made no express warranties to You regarding the software hardware firmware and related documentation The software hardware firmware and related documentation being provided to You AS IS without warranty
40. G up to 3 Mb s Slow JTAG up to 1Mb s Communication speed via SCI BOOT Interface Initialization UART baud rate 5 to 20 kb s Standard communication up to 500 kb s Size 76x43x20mm 3 0 x 1 68 x 0 8 inch Verification Compliance CE European CISPR 22 and EN 55022 FCC Part 15 Subpart B Class B Unintentional Radiators for Uses in Home Commercial and Industrial Areas RoHS Elprotronic Inc FlashPro2000 Flash Programming Adapter for TPs DSP C2000 PN USB FPA 4 4 SN 20090001 ae s ya ov 2 le e o CE EC www elprotronic com Figure A 1 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 106 VO schematic of the FPA 4 4 in the FlashPro2000 is shown on Figure A 2 ELPROTRONIC INC 220pF GND y TCK FlashPro2000 FPA 4 4 Figure A 2 ves CI RESET lt C BSL GUT gt BSL IN lt I BSL EN CI TEST lt TD0 0UT C TDS TDI EN C gt TDO IN lt XDUT CI XOUT EN CI TCK EN FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 107
41. G fast JTAG slow Figure 7 1 When the SCI Boot interface is used then the initial after DSP reset UART communication between target device and FPA is established with baud rate related to the selected CLK frequency The initial communication baud rate is in the range 5 kb s to 20 kb s That initial communication is used to download the fast boot loader to DSP RAM When the fast boot is downloaded then the new communication protocol is initialized with communication speed up to 500 kb s Make sure that hardware in the SCI TX RX lines have no components that can degradate the communication speed 7 2 JTAG Chain Selector Box The JTAG communication standard allows to connect more then one devices in the chain In the chain then the TDO from the first device is connected to the TDI of the second device TDO from the second device connected to TDI of the next device etc All other lines like TMS TCK RST are connected in parallel The TDI of the first device is connected to TDI output of the JTAG interface and the TDO of the last device is connected to TDO input of the JTAG interface The FlashPro2000 can make a communication with target device connected in the JTAG chain but the JTAG configuration must be specified first Software should know how many devices are connected FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 50 in the chain what is the size of the IR registers of each devices connected in the chain and which device in the
42. IF condition CALL label condition list BUTTONOK BUTTONYES BUTTONNO BUTTONCANCEL DONE FAILED CONTROL number FCONTROL type argument PAUSE number OPENDLLFILE filename LOADCFGFILE filename LOADCODEFILE filename LOADPASSWFILE filename LOADSNFILE filename RESET AUTOPROGRAM VERIFYFUSE VERIFYPASSWORD ERASEFLASH BLANKCHECK message taken from the FCONTROL function User s DLL pop up message box with buttons Text displayed in message box Each line contents must be located between characters Number of content lines up to 50 lines One button OK Two buttons OK CANCEL Two buttons YES NO Three buttons YES NO CANCEL CALL procedure return from CALL if button OK pressed in the message box if button YES pressed in the message box if button NO pressed in the message box if button CANCEL pressed in the message box if selected process e g AUTOPROGRAM Read File etc finished successfully if selected process e g AUTOPROGRAM Read File etc failed if status from the FCONTROL function NUMBER call the external function from FxControl DLL pause in miliseconds 1 to 100000 range 1ms to 100 s FxControl DLL file Full path and DLL File name Configuration file Full path and File name Code file Full path and File name Password file Full path and File name File with Serial Number list Full path and File name equivalent to pressed button
43. NOTE After a label you cannot specify any commands in the same line Line can only contain a label LIST OF INSTRUCTIONS MESSAGE message declaration that can be saved to file if required message line 1 Text message line 2 Each line contents must be located between characters max up to 50 lines Number of content lines up to 50 lines SAVEMSG filename save message created in MESSAGE to specified file APPENDMSG filename append message created in MESSAGE to specified file SAVEREPORT filename save message from the GUI report window to specified file APPENDREPORT filename append message from the GUI report window to specified file GUIMSGBOX ENABLE display the message boxes warning errors etc created by GUI enabled GUIMSGBOX DISABLE display the message boxes warning errors etc created by GUI disabled IFGUIMSGBOXPRESS OK apply button OK YES when the message box created by GUI is generated but disabled to be displayed FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 84 IFGUIMSGBOXPRESS CANCEL apply button CANCEL NO when the message box created by GUI is generated but disabled to be displayed MESSAGEBOX type FCTEXT pop up message box with buttons MESSAGEBOX type message line 1 message line 2 max up to 50 lines Message box type list OK OKCANCEL YESNO YESNOCANCEL GOTO label CALL label RETURN IF condition GOTO label
44. O NOT AGREE BUTTON OR OTHERWISE INDICATE REFUSAL MAKE NO FURTHER USE OF THE FULL PRODUCT AND RETURN T WITH THE PROOF OF PURCHASE TO THE DEALER FROM WHOM IT WAS ACQUIRED WITHIN THIRTY 30 DAYS OF PURCHASE AND YOUR MONEY WILL BE REFUNDED 1 License The software firmware and related documentation collectively the Product is the property of Elprotronic or its licensors and is protected by copyright law While Elprotronic continues to own the Product You will have certain rights to use the Product after Your acceptance of this license This license governs any releases revisions or enhancements to the Product that Elprotronic may furnish to You Your rights and obligations with respect to the use of this Product are as follows YOU MAY A use this Product on many computers B make one copy of the software for archival purposes or copy the software onto the hard disk of Your computer and retain the original for archival purposes C use the software on a network YOU MAY NOT A sublicense reverse engineer decompile disassemble modify translate make any attempt to discover the Source Code of the Product or create derivative works from the Product B redistribute in whole or in part any part of the software component of this Product C use this software with a programming adapter hardware that is not a product of Elprotronic Inc 2 Copyright All rights title and copyrights in and to the Product and any cop
45. ONTROL type argument call the external function from FxControl DLL Function should be created using Visual C and attached to FlashPro430 software When the DLL is created then the full path and name of the used DLL should be specified in the script file In the script file the name of the desired DLL can be specified on line few times This means that more then one DLL can be used in the programming sequence but only one DLL at the time When the new DLL file is open then the old DLL file is closed at the same time One function is used in the user defined DLL _int32 F_Control _int32 type _int32 argument char message Parameters type and argument are specified in the script file and are transferred from the programming software to DLL Status from F_Control and message are transferred from DLL to programming software Programming software package contains the source code of the user defined DLL Package has been prepared using MS Visual C net package Source code is located in directory C Program Files Elprotronic FxControl DLL User defined function should be inserted in empty place inside the FxControl cpp file and recompiled Recompiled file FxControl dll ready to be used will be located in directory C Program Files Elprotronic FxControl DLL release FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 86 DLL file can be renamed to any file name and name and specified in the script file via command OPENDLLFILE filename
46. PDF reader By default it is entered Acrobat Reader AcroRd32 exe If other PDF reader is used in the system then the full path of the used PDF reader should be entered in the edit line Name and path can also be entered using the Browse button The FlashPro2000 software allows to convert the out file generated by TP s Code Composer Studio CCS However the TT s hex2000 exe conversion file is used during the conversion process It is required to enter the path to the hex2000 exe file otherwise the conversion of the out will not work All parameters required during conversion the out file to 16 bits width Intel file are generated automatically by the FlashPro2000 software By default the hex2000 exe is located in the following CCS directory C CCStudio_v3 3 C2000 cgtools bin The full path and file name selected in this case is C CCStudio_v3 3 C2000 cgtools bin hex2000 exe If from any reason the file is located in other place then the path and name of the hex2000 exe should be entered in the TI HEX conversion utility line If the CCS is not installed in the PC then it is recommended to copy and paste the hex2000 hex file from other PC where the CCS is installed and copy this file eg to FlashPro2000 directory C Program Files Elprotronic C2000 USB FlashProC2000 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 54 Path and name of the hex2000 exe should be provided in the TI HEX conversion utility line In the Option group box it i
47. TAG Elprotronic Inc 2008 a wires flat ribbon cable 6 One C2000 SCI BOOT PE034X01 adapter PRESET PEO34X01 0 084 with 10 wires flat ribbon cable 3 1 Software Installation The FlashPro2000 Programming Software runs on PC under Windows ME WinNT 2000 XP 32 b or VISTA 32 b Follow instructions below to install the software ll Insert Software CD into your CD ROM drive 2 The Setup wizard appears automatically Click FlashPro2000 button to start the installation process Figure 3 1 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 11 FLASH PROGRAMMING SOFTWARE FOR TEXAS INSTRUMENTS MCUs Press desired button to install a software Exit m Flash Programmers for Texas Instruments MSP430 Microcontrollers mmm SUPports USB FPA Adapters from Elprotronic only FlashPro430 GangPro430 Contanins GUI API DLL USB drivers Examples Si Daa mentation Supports TI s adapters MSP FET430UIF MSP FET4301F EZ430 and Third Party Adapters Standard software with FET Pro430 Standard serialization Contains GUI Drivers for TI s adapters API DLL Examples Documentation Supports TI s adapters MSP FET430UIF MSP FET4301F FET Pro430 Lite free EZ430 Contains GUI Drivers for Tl s adatpters Documentation m Flash Programmers for TI s Chipcon CCxx Microcontrollers Supports USB FPA Adapters from Elprotronic only FlashPro CC GangPro Cc Contanins GUI API DLL USB drivers Examples
48. The Balance counter is initialized to the value entered in the Total edit line and is decremented every time Auto Program is completed successfully When the serialization from file option is used then in the bottom line is displayed the number of the serial numbers left in the list Note Balance counter works only with Auto Program procedure FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 32 4 6 2 Verify CSM Password button This button allows the Security Password to be verified This is useful if you try to find the correct password from a few available password files This procedure is used for test purposes only 4 6 3 Erase Flash button This button enables the flash memory segments or mass all memory to be erased If any option other then Erase All Memory is selected in the Memory Options Setup see chapter 6 1 Memory Erase Write Verify Group for details then the following question message box will be displayed Memory erase gt Would you like to erase all memory contents ss Please press YES gt to erase all memory contents NO gt to erase user defined memory space CANCEL gt to abort this task Yes No Cancel Figure 4 6 3 1 4 6 4 Blank Check button When Blank Check button is clicked the program checks if flash memory of the target microcontroller is blank all bytes contain the value OXFFFF This test checks if either all memory is clean or just the specified memory segment
49. YYMM 1234 5 size in FLASH 4 bytes SN 030300123 will be saved as YYMM 0303 Decy gt Ox012F hex 12345 00123 gt 0x007B hex In flash memory this number can be seen as 012F 007B gt HEX MSW first 007B 012F gt HEX LSW first Display Format YYMMDD 1234 size in FLASH 4 bytes The format date is compressed to be able to fit data in only in two bytes as follows Bit 15141312111098 76543210 lt year 2000 gt lt month gt lt day gt SN 0405110123 will be saved as YYMMDD 040511 Decy gt Ox08AB hex 1234 0123 gt 0x007B hex In flash memory this number can be seen as OSAB 007B gt HEX MSW first 007B O8AB gt HEX LSW first Display Format YYDDD 1234 size in FLASH 4 bytes The format date is compressed to be able to fit data only in two bytes as follows Bit 15141312111098 76543210 lt year 2000 gt lt day of year gt SN 041110123 will be saved as YYDDD 04111 Decy gt OxO86F hex 1234 0123 gt 0x007B hex FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 60 In flash memory this number can be seen as 086F 007B gt HEX MSW first 007B O86F gt HEX LSW first Display Format 123456768 size in FLASH 4 bytes SN 12345678 will be saved as 12345678 Decy gt 0x00BC614E hex In flash memory this number can be seen as OOBC 614E gt HEX MSW first 614E 00BC gt HEX MSW first Display Format 1234 5 size in FLASH 2 byt
50. _def_POLY for CRC16 defined polynomial where void CS_init_crcl6_tab unsigned short poly int i j unsigned short crc c FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 79 for i 0 i lt 256 i crc 0 Q Il unsigned short i lt lt 8 for j 0 j lt 8 j if cre c amp 0x8000 ere cre lt lt 1 poly else cre cra lt lt 1 3 c c lt lt 1 erc_tab32 i unsigned long OxFFFF crc CRC32 Poly 0x04C11DB7 8b 32b Named as IEEE 802 3 and CRC32 defined polynomial 8b 32b Check Sum is calculated as CRC32 from each bytes from Start to the End Addresses as follows CS CS_initial_value for addr StartAddress addr lt EndAddress addr ES CS_CRC32_8t032 long 0xFF amp dataladdr CS CS CS_CRC32_8to32 long 0xFF amp dataladdr gt gt 8 CS CS OxFFFFFFFF amp CS if cs_inverted CS OxFFFFFFFF CS where unsigned long CS_CRC32_8to32 long data unsigned long crc return crc gt gt 8 amp OxOOFFFFFF crc_tab32 0xFF crc data The CRC table is generated first as follows CS_init_crc32 tab 0x04C11DB7 for IEEE 802 3 a polynomial of FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 80 X32 x26 x23 x22 x16 x12 x11 x10 x8 x7 x5 x4 x2 x 1l and CS_init_crc32_tab CRC_def_POLY for CRC32 defined polynomial where void
51. ain current year and remaining 4 or 5 characters contain the serial number eg SN 20030123 or 200300123 has a number 0123 or 00123 created in the 2003 year FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 58 2 YYMM 1234 5 SN Format F1 Serial number has 8 or 9 characters First two characters contain last two digits of current year next two characters contains current month and remaining 4 or 5 characters contain a number eg SN 03030123 3 YYMMDD 1234 SN Format F5 Serial number has 10 First six characters contain date year month day of month and remaining 4 characters contain a number eg 0405120123 4 YYDDD 1234 5 SN Format F4 Serial number has 9 or 10 First five characters contain date year day of year from to 366 and remaining 4 or 5 characters contain a number eg 041230123 5 123456768 SN Format F2 8 digits serial number without date stamp 6 1234 5 SN Format F3 4 or 5 digits serial number without date stamp 7 Custom SN Format F6 4 to 16 Ascii characters or hexadecimal numbers entered manually or from the Bar Code Reader 8 From the file SN Format F7 4 to 16 Ascii characters or hexadecimal numbers taken from the user created file Serials numbers format 1 to 6 can be stored in memory in HEX BCD or Ascii format These formats accept only numeric characters from 0 to 9 All numbers are displayed in the decimal format regardless of the format HEX BCD A
52. al number is combined as a string starting from prefix modified part and ending with suffix For example 1f the following serial number should be created AB2007X 0001 BMR AB2007X 0002 BMR AB2007X 0003 BMR can the SN be specified as follows SN_PREFIX AB2007X SN_SUFFIX BMR and list of following serial numbers 0001 0002 0003 Prefix and or suffix numbers can be modified in the list 1f required eg SN_PREFIX AB2007X SN_SUFFIX BMR 0001 0002 0003 SN_PREFIX AB2007V 0001 0002 0003 that defined following serial numbers AB2007X 0001 BMR AB2007X 0002 BMR AB2007X 0003 BMR FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 71 AB2007V 0001 BMR AB2007V 0002 BMR AB2007V 0003 BMR Example of the Serial Number list 5 lines only in this example i Serial Number List SN format Ascii IEEE SN LIST SN_SIZE 12 WX5E2007001P WX5E2007002P WX5E2007003P WX5E2007004P WX5E2007005P r The same Serial Number list with specified prefix suffix i j Serial Number List SN format Ascii IEEE_SN_LIST SN_SIZE 12 SN_PREFIX WX5E2007 any Ascii character SN_SUFFIX P 001 002 003 004 005 r When the SN data file is prepared then at the first the data base file should be opened see Figure 8 2 When the desired Serial Number Format is selected then using the SN IEEE file button located in the main dialog screen
53. all 2 byte words unsigned from Start to the End Addresses as follows CS CS_initial_value for addr CS CS unsigned int dataladdr CS OxFFFF amp CS if cs_inverted cs OxFFFF CS StartAddress addr lt EndAddress addr Arithmetic Sum 16b 32b Check Sum is calculated as modulo 32 bits sum of all 2 byte words unsigned from Start to the End Addresses as follows CS CS_initial_value for addr CS CS unsigned long data addr StartAddress addr lt EndAddress addr FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 78 CS OxFFFFFFFF amp CS if cs_inverted CS OxFFFFFFFF CS CRCI6 Poly 0x11201 8b 16b Named as CRCCCITT and CRCI6 defined polynomial 8b 16b Check Sum is calculated as CRC16 from each bytes from Startto the End Addresses as follows CS CS_initial_value for addr StartAddress addr lt EndAddress addr ES CS_CRC16_8to16 long 0xFF data addr CS CS CS_CRC16_8to16 long 0xFF dataladdr gt gt 8 CS CS OxFFFF amp CS if cs_inverted CS OxFFFF CS where unsigned long CS_CRC16_8to16 long data unsigned long crc unsigned long tmp tmp OxFF amp crc gt gt 8 data ere cre lt lt 8 cre_tab32 tmp return OxFFFF amp crc The CRC table is generated first as follows CS_init_crcl6_tab 0x1021 for CRC CCITT CS_init_crcl6_tab CRC
54. ame as the number used when the project has been created This option is useful in production because project can be opened automatically without password on the desired PC The same project file cannot work on other computers When the project is created for particular PC then the PC hardware fingerprint number should be taken from the desired PC and entered in the edit line in dialog screen figure 9 2 1 This number has hardcoded format and contains eight hex characters with dash between 4 and 5 character eg 6FA4 E397 Notice that the project created with the desired PC s hardware fingerprint number will not work on the PC where the project has been created because hardware fingerprint numbers on the destination PC and the PC used for creating a projet are not the same It is possible to create the project with the PC s hardware fingerprint number taken from his own PC create a project and check if work as expected When all is OK then project should be saved again with the desired PC s hardware fingerprint number PC s Hardware fingerprint number used with the project can be read by selecting the PC Hardware fingerprint number option from pull down menu About Help gt PC Hardware fingerprint number Following message box is displayed when the option above is selected figure 11 2 2 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 94 Locking option x This PC Hardware Fi
55. ands started from can be specified in the header SN_LIST Data file contains Serial number list SN_SIZE number optional Overwrite size of the custom defined serial number size see Figure 8 2 If the SN_SIZE is not specified then the data specified in the serialization dialog screen is used SN_HEX_MSB optional Select the HEX MSB first format regardless setup in the serialization dialog screen SN_HEX_LSB optional Select the HEX LSB first format regardless setup in the serialization dialog screen When the format is specified as the hex format SN_HEX_MSB Or SN_HEX_LSB then string can contains gaps between numbers or Ox on the front All gaps will be removed Up to 256 characters gaps excluded can be specified for one number All characters must be located in one line for the same SN Example The hex number A434BC5696AD10ACFO can be specified as A434BC5696AD10AC or 0xA434BC5696AD10AC or A434 BC56 96AD 10AC or A4 34 BC 56 96 AD 10 AC FO FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 70 SN_ASCII optional Select an ASCII format regardless setup in the serialization dialog screen SN_PREFIX string optional SN_SUFFIX string optional Serial number can contains up to 32 characters If part of characters are the same in specified serial number list then the repeatable part can be specified in the SN_PREFIX or SN_SUFFIX and only modified part of serial numbers can be listed Seri
56. as UGD IDOE Ox3F4038 eee CDLI SREP cous Ox3F4038 case GDOS OFFER tisi Ox3F4040 Ox3F4040 Ox3F4058 Ox3F4058 TI hex txt INTEL hez Copy Faste to Notepad Figure 5 2 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 42 and differences displayed in a the viewer by selecting Compare Code amp Flash Data or Compare two Code Files from the View menu Only data that are not the same will be displayed In the first line code file data will be displayed and in the second line Flash memory or data from the second file Figure 5 2 Note Only data at the addresses specified in the code file can be displayed Any data not specified in code file will not be displayed even if the Flash Memory data contains any not empty FF data FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 43 6 Memory Option Dialog Screen The Memory Options Dialog Screen Fig 6 1 has four settings groups and one information group Two of the settings groups allow the flash memory addresses range for erase write and read operation to be specified The Retaind Data in Flash allows to specify range of flash memory that should be keep unmodified even if the flash sector would be erased Contents of the specified Retain Data in Flash would be resorted after erasing and blank checking the flash The fourth settings group write verification allows the user to select the verification method for Auto Program proc
57. ate a lot of icons located on the desktop each icon with required independent configuration setup To do that move the cursor to inactive desktop area click right mouse button and select New see Figure 11 3 3 Using Browse in the Create Shortcut dialog box select the following executable file Arrange Icons By gt Refresh Paste Paste Shortcut Undo Copy Ctrl Z Foe Shortcut Properties a B Briefcase 41 Microsoft Word Document 528 Microsoft PowerPoint Presentation Figure 11 3 3 C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe Create Shortcut i T xl This wizard helps you to create shortcuts to local or network programs files folders computers or Internet addresses Type the location of the item JSB FlashPro430 USB M5P430 Prg exe Browse Click Next to continue Back Cancel Figure 11 3 4 see Figure 11 4 and at the and add the required command keys see Figure 11 5 eg FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 98 C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe lock sf E ElproTronic MFG prg 04 cfg Click button Next and follow instruction to create icon Using Copy and Paste and modify required configuration file names a lot of icons can be created with independent configuration setups Clicking on the selected icon FlashPro2000 programming software will start with the selected Create Shortcut b E 3
58. ation is not reversible es Serialization File Name fe Elprotronic Project Cpp DSP C2000 FlashPro2000 test sn The Highest Serial Number Line 5 0005 FO 20080001 DEC 23 2008 20 23 Delete SN A Line 0005 FO 20080001 DEC 23 2008 20 23 Delete SN Line Format Serial Number Date Time Legend 20080000 i NOV 09 2008 15 44 SN Formats 20080001 DEC 23 2008 20 20 FO YYYY1234 5 5 20080002 i DEC 23 2008 20 21 Fl YYMM1234 5 T NewSN 20080003 i DEC 23 2008 20 22 FS YYMMDD1234 5 20080004 DEC 23 2008 20 23 Fs YYDDD12345 0 7 Unmodified SN F2 12345678 F3 12345 0 7 Manually entered SN F6 Custom O 7 Overwritten SN Figure 8 3 1 Serialization Report Dialog screen FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 69 8 4 SN data file The FlashPro2000 software allows to download the serial number from custom defined data file When the data file is used then in the serialization dialog screen the Serial Number Format gt From File should be selected The SN data file can contains list of serial numbers Format of the serial numbers can be specified in the serialization dialog screen Figure 8 2 as Ascii or HEX The SN data file can be created in any DOS editor like Notepad exe In this file any data specified after semicolon will be ignored and can be used as a comment only Data file should contains header and serial number list Following list of comm
59. cable between C2000 JTAG Adapter and header connector on your device board Figure 3 2 1 Make sure that pin 1 on your device board s header is connected to pin 1 of the socket connector Pin 1 is marked as a red cable on the ribbon cable FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 16 M 26 06 M467 RoHS Elprotronic Inc 2407A Fina 8 PAIN DM HVS N la pan N 2 a a a o N Figure 3 2 1 When the SCI BOOT interface is used then the C2000 SCI BOOT Adapter should be plug in to FPA and 10 wires ribbon cable used for communication with target device See Adapter description chapter in this manual for detailed information how to connect the SCI BOOT interface with target device 3 3 Starting up FlashPro2000 Flash Programmer To start the FlashPro2000 Flash Programmer click on the Elprotronic FlashPro2000 icon FlashProZ000 Elprotronic Figure 3 3 1 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 17 Once started the software will attempt to access the programming adapter If no error messages appear then the software has initialized without a problem and you may begin using it However if the programming adapter is not detected an error message will appear To correct the problem make sure that the connection cable is properly attached and the USB driver is installed 3 4 X Pro430 Selector The Flash Programming Adapter FPA has Multi USB feature Up
60. ce can be reset via JTAG commands and hardware reset line is not reachable 7 3 1 Reset pulse duration The reset pulse allows the adapter to initiate communication with a microcontroller using the SCI BOOT Interface In most cases the pulse width of 10ms is sufficient to initiate communication process However this may be affected by additional load on the reset line Therefore four additional settings 100 200 500 ms and custom are available When the RESET IC circuit is used then the custom defined reset pulse duration can be used Two parameters of the custom defined FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 52 reset pulse are defined initialization reset pulse time typically very short 1 ms and an idle reset time Idle reset time must be set at least to duration of the reset time generated by the RESET circuit 7 3 2 Final Target Device action Every device action like AUTO Program Read etc starts with the activation of the RESET line active low When the device programming action begins the RESET line is raised high When Target s Reset Options xi SCI BOOT Reset mode selection 10ms RESET pulse Recommended 100 ms RESET pulse Custom RESET pulse 200 ms RESET pulse 500 ms RESET pulse Custom RESET pulse Reset pulse 10 ms 1 1000 Idle time 10 ms 1 2000 Final Target Device action r SCI BOOT communication only Do NOT reset the target device default Keep Har
61. d Windows Logo testing Continue Anyway STOP Installation Figure 3 1 4 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 14 3 Software will search the driver for the USB FPA BOOT It can take one minute to find it When the driver is found then the following warning will be displayed Figure 3 1 4 4 Ignore this message and press button Continue Anyway The first USB FPA BOOT driver should be installed and following message displayed Figure 3 1 5 5 Press Finish button After a few seconds the second new hardware will be found the USB FPA Elprotronic Repeat the procedures 1 2 3 4 5 as above and on the end the second driver for the USB FPA Elprotronic will be installed see Figure 3 1 5 Found New Hardware Wizard pp Completing the Found New Hardware Wizard The wizard has finished installing the software for e USB FPA BOOT Click Finish to close the wizard Back Cancel Figure 3 1 5 If from any reason the wizard cannot find the USB drivers location then repeat steps 2 3 4 using manual option and browse drivers from location software directory C Program Files Elprotronic XPro USB Drivers W2000 ME XP Windows 2000 98 SE 2 The New hardware has been found should be displayed Follow the wizard instruction to install the drivers 3 Press Next when the Device Wizard Driver screen appear 4 Select the following option on the wizard screen
62. d include the Security Password Serial Number and Model if enabled From that reason the source nd target device checksum value can be not the same when the next target device is programmed and when the serialization is enabled even if the code file is not modified The checksum variation during programming with serialization is normal 4 6 7 Read Copy Flash button When Read Copy button is clicked then data can be read from the target microcontroller and displayed in the Flash Memory Data window see Fig 4 6 7 1 This window can also be selected from Flash Memory Data from the View menu Flash memory data viewer shown in figure 4 6 7 1 displays the code address on the left side data in hex format in the central column the same A Addr DO 0i 02 04 05 06 07 08 lt Ascii gt Ox3F4000 Ox3F4008 Ox3F4010 Ox3F4018 0x3F4020 0x3F4028 0x3F4030 0x3F4038 Ox3F4040 TI hex txt INTEL hex Copy Faste to Notepad Exit Segment 1kx 16 oo blan blan sooo blan blan Sector A 16kx 16 FED6 7D45 9744 9643 o0CO 1418 0020 1818 FOFF FF8 CAA8 9600 9244 9CFF CD02 FFFO 9204 CD03 FFFO 900F 900F CD03 FFOF FF83 900F CD03 FOFF FF8 OCDC CD03 OFFF CAAS FFFO 900F CAA8 9604 0x3D7800 to Ox3D7BFF k a11l OsFFFF 0x3E8000 to Ox3EBFFF k all OxFFFF Ox3ECO00 to Ox3EFFFF k all OxFFFF Ox3F0000 to Ox3F3
63. dware RESET line active on low level C Hardware Reset RST line and start the application program FITAG communication only C Soft Reset JTAG only and start the application program m Application Program RUN time 0 s 0 120 Enter O second for unlimited time M JTAG lines TMS TCK TDI state when Finished Tri stated High C Low x Figure 7 5 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 53 device action is finished then RESET line is again asserted protecting the target device from running the application program The target device can be set to run an application immediately after the target device programmed This allows to verify functionality of the programmed device if required In order to do this check the Hardware Reset RST line and start the application program or Soft Reset JTAG only and start the application program option in the Reset Options window shown in Figure 7 5 Application run time can be unlimited or limited up to 120 seconds Limited time is specified in the Application Program RUN time box When entered 0 in the Program RUN time box then time is unlimited 7 3 Preferences Dialog Box In the Preferences dialog screen Figure 7 3 is possible to select the PDF reader select the hex conversion tool and select desired audio option when warning or error are present In the first line it can be selected the
64. e Fast Verification Fast verification is performed after memory write process is completed when the Autoprogram option is used When the Fast verification is selected then the checksum and PSA of the code and target device contents are verified See the 4 6 6 Verify Flash chapter for details how the checksum and PSA are calculated FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 48 Standard verification Standard verification is performed after memory write process is completed Contents of the flash memory are read and compared with the contents of the code file If both data are the same then verification process is finished successfully Typically the standard verification procedure requires the same amount of time as read write procedure FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 49 7 Adapter Options 7 1 Interface Selector Box The communication interface type SCI Boot JTAG fast and JTAG slow can be selected in the Interface group in the main dialog screen Proper communication interface should be selected otherwise communication with the target device can fail When the JTAG communication is used then the JTAG fast interface should be selected If your target device has installed suppressors capacitors or EMI filters in the JTAG lines or used JTAG cable is long that can degradate the JTAG communication speed then the JTAG slow interfaces should be selected Interface JTAG fast v SCI Boot JTA
65. e Ss eee we bebe ee S ss 33 4 6 5 Write Flash button eo ori 34 4 6 6 Verify Flash DOUGH A bn RA ee eee ed oes 34 4 6 7 Read Copy Flash button 0 0 0 eee 37 Ag N xtbuton a wove De ne eels a eo A a aa 39 4 8 SEL PE DUO o dota 39 D DGG viewers siii AAA SA AA A A AAA dt tdi 41 6 Memory Option Dialog Screen o evicicnonrm ea ee eens ea a a 44 6 1 Memory Erase Write Verify Group 0 0 cece eee ee eee ee 45 6 2 Retain Data in Flash si 2 sces cee sheen dial a Yes da 48 6 3 Read Grop andadas 48 64 Vernfication lou pia it 48 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 6 7 Adapter Options AA lank in A A AA wt Dene ge RR ed Rs 50 7 1 Interface Selector BO idad tanto 50 7 2 JTAG Chain Selector BOX seu gan age wie exe ORES a ee SERRE Ara 50 1 3 Reset Dialog BOX criadas ase chee ba atea 52 7 3 1 Reset pulse duration socorristas cia 32 7 3 2 Final Target Device action re ads 53 7 3 Preferences Dialog BOX At ot ght teehee eGR Ae lle Dr e e UL 54 IEA i A A Seog eae Sod See a So eae vere les 56 8 1 Jntrod c n x yu a on Sih an Re hog Ne elect sas Wg ww a ted oe 56 8 2 Serialization Dialog Screen y 40 44 s3 4 0 en SoG sn Gt eee iene ees 57 8 2 1 Serial number File cora a 58 8 2 2 Serial number formats cesta 58 8 2 2 1 HEX MSB first MSW first LSW LSB first formats 59 8 2 2 2 BED format o E e e tt 61 8 2 2 3 ASCIL format eer cess 44 eonia A 64 8 2 3 Model Group Revision
66. e capability allowing to review information about the flashed target devices DLL software package can control programmer from other programs Programmer has been fully tested to comply with the FCC and CE requirements Our programmers are inexpensive for users interested in basic features we provide limited or lite software version Using USB 1 1 12Mbits s Port to communicate with the Programming Adapter Communication with the target device via JTAG Interface using TI standard 14 pins header connector and via SCI BOOT Interface using customized 10 pins header connector FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 9 2 1 Customized features FlashPro2000 programmer can be controlled from external software or programming sequences can be customized These features are very useful in production environment Standard programming software FlashPro2000 has a lot of options described above but of course it can not cover all customer s requirements 2 1 1 Encrypted Project option Contents of the project that include code contents downloaded to target device can be encrypted and blocked against unauthorised access 2 1 2 Script file To extend programming features programming software supports user defined programming sequences saved in the script file That easy method can be created by any user without knowing programming languages and techniques Programming sequence up to 1000 lines can be created All lines contain
67. e feature two interfaces in one package allowing to program the target device via JTAG one or more devices in the chain or via SCI BOOT Interface The TPs target device specific Flash API are used to erase and program the DSP s flash All API procedures are build in to FlashPro2000 software and the required procedure is selected automatically when the desired DSP type is selected That allow to simplify usage of flash programmer User does not need to know what API should be selected When the DSP is programmed the used API version is displayed in the report window When the new DSP type would be released then the new FlashPro2000 with new Flash API will be released Upgraded software is available on our website http www elprotronic com download html Programming speed via JTAG and SCI BOOT are almost the same Write CSM Security Password capability No code size limitations Full memory or sector memory erase capability Write Check Sum verification System Clock verification Easy to use Windows based software Programmer accept TI txt Motorola s19 Intel hex and CCS out data files for programming Lock setup capability with encryption feature useful in production Software package can assign and automatically increment serial number model type and revision Serial Number with or without an automatically inserted current date can be stored in the FLASH or OTP memory in HEX BCD or ASCII format Log fil
68. e of the erased write verify flash memory and space of the OTP memory can be defined by the user When the User Defined option is selected then on the right side of the Memory Erase Write Verify Group two check boxes and addresses edit lines will be enabled The check boxes allow the user to select the space of the OTP and Flash memory to be used erased write verified If the space of the sector specified in Start End addresses cover only FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 47 6 2 6 3 part of the Flash sector then the whole sector will be areas however only the specified part of the sector will be programmed Retain Data in Flash User defined option in the Retain Data in Flash group allows to specify other region to be restored after erasing the flash Location of the retain data block is not limited and can be used at any part of flash memory Maximum size of the retain data block is limited to 1024 words only Read Group The Read Address Range group block see Fig 6 1 specifies the address range used in reading process Memory read setup has four available options l De 3 4 OTP Memory only OTP and Flash memory Flash memory only User Defined The meaning of each option is the same as for the erase write verify procedure 6 4 Verification Group Verification group setup allows the user to select one of the three write verification methods Fast Verification Standard Verification Non
69. e second calculation would not be the same and CS result would be useless When the CS Result Save option is not selected then the CS of the selected block is calculated and CS result displayed in the report window only Figure 9 3 This option can be used for CS code verification defined as the code form Start to End Addresses with OxFF data in the not specified code location FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 75 Report Reading Code File Code size 030080 249216 bytes C51 037752600 C51 0x31 752800 JTAG communication initialization OF Vertuing Security Fuse oo OF Reading Target Label done Era ing MEMO coccion done JTAG communication initialization OF All memory Blank checking OF Figure 9 3 Type of the CS can be selected from the following list Figure 9 4 Check Sum Processing Setup s e xj Checksum type Initial value Arithmetic sum 8b 16b Arithmetic sum 8b 32b CS Result Arithmetic sum 16b 16b Arithmetic sum 16b 32b 7 Overwrite cd Figure 9 4 Initial value for CS calculation can be selected as zero all OxFFs or as the Start Address from pull down menu Figure 9 5 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 76 Checksum type CRCS2 Poly 004011067 Initial value OxFERFFFFF r 000000000 125 Result OxFFEFFFFF C5 Start Address Figure 9 5 CS result can be used As Is o
70. ected two MCU TMS320F28xx in the chain The total IR size is 2 38 76 bits and 2 detected devices in the chain In the software it was selected only one device in the chain and because number FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 51 of devices selected and detected are not the same the procedure was terminated If only one unknown device is connected to FlashPro2000 then the IR size can be detected and the meassured IR size can be entered in the JTAG IR size dialog box Report Communication initialization failed JTAG IR size 76 Devices in Chain 2 ERROR Selected and detected number of devices in the chain are not the same seeeeseeeeseee FAILED III Figure 7 3 When the IR size setup is done then in the Main dialog screen it should be selected number of devices in the JTAG chain 1 to six and position of the desired target device in the chain in the JTAG Chain group Figure 7 4 In the example below are connected two devices in the chain and it is selected the first target device in the chain InJTAG Chain Pos fi Size 2 Figure 7 4 7 3 Reset Dialog Box The Target s Reset Dialog Figure 5 screen enables the user to select the Reset pulse duration and reset line state at the end of programming process Access to the hardware RESET line is only available when the SCI BOOT communication is used When the JTAG communication is used then target devi
71. edure The information group contains the start and stop address of the user specified main memory segment that can be erased written and verified independently Memory Options xi Memory Erase Write Yerify Address Range Read Address Range y OTP Do not modify word OTP Memory M OTP Memory if not blank MT Enable OTP Memory only E Y al Start Address 0x0000 Start Address fo DODO Stop Address 00000 OTP and Flash Memory Stop Address 0x0000 Update only C OTP Memory only Flash Memory Flash Memory OTP and Flash Memory ee Flash Memory only I Enable Flash Memory onl eles Start Address Start Address foxo000 Used by Code File gt tere Stop Address User defined Stop Address Ox3FFFFFF Retain Data in Flash Autoprogram and Erase About Microcontroller Enable Start Address Selected OTP Start Addr 0x3D7800 max 1024 words Stop Address Microcontroller TMS320F2812 OTP Stop Addr Ox3D7BFF Write Verification Flash Start Addr 0x3D8000 Fast Write Verify Check Sum Recommended Flash Stop Addr Ox3F7FFF Standard Write Verify Check Sum Read Verify RAM Size in Bytes 18432 C None Y OK Cancel Figure 6 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 44 6 1 Memory Erase Write Verify Group The Memory Erase Write Verify Address Range group block see Fig 6 1 specifies c
72. er communication interface should be selected otherwise communication with the target device can fail When the JTAG communication is used then the JTAG fast interface should be selected If your target device has installed suppressors capacitors or EMI filters in the JTAG lines or used JTAG cable is long that can degradate the JTAG communication speed then the JTAG slow interfaces should be selected Interface JTAG fast in SCI Boot JTAG fast JTAG slow Figure 4 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 21 4 2 Microcontroller Type The microcontroller type can be selected from the pull down field of the processor type group The pull down field contains a list of all microcontrollers supported by FlashPro2000 software When communication between microcontroller and programming adapter is initialized the software will detect the target microcontroller s automatically The type of detected microcontroller is displayed in the field Target figure 4 2 2 This allows the software to warn you if the connected microcontroller does not match the one specified by the user gt Microcontroller Type Group TMS320F28xx Y TMS320 F2808 y Figure 4 2 1 Microcontroller Type Status Group TMS320F 28xx y TMS320 y ae Total Target TMS320F 2808 Balance 0 id 0x3C ver 0x03 Selected Device Information R mM 18 0kB FLASH 128 kB Figure 4 2 2
73. es SN 12345 will be saved as 12345 Decy gt 0x3039 hex In flash memory this number can be seen as 3039 integer numbers gt HEX MSW first or HEX LSW first Display Format Custom size in FLASH defined size divided by 2 Entered manually or read via Bar Code Scanner hexadecimal number is converted to HEX format and saved in flash memory in order related to MSW or LSW first selection E g entered hexadecimal number 02A569C1 will be seen as 02A5 69C1 gt HEX MSB first or C169 A502 gt HEX LSW LSB first 8 2 2 2 BCD format When BCD format is selected then all SN display formats described above can be stored as a two or four separate bytes converted to BCD format where first and last four bits of 8 bit byte contains a value from 0 to 9 All consecutive serial number characters are converted to half byte each Finally two consecutive serial number characters will be converted to a single byte Display Format YYYY 1234 size in FLASH 4 bytes FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 61 SN 20030123 will be saved as YYYY 2003 gt 0x20 0x03 bytes 1234 0123 gt 0x01 0x23 bytes When flash memory bytes are viewed then this number can be seen as lt Hex format bytes gt 2003 0123 Size 4 bytes The consecutive serial number 4 bytes BCD can have a value from 0 to 9999 and is displayed as the 4 digit serial number Display Format YYMM 1234 size in FLASH 4 bytes SN 0
74. etup file configuration file is ignored and password file name specified with key cf is used When the prj option is used then the sf cf pf rf options are ignored Using Windows START button left bottom select Run Using Browse find and select executable file see Figure 11 3 1 C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe and at the end enter the required key with name of the setup file eg C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe sf E ElproTronic MFG prg 04 cfg Type the name of a program folder document or gt Internet resource and Windows will open it For you Open C Program Files Elprotronic USB FlashPro430 USB y as Cancel Browse Figure11 3 1 A 8 8 2x EN Type the name of a program folder document or Internet resource and Windows will open it for you Open 1sp430 Prg exe sf E ElproTronic MFG prg 04 cFg y Cancel Browse Figure 11 3 2 To fully lock the configuration setup the extra key lock can be added in the command line eg C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe lock sf E ElproTronic MFG prg 04 cfg FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 97 or C Program Files Elprotronic C2000 USB FlashPro2000FlashPro2000 exe sf E ElproTronic MFG prg 04 cfg Following configuration setup can be created using Shortcut options that allows to cre
75. executable file 10 1 Script button The Script button is the dynamically programmable device action L READ corY button that allows to take a desired action taken from the script file The Script File none Script button has a name Script File none Figure 10 1 if the script file _ is not defined or Script with used file name when the script file is active Fi 10 1 a igure 10 Figure 10 2 When the Script button is pressed and the current script file gii is not active then the Open File dialog is displayed and the desired script E Beene file should be selected When the Script file button is not empty and the new script file if required then the new file can be selected from the pull 3 i mn AUTO PROGRAM down menu File gt Open Script File seal Figure 10 2 The Script button is very useful for implementing a short programming sequence not present directly in the Device Action group buttons Below is an easy script file used for downloading two independent codes to target device first code used for hardware test if possible and when hardware is ok then the second code is downloaded as the final code to target device The same sequence can be used with other buttons but sequence should be always repeated that of course is not convenient FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 82 Using the notepad editor create the script file and save it eg as the file test sf or any
76. f the Open Code File button see Fig 4 1 Programming dialog box screen Check sum calculated from the code file will be displayed in the Check sum Source window Contents of the selected file can be viewed by the selecting of Code File Data from the View menu see chapter 5 The Save Code File option saves the data currently contained within the PC code data block into a 16 bits data width code file When the user selects this option from the File menu the window in Figure 4 3 4 will appear prompting for the name of the file to be created All of the aforementioned Code File options work with three most popular code file formats These formats are the Texas Instruments the Motorola and the Intel file formats FlashPro2000 will work with any of these formats and will easily convert one file format to another by using the Open Code File and Save Code File options data3 txt Release E data txt res E DefinedPassword txt zip E MemView 22 Ext El CodeFromEV M2808 txt El MennView Ext El data2 txt El msplist txt gt File name data3 txt Save as type Texas Instruments txt y Cancel Texas Inst ruments ts u s19 528 s37 nn E aan ann A Laws Figure 4 3 4 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 25 4 4 CSM and Security Password The F24xx and F28xx microcontrollers allows to protect the user firmware from being reverse engineered The security features
77. for internal programming verification and the second group can be used for firmware verification in application software The CS used for internal verification is calculating CS only for specified words in the code file regardless of the flash memory size location etc This CS is useful only inside the programmer because programmer has all information about programmed and empty bytes location This method is also useful if only part of the code is programmed in the flash append option All not programmed words in the programming process are ignored even if these words are not empty in the flash The check sum used for internal programming verification is displayed in the Check Sum Group Figure 9 1 see the Main Dialog screen Figure 4 1 M Check Sum Source OxF236EFFC Memory OxF236EFFC Tj Figure 9 1 In the source line is displayed the arithmetic sum of the code contents with added contents of the serialization model etc if selected Arithmetic sum is calculated as the sum of 16 bits unsigned words result is 32 bits unsigned Only programmed words are taken for calculation All other not used words are ignored In the memory line is displayed the CS result taken from the flash memory calculated in the same way as the CS taken from the source Only words defined in the source are taken from the flash memory for calculation Second group of the CS is custom defined Check Sum that can be used by firmware for code ver
78. ial Number file contains following data separated by tabulation 1 Serial Number Format FO F1 F2 F3 F4 F5 F6 2 Serial Number 3 SN action type New SN unmodified SN overwritten SN manual SN 4 Time and date when SN has been created De Code File Name 6 Model text Below is an example of data file containing data from the three consecutively created serial numbers FO 200300011 m Sat Mar 29 2003 10 09 ASO10X02 1v2 txt 01 R 0003 04 17 FO 200300012 Sat Mar 29 2003 10 43 ASO10X02 1v2 txt 01 R 0003 04 17 FO 200300013 u Sat Mar 29 2003 10 43 ASO10X02 1v2 txt 01 R 0003 04 17 Serial number can be created as a unique SN per target s device type or as a unique SN in any devices type When unique SN per target device type is created then serial number file name and path should be used for each device type separately If a unique SN for any devices type is created then only one serial number file name should be used 8 2 2 Serial number formats Programming software has seven methods for creating the serial number referred to as Display format and four methods of storing the SN in the memory referred to as In Memory Format in the serialization dialog screen When a serial number is created current date if required is taken from the PC timer Make a sure that your computer has correct date and time Display Format 1 YYYY 1234 5 SN Format F0 Serial number has 8 or 9 characters First four characters cont
79. ied frequency with tolerance 5 then programming procedure is terminated error displayed in the CLK group Figure 4 5 3 and Report DSP clock MHz CLE 22 00 Communication initialization OK measured x CSM Password verification Unlocked by empty password all OxFFFF CLE 13 33 Downloading firmware to DSP failed DSP CLK set and meassured frequency are not the PLL 50 00 same seseteeaeeenens FAILED II Figure 4 5 3 gt Adapter C2000 FlashPro2000 STD E Figure 4 5 4 following message displayed in the report window figure 4 5 4 The edited CLK data should be corrected or hardware should be checked if the real frequency is the same as the expected CLK frequency 4 6 Device Action box Device Action Device Action box contains 8 buttons Figure 4 6 1 and 8 status Reload Code File boxes Each button allows a specific action to be executed Software 4 AUTO PROG procedures related to each action allow you to fully execute the desired M _Verify CSM Password task without the need to follow a specific sequence of actions Every A ERASE FLASH action starts by measuring the Vcc supplied to target device When the a CRETE DC voltage level becomes higher then 3 0V the communication with the target device is initiated via JTAG or SCI BOOT Interface When M J ware nest the JTAG SBW Interface is selected then the security fuse is verified M _WRITE SN Model
80. ies of the Product are owned by Elprotronic The Product is protected by copyright laws and international treaty provisions Therefore you must treat the Product like any other copyrighted material 3 Limitation of liability In no event shall Elprotronic be liable to you for any loss of use interruption of business or any direct indirect special incidental or consequential damages of any kind including lost profits regardless of the form of action whether in contract tort including negligence strict product liability or otherwise even if Elprotronic has been advised of the possibility of such damages 4 DISCLAIMER OF WARRANTIES You agree that Elprotronic has made no express warranties to You regarding the software hardware firmware and related documentation The software hardware firmware and related documentation being provided to You AS IS without warranty or support of any kind Elprotronic disclaims all warranties with regard to the software and hardware express or implied including without limitation any implied warranties of fitness for a particular purpose merchantability merchantable quality or noninfringement of third party rights This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 this device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation
81. ification in the flash Up to four CS block can be specified and CS results can be saved in the flash for verification Size of each CS block and CS result location in flash are defined by the user FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 74 The Check Sum Options dialog figure 9 2 is selected from following pull down menu Setup gt Check Sum Options Check Sum Processing Setup a x Checksum type CRC32 Poly 0x04C11DB7 8b 32b y Initial value OxFFFFFFFF POLY Ox0000 CS Result Inverted v Data IN word size 8 bits CS result size 32 bits 7 Overwrite code contents if present where the CS result is saved ES Addresses definition CS Result in Flash Enable Start Address Stop Address Save Enable CS Address Y cs oxscoo OxFFFF Iv cs 1 ox1800 M cs 2 ox10000 0x45BFF M cs 2 0x1804 M cs 3 0x1000 0x1000 TP c5 3 TT c5 4 0x1000 0x1000 M cs 4 0x1000 Note The checksum calculation can only be used for code data Extra data like serialization should be specified outside of the CS banks OxFF bytes are used instead of unspecified data for CS calculation Cancel OK Figure 9 2 Start Address should be even and the Stop Address should be odd CS result address in the flash should be even Make sure that the CS result is saved out of the CS block space Otherwise the CS result will modify the contents of the CS inside the specified block CS result after th
82. l path and name IF FAILED GOTO fileerror E AUTOPROGRAM IF DONE CALL testOK IF FAILED CALL testFailed Gl 5 extra message taken from report window added to file Can be saved on the same file or other file APPENDREPORT tmp_file txt recommended full path and name GOTO finish gt testoK MESSAGE Test OK min 1 line max 50 lines 2 nd line optional GOTO saveMsg gt testFailed FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 88 MESSAGE O Test Failed min 1 line max 50 lines 2 nd line optional etc T optional gt saveMsg SAVEMSG tmp_file txt recommended full path and name RETURN gt fileerror MESSAGE Config or Code file open error min 1 line max 50 lines Program terminated SAVEMSG tmp _file txt recommended full path and name jend exit gt finish END Below is the next script file examples uses DLL file that allows to control testing process via function written in the DLL Functionality is the same as in the example above but instead manually confirmation of the test result the result is taken automatically from the DLL function Two functions has bee used for this purpouse FCONTROL calls external user defined function in the DLL IF CONTROL 0 GOTO START test status from the FCONTROL and if result is O FALSE then procedure returns to start Required DLL file shou
83. ld be created first i Script file demo program with DLL file OPENDLLFILE C Program Files Elprotronic FxControl DLL release FxControl dll gt START VCCOFF MESSAGEBOX OKCANCEL VCC if OFF now Connect the test board When ready press the button OK to test the board CANCEL to exit from program IF BUTTONCANCEL GOTO finish LOADCFGFILE C Project test A cfg MESSAGEBOX OK Press OK to download the test program FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 89 AUTOPROGRAM FCONTROL 1 0 type 1 argument 0 but can be any IF CONTROL 0 GOTO START when false 0 return to start IF BUTTONNO GOTO START LOADCFGFILE C Project finalcode cfg AUTOPROGRAM GOTO START gt finish END FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 90 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 91 11 Project and Configuration Load Save Programming software can save configuration settings in the configuration files or save the whole project configuration with used code contents and save it in the encrypted project file This allows the user to create several configuration or project fils one for a particular task and thus eliminates the need to manually change settings every time a different configuration is desired Furthermore the config ini file contains the most recently used settings and th
84. n Programming sequence can be customized when using the rf with the executable file described in the Project and Configuration Load Save chapter When the executable file FlashPro2000 exe is called with a script path as an argument e g FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 83 C Program Files Elprotronic C2000 USB FlashPro2000 FlashPro2000 exe FlashPro2000 exe rf C Program Files Elprotronic C2000 USB FlashPro2000 script txt or when the icon with the FlashPro2000 exe and script file path is executed then programmer starts automatically programming sequences according to procedure specified in the script file Access to other buttons are blocked When script file sequence is finished then program is terminated There is not option to modify the running sequence when script sequence is used This option is useful in production because nobody can modify sequence that has been prepared for the production purpose 10 3 Script commands LIMITATIONS 1 Up to 1000 script lines commands can be used Empty lines and lines with comments only are ignored and not counted 2 Up to 50 CALL s deep stack is used CALL in CALL in CALL SYNTAX white spaces before instructions labels etc are ignored comment all contents after semicolon are ignored NOTE Comment can not be used in the lines where the file name is specified gt label character gt without spaces must be placed before label name
85. n the location where the serialization and model are defined Serial Numbers File Path and Name C Elprotronic Project Cpp DSP C2000 FlashPro2000 test sn Browse BarCode Scanner ENABLE Terminator Character cr y F Start AUTOPROGRAM following Barcode scan Serial Number Format m Memory Location Display Format In Memory Format YYYY 1234 5 HEX MSB First SN Start Address in Memory r YYMM 1234 5 oaro 0x3F0000 C YYMMDD 1234 C HEX MSW First o C YYDDD 1234 5 CO 12345678 O 12345 Custom char ad Used size 8 bytes B from File y 4 256 Csa a Seer Serial Number WEA Vv tole nl tore Se date excluded starting From on the SN location Serial Number Increment 1 Model Group Revision IV ENABLE Text size in Bytes 22 2 32 even number Start Address in Memory 0x3F0010 Asci y rev 01 model 4B34543 20 bytes cm Figure 8 2 Serialization dialog box shown in figure 8 2 allows configuration for serialization process to be set Serialization can be enabled or disabled by selecting the check mark in the ENABLE FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 57 Serialization box When serialization is disabled all edit lines and check boxes are disabled When serialization is enabled all fields must be set 8 2 1 Serial number File The Serial Number File Path and Name specifies the full path and file name where data base contents will be saved Ser
86. ngerprint Number FILDE CES3 Figure 11 2 2 Locked Project 1 When not selected then project is not locked All contents can be modified and all buttons are accessible 2 When selected then project is locked Almost all buttons are disabled grayed and almost all items in the pull down menu are disabled When the project is locked then it is possible to select permanently lock project or select an option that it is possible to unlock the project under password The unlock password can be not the same as the password used for opening the project Locked Read options When selected then the code viewers and READ button are blocked and not allows to read the code contents downloaded to target device If the security fuse is blown after programming the target device then code cannot be seen by the staff downloading code to target devices Unlock with password When project is locked then it is possible to select option unlock with password and specify up to 16 characters unlocking password Password is case sensitive On the figure 11 2 3 is a Project Security Options dialog screen with selected options Project protected with PC s hardware fringerprint number locked and unlocked with password FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 95 Project Security Options E x M Project protection C Any PC not protected Any PC Password protected Password Repeat password Case sensitive
87. ommon addresses range for erase write and verify operations Memory setup has following available options 1 OTP Do not modify word if not blank When the OTP memory is programmed then first the contents of the OTP memory are verified with the data prepared for write Tf the OPT memory is blank in the locations where data are prepared for write then the writing process is continued If the OTP memory contains exactly the same data as the data prepared for write then the writing process is continued however the programmed data in OTP are not programmed again When the data in OTP are already programmed in the locations where the data prepared for write and data are not the same then the two options are available if the OTP Do not modify word if not blank is selected then the writing process is terminated The whole OTP is not modified Following messages are displayed in the pop up message box Figure 6 2 and in the report window Figure 6 3 Error OTP word is not empty xj Report Communication initialization The OTP is already programmed with different CSM Password verification data from the data prepared for write Unlocked by empty password all sa Downloading firmware to DSP OTP Addr Ox3D7803 Data 0x3130 vs 0x3132 Flash API version 3 02 The OTP has not been modified yet rd Taga aa Del Sl OTP Addr 0x3D 7803 Data 0x3130 vs 0x3132 The OTP word is not empty Procedu
88. on for the second device and save it as target2of2 cfg When itis done then press the Script button and select the script chain sf file Two targets devices will be programmed when the Script File button is pressed FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 40 5 Data viewers Contents data from the Code file and from the Flash memory can be viewed in data viewers Also code data and flash memory data can be compared and differences between them can be displayed Contents of the selected file can be viewed by selecting of the Code File Data from the View menu Code data viewer shown in figure 5 1 displays the code address on the left side data in hex format in the central column the same data in Ascii format in the right column Data in hex format is displayed from 0000 to FFFF when contents of data exist in the code file otherwise it is 3 displayed as a dots 1f data does not exist in the code file When code size exceeds Flash Data viewer ij x Addr 00 01 02 04 05 06 07 08 lt Ascii gt Segment 1kx 16 Ox3D7800 Sector D 16kx 16 0x3E8000 Sector C 16kx 16 Ox3EC000 Sector B 16kx 16 Ox3F0000 Sector A 16kx 16 0x3F4000 FED6 7D45 9744 9643 A842 761F 01C4 O0CO 1A18 0020 1818 FFE1 9243 900F FOFF FF8 CAAS 9600 1400 0010 1800 9244 9CFF CD02 FFFO 900F CAAS 9602 92C4 CD03 FFFO 900F CAAS 9603 8442 900F CDO3 FFOF FF83 CAAS 9603 8442 900F CD03 FOFF FF8 CAAS 9603 8442 OC
89. only option in Write Erase Verify Address Range has been selected Enable OTP or modify Write options if required Check the Final Security Password if required Serialization feature has been disabled Model Group Revision feature has been disabled Please replace the original device with the new device Please press OK if it is done and then use the standard buttons like AUTOPROGRAM to program the new device Figure 4 6 7 2 When the button OK is pressed then programmer is ready to program the destination microcontrollers FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 38 4 7 Next button The Next button is the dynamically programmable device action button which is very useful in production process After opening the program NEXT button is disabled see Fig 4 7 1 When any button from the Device Action group is pressed then button NEXT takes Figure 4 7 1 the name and feature of that button For example if Auto Program button has been used then it s name will be displayed on top of the AUTO PROGRAM NEXT button see Fig 4 7 2 From now the button NEXT will NEXT F5 perform the same function as the Auto Program button The NEXT button has a shortcut to function key F5 Button NEXT will retain Figure 4 7 2 1ts functionality until some other device key is clicked For example if key READ FLASH is clicked then from this moment button
90. or any other file name FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 39 r easy script file for two devices connected in the JTAG chain r LOADCFGFILE C Elprotronic Project Cpp DSP C2000 FlashPro2000 targetlof2 cfg LOADCODEFILE C Elprotronic Project Cpp DSP C2000 FlashPro2000 data2 txt AUTOPROGRAM LOADCFGFILE C Elprotronic Project Cpp DSP C2000 FlashPro2000 target2of2 cfg LOADCODEFILE C Elprotronic Project Cpp DSP C2000 FlashPro2000 data4 txt AUTOPROGRAM END When the script file above is used then the first configuration file and the fist code file are downloaded first and the Autoprogram function is executed The first target devices is programmed The second target devices is not used in this process When finished then the next configuration file and code file are downloaded and again the Autoprogram is executed programming the second target device When finished then the action used the script file is finished Before running the script file the configuration files required in the project should be created using the GUI software first the configuration files named targetlof2 cfg and target2of2 cfg used in the script file above To do that connect target devices to programming adapter select desired configuration for the first devices select JTAG 1 and JTAG size 2 in the case above Save the configuration file as targetlof2 cfg and create configurati
91. or support of any kind Elprotronic Inc disclaims all warranties with regard to the software express or implied including without limitation any implied warranties of fitness for a particular purpose merchantability merchantable quality or noninfringement of third party rights Limit of liability In no event will Elprotronic Inc be liable to you for any loss of use interruption of business or any direct indirect special incidental or consequential damages of any kind including lost profits regardless of the form of action whether in contract tort including negligence strict product liability or otherwise even if Elprotronic Inc has been advised of the possibility of such damages END USER LICENSE AGREEMENT PLEASE READ THIS DOCUMENT CAREFULLY BEFORE USING THE SOFTWARE AND THE ASSOCIATED HARDWARE ELPROTRONIC INC AND OR ITS SUBSIDIARIES ELPROTRONIC IS WILLING TO LICENSE THE SOFTWARE TO YOU AS AN INDIVIDUAL THE COMPANY OR LEGAL ENTITY THAT WILL BE USING THE SOFTWARE REFERENCED BELOW AS YOU OR YOUR ONLY ON THE CONDITION THAT YOU AGREE TO ALL TERMS OF THIS LICENSE AGREEMENT THIS IS A LEGAL AND ENFORCABLE CONTRACT BETWEEN YOU AND ELPROTRONIC BY OPENING THIS PACKAGE BREAKING THE SEAL CLICKING I AGREE BUTTON OR OTHERWISE INDICATING ASSENT ELECTRONICALLY OR LOADING THE SOFTWARE YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT IF YOU DO NOT AGREE TO THESE TERMS AND CONDITIONS CLICK ON THE I D
92. ose settings will be used as default whenever the software is started 11 1 Load Save Setup To create a configuration file simply select Save Setup from the File menu Current settings will be saved for future use To restore configuration settings select Load Setup from File menu and select a file containing the settings you wish to restore In order to prevent accidental setup changes the FlashPro2000 Programmer provides the option to Lock configuration settings When the user selects the Lock Unlock Setup option from the Setup menu the FlashPro2000 Flash Programmer will prevent the user from modifying the setup The only options that are available when the programmer is locked are Verify Read Autoprogram and Next Notice that the Next button will immediately change to implement the Autoprogram function To unlock the programmer the user must select the Lock Unlock Setup option from the Setup menu 11 2 Load Save Project The Project option Save Load contains more then the programmer configuration only but can also the code and the CSM password used in the project Contents of the project file is encrypted so it is not possible to read the contents of the used code downloaded to target device When the project is opened then the same decryption key must be used as it was used in the encryption process otherwise decryption will not succeed Encryption key depends from the used type of software FlashPro2000 GangPro2000 etc used pass
93. password Selected PC Hardware Fingerprint number PC Hardware Fingerprint FCDE CE53 Format Xxxx xxxx where X hex m Locking options IV Locked Project IV Locked Read options J UnLock with password Password oe Repeat password oesacacacase Case sensitive password c Figure 11 2 3 By default project is not protected and not locked This allows to create unprotected project and open it at any time on any PC without restrictions All buttons and items on the dialog screen are not blocked 11 3 Commands combined with the executable file Project file or configuration setup file or Code Password file can be opened using Load Setup Load Code Password File option from File menu or can also be opened using command line combined with the executable file name Following command line switches are available prj Project file name Open Project file sf Setup file name Open Setup file cf Code file name Open Code file pf Password_file name Open Password file nf SN_ file name Open Serial number list file rf Script file name Run programming sequence from the Script File lock FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 96 Note When the cf option is used then code file name saved in the setup file configuration file is ignored and code file name specified with key cf is used Also when the pf option is used then password file name saved in the s
94. r can be inverted Figure 9 6 Checksum type CRC32 Poly 0x04C11DB7 Initial value OxFFFFFFFF y CS Result Inverted Figure 9 6 Data size byte or 16 bits word used for calculation and CS result size is displayed in the dialog screen as Data IN word size and CS Result size Figure 9 2 Polynomial contents if required can be specified in the POLY edit line in HEX format eg 0x1234 9 1 Check Sum types Following Check Sum types are implemented Figure 9 4 Arithmetic Sum 8b 16b Check Sum is calculated as modulo 16 bits sum of all bytes unsigned from Start to the End Addresses as follows CS CS_initial_value for addr StartAddress addr lt EndAddress addr CS CS unsigned int OxFF amp dataladdr CS CS unsigned int OxFF amp dataladdr gt gt 8 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 77 CS OxFFFF amp CS if cs_inverted CS OxFFFF CS Arithmetic Sum 8b 32b Check Sum is calculated as modulo 32 bits sum of all bytes unsigned from Start to the End Addresses as follows CS CS_initial_value for addr StartAddress addr lt EndAddress addr CS CS unsigned int OxFF amp dataladdr CS CS unsigned int OxFF amp dataladdr gt gt 8 CS OxFFFFFFFF amp CS if cs_inverted CS OxFFFFFFFF CS Arithmetic Sum 16b 16b Check Sum is calculated as modulo 16 bits sum of
95. re ignored For flexibility one more defined security password is added The defined password allows to enter any data that can be used as the security password for unlocking or for locking the target device All specified security passwords are used during unlocking an access to target device As the first up the default password all OXFFFE is used If unlock failed then the next security password is used until access to target is unlocked In the report window is displayed information which the security password unlocked the target device Figure 4 4 2 Report Reading Flash memory mmm DONE runtime 1 2 sec Communication initialization OK CSM Password verification OK Unlocked by user defined password Downloading firmware to DSP OK Flash API version 3 02 Erasing MEMON 0 ceeeeeeeeeeee done enano DONE run time 2 5 sec H Adapter C2000 FlashPro2000 STD E Figure 4 4 2 If none from the available security passwords are correct then access to target device is blocked and target device can not be programmed Following message is displayed in the report window Figure 4 4 3 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 27 Report CSM Password verification CSM Password incorrect the DSP cannot be unlocked TS FAILED I Communication initialization OK CSM Password verification failed CSM
96. re terminated Y PT FAILED I Figure 6 2 Please check the setup or data and try again Figure 6 3 if the OTP Do not modify word if not blank is not selected then all bits in OTP are verified with bits prepared for write If any bit is already programmed to 0 and FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 45 in the prepared data this bit is 1 then the writing process is terminated The whole OTP is not modified Following messages are displayed in the pop up message box Figure 6 4 and in the report window Figure 6 5 Error OTP bit is not empty W x Report Communication initialization The OTP bit is already programmed with different CSM Password verification data from the data prepared For write Unlocked by empty password all OxFFFF Downloading firmware to DSP OK OTP Addr Ox3D7803 Data 0x3130 vs 0x3132 Flash API versan 3 02 The OTP tb el Reading Target Label done ii Reading OTP Data done Please check the setup or data and try again OTP Addr 0x3D7803 Data 0x3130 vs 0x3132 The OTP bit is already programmed Procedure terminated le FAILED 111 s Figure 6 5 Figure 6 4 FLASH Do not erase segment if already blank All selected segments that should be erased or programmed are checked first if they are blank If sector is already blank then it can be unmodified or era
97. ry would be programmed only All other data specified out of OTP memory location will be ignored When the OTP is programmed then the contents of the OTP are examined first if blank in the locations where the data are prepared for write See the OTP Do not modify word if not blank above for details 5 OTP and Flash Memory When this option is selected then whole memory can be programmed OTP and Flash memory Flash memory is erased first When the OTP is programmed then the contents of the OTP are examined first if blank in the locations where the data are prepared for write See the OTP Do not modify word if not blank above for details 6 Flash Memory only This is the most commonly used option and is selected as the default This option allows to erase and program whole Flash Memory only The OTP memory is not programmed regardless the code contents J Used by code file This option allows the OTP and Flash Memory segments used by data specified in code file to be programmed Flash memory segments which do not contain any data to be written to the memory from the code file will not be erased This option is useful if some data like calibration data should pe replaced in memory If code file contains some new calibration data such as described in figure 6 1 1 then the ENTIRE information memory segment be erased and new data written 8 User Defined This option is functionally similar to options described before but addresses rang
98. s done it should be verified if programmers works as expected When all works then the current setup can be saved as the project file Select the Save Project as from File pull down menu Following dialog will be displayed Figure 11 2 1 that allows to select desired project option Following options can be selected Project Security Options y xj M Project protection Any PC not protected C Any PC Password protected Password Repeat password Case sensitive password Selected PC Hardware Fingerprint number PC Hardware Fingerprint Format XXXX XXXX where X hex Locking options J Locked Project T Locked Read options F Untock with password Password Repeat password Case sensitive password cme Figure 11 2 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 93 Project protection Any PC not protected When this option is selected then project is not protected and can be opened on any PC without restrictions Any PC Password protected When this option is selected then project can be opened when the password is correct The desired password should be entered in two edit lines Password is case sensitive and takes up to 16 characters space including Selected PC Hardware Fingerprint When this option is selected then project can be opened only on one desired PC where the PC s hardware fingerprint number taken from the destination PC is the s
99. s possible to enable the Report history in the report window see figure 4 1 When enabled then the report history is displayed up to 8 kB characters approximately 20 last communication messages When disabled then the only last programming report is PDF Reader AcroRd32 exe Browse CTI HEX Conversion Utility hex2000 exe Default location in CCS C2000 cgtools bin hex2000 exe CAcCStudio_ 3 3 C2000 catools bin hex2000 exe Browse M Options IV Report History Display Enable Audio PPC Speaker IV Enable V Beep when OK Enable Sound Enable Done OK sound Play Browse Play Browse Play Browse oa x Figure 7 6 Warning sound Error sound displayed Programming software can generate audio tones when error programming occurred or tone OK at the end of programming Tone can be generated using PC speaker or audio wave generator Option dialog box allows to select desired audio option see Figure 7 6 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 55 8 Serialization 8 1 Introduction FlashPro2000 programming software has ability to automatically create the target device s serial number and save it in the flash memory The serial number SN that have already been used are stored in the data file The new Serial Number can be created automatically by incrementing the Serial Number or can be taken from the file created b
100. scii used in the target memory Custom and from the file serial number can be stored in Ascii or HEX format 8 2 2 1 HEX MSB first MSW first LSW LSB first formats When hex format is selected then all SN display formats described above can be stored as a one or two integer 16 bits 2 bytes numbers First four display characters will be saved as one hex integer number and remaining five characters will be saved as a second hex integer number When format HEX MSB first is selected then the first hex integer number is saved as a first byte and the second number as a next byte etc in the Flash memory location When format HEX MSW first is selected then the first hex integer number is saved as a first word and the second number as a next word in the Flash memory location When format HEX LS W LSB first is selected then the first hex integer number is saved as a second word and the second number as a first word in the Flash memory location Display Format YYYY 1234 5 size in FLASH 4 bytes SN 200300123 will be saved as YYYY 2003 Decy gt 0x07D3 hex FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 59 12345 00123 gt 0x007B hex In flash memory this number can be seen as 07D3 007B gt HEX MSW first 007B 07D3 gt HEX LSW first Displayed consecutive serial number 16 bits integer number can have a value from 0 to 2 16 1 equal 65535 and is displayed as the 5 digits serial number Display Format
101. sed again regardless the flash contents If the option FLASH Do not erase segment if already blank is selected then the blank sector is not erased again if it is already blank That can speed up programming process because erase procedure requires a more then one second to erase one sector of the flash memory Update only When this option is selected the Auto Program 3F0008 procedure will not erase memory contents Instead 25CA 8040 39E3 F802 Contents of the code data taken from the Code File 3F0020 will be downloaded to the flash memory This option 4835 5972 ACB8 is useful when a relatively small amount of data such q as calibration data needs to be added to the flash Figure 6 6 memory Flash memory space defined by Code File should be blank Code file should contain ONLY data which will be downloaded to flash memory For example if code file contains only data as shown in figure 6 6 in Texas Instruments format then 4 words of data will be written starting at location 0x3F0008 and 3 words of data starting at location 0x3F0020 Before FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 46 writing operation all data in the flash memory at the specified location should be blank contain value OxFFFF The software will verify automatically if this part of memory is blank and will only proceed to program the device if verification is successful 4 OTP Memory only When this option is selected then the OTP memo
102. sequences of pressed buttons with extra few condition options This programming method is described in chapter 10 of this manual Script file option is not available in lite software version 2 1 3 DLLs When the customized programming sequence is not covering customer s requirements then an attached to software package DLLs can be used DLLs allows to fully control programming adapter from external software written in MS Visual C MS Visual Basic LABView DOS or other programming packages like Borland C etc See FlashPro2000 Remote Control Programming User s Guide for details 2 1 4 Self Test Program Software package contains the Self Test program that allows to check the adapter target device and connection functionality The Self Test program uses the API DLL for communication between Self Test Program and hardware See Appendix B in this manual for details FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 10 3 Getting Started The X Pro430 programmer package contains see Figure 1 1 l One READ ME FIRST document 2 One Flash Programmer CD ROM Software Manual 3 One FlashPro2000 USB FPA 4 4 or higher Flash Programming Adapter RoHS Elprotronic Inc FlashPro2000 Flash Programming Adapter for TI s DSP C2000 PN USB FPA 4 4 SN 20090001 IHAIA 19318 L 4 One 6 feets length USB A to USB B cable extender www elprotronic com 5 One C2000 JTAG PE034X02 adapter with 14 C2000 J
103. ters FlashPro2000 programming software can be used to access a single target device regardless type of the used FPA Using the FlashPro2000 FPA model USB FPA 4 4 the target device can be connected to FPA via JTAG or SCI BOOT FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 19 4 Programming Dialog Screen ri FlashPro2000 TMS320F2000 Flash Programmer Elprotronic Inc File View Setup Serialization Tools About Help lO x Open Code File gt datas txt path E Elprotranic Project Cpp DSP C2 Interface JTAG fast y Dpen Password File gt path SN File o aaa r Microcontroller Type Group TMS 320F28xx y TMS320 F28027 y Target TMS320F28027 id 0xCF ver 0x00 Status Total Balance 0 M DSP clock MHz RESET ose 10 00 DSP Ycee meassured M osc 10 03 5 024 PLL 50 16 InJT amp G Chain Pos fi y Size 1 y r CSM Security From Code File 7 Enable Write CSM password O gt Check Sum Source DOx060C4 769 M Selected Device Information R M 6 0kB FLASH 64kB Report Flash API version 1 00 Reading Target Label Reading OTP Data Erasing memory All memory Blank checking Flash programming z Adapter C2000 FlashPro2000 STD Interface JTAG Memory Ox060CA769 A M Device Serialization 20091015 Read SN Hert Model taroup Revision rev 01 model AB3456 Next SN 2
104. to 16 Flash Programming Adapters can be connected to one PC Each adapter can be controlled by one opened software application Up to sixteen application software can be opened at the same time Each application software can have independent setup from the other application software setup code file controlled microcontroller type etc X Pro FPA Selector More than one FPA has been detected Please select the serial number of the desired FPA to be designated to the current programming software dialog screen FPA List f 20090001 FlashPro 4x C2000 FlashPro2000 STD 20070240 Ganapro 5x MSP EC GanaPro MSP EC STD gt Legend FlashPro 1x gt USB M5P430 FPA 1 x FlashPro 2x gt USB MS5P430 FPA 2 0 GangPro 3x gt USB M5P430 FP4 3 0 FlashPro 4x gt USB FPA 4 x GangPro 5x gt USB FPA 5 x Other FPA Figure 3 4 1 FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 18 When more then one X Pro430 adapter is connected to PC then following X Pro430 selector dialog screen will be displayed on the PC screen see Figure 3 4 1 Using available buttons the one desired Flash Programming Adapter should be selected Make a sure that selected X Pro430 programming adapter is not used by other opened application Selected X Pro430 s serial number will be displayed on the left bottom side of the programming dialog screen The FlashPro2000 programming software supports all X Pro430 programming adap
105. ull verification read word by word is established When the Autoprogram function is used then only checksum verification is tested if the fast verification is selected Check Sum Source 0x07752787 Memory 007752787 y Figure 4 6 6 1 Calculated checksum is displayed in the Check Sum group window one checksum present the checksum taken from the code file and the second one taken from the target device In the Check Sum group is displayed only the simplest arithmetic checksum however during the checksum calculation is also verified the Pseudo Signature Analysis PSA of the data taken from the code file and target device The Arithmetic Check Sum is calculated as the sum of unsigned integer data of all words 16 bits specified in the code file and taken from the target device Words that are not specified in the code file are ignored For example if code file contains only 3 words and even if the target device FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 34 has a flash with size 256 kB then only 3 words from the target device will be taken for check sum calculation That allows to compare the contents of the used code file with the part of programmed target device Example below show the check sum calculation of the small code in TI txt format containing only 6 words 3F0000 address Ox 3F0000 2386 A53F F253 3F0100 address Ox 3F0100 176A E238 38AC Check sum 0x2386 OxA53F 0xF253 0x176
106. word or destination s PC hardware fingerprint number So the project file created with the FlashPro2000 software cannot be used with the FET Pro430 or GangPro430 and vice verse Each project file should be create in the same type of software Project file is CRC protected and CRC check is performed when the file is loaded Project can be unprotected or protected with the destination PC hardware fingerprint number or password protected This allows to create the project that can be used only on the specific PC when the project is encrypted with the destination PC hardware fingerprint number useful in FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 92 production or create the project that can be used only when the correct password is entered every time when the project is open Project can be unlocked or locked with almost all blocked buttons and pull down menu items When the project is locked then only major buttons like Autoprogram or Verify are active and only a few pull down menu items are accessible All options that allows to read the code contents are blocked When the new project is create then it is recommended to select the New Setup from pull down menu and set the default option of all parameters and names used in the programmer As the next the desired processor code file password file if required and all desired option see all available options described in this manual should be selected When it i
107. y user Used serial numbers are stored in a data file Furthermore model name group revision can be downloaded to target device Note The SN format and location in the device s flash memory must be specify by the user Serial number is created when Auto Program or Write SN button is pressed and the Serial Number feature is enabled When Auto Program function is activated the SN is programmed to the target s device memory at the same time along with code data If Auto Program fails for any reason then new SN is not created The software also allows the microcontroller to retain its SN if one has already been assigned to it Every time a device is programmed and serialization is enabled the contents of the target s memory are scanned for existing serial number If the serial number is found the message in figure 8 1 1 will appear and allow you to decide if you wish to keep the old serial number new serial number or serial number modified manually Serial Number Editor ey Sj xj p Serialization VERIFY with Data Base Target s SN 20080001 NewSN 20080002 Edited SN 20080002 DK Cancel Format yyyy1234 M Model Group Revision rev 01 model AB34543 Target s Model Group Rev etc fiev 01 model 4B34543 Figure 8 1 1 FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 56 8 2 Serialization Dialog Screen TT x Serialization Setup V ENABLE Serialization Remove code contents i
108. yed in the Device Serialization Device Serialization group Adapter Rev 2 The Next Model Group_Revision and Next 200200021 FEAD SH SN edit lines can contain any SN and text When the na aay i Next Model Group Revision device is programmed the next model text is taken from the Model Group Revision Text of the Serialization Adapter Rev 2 dialog screen The next SN is generated automatically Next SH 200300022 according to the setup in the Serialization This means Format yyy 2345 that any data entered in the Device Serialization group can be treated as temporary data This data is Figure 8 2 4 1 downloaded to only one target device FlashPro2000 C2000 Flash Programmer PM034A01 Rev 2 67 Current target s label model text and serial number can be read at any time by pressing READ SN button located in the Device Serialization group see figure 8 2 8 2 5 Bar Code Scanner setup Programming software has capability to get a data from the Bar Code Scanner Bar Code Scanner should be connected to PC computer in series with the keyboard using the Y cable or to the USB port Refer to the Bar Code Scanner manual for details Bar Code Scanner when enabled by selecting the ENABLE in the BarCode Scanner group then can enter scanned data directly to the Next SN edit line When the new SN is entered then AUTOPROGRAM function can be started automatically if Start AUTOPROGRAM following
109. ytes FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 63 8 2 2 3 ASCII format When Ascii format is selected then all SN display formats described above can be stored as a four or eight separate bytes converted to Ascii characters All consecutive serial number characters are converted to Ascii characters Display Format YYYY 1234 size in FLASH 8 bytes SN 20030123 will be saved as YY YY 2003 gt 0x32 0x30 0x30 0x33 bytes or 2 o o g3 1234 0123 gt 0x30 0x31 0x32 0x33 bytes or MON IN 2 3 When flash memory bytes are viewed then this number can be seen as lt Hex format gt lt Ascii format gt 3230 3033 301 3233 20030123 Size 8 bytes Display Format YYMM 1234 size in FLASH 8 bytes SN 03030123 will be saved as YYMM 0303 gt 0x30 0x33 0x30 0x33 bytes or ge 857 FU Sa 1234 0123 gt 0x30 0x31 0x32 0x33 bytes or O eJ 9 3 In flash memory this number can be seen as lt Hex format gt lt Ascii format gt 3033 3033 301 3233 03030123 Size 8 bytes Display Format YYMMDD 1234 size in FLASH 10 bytes SN 0405110123 will be saved as YYMMDD 040511 gt 0x30 0x34 0x30 0x35 0x31 0x31 bytes or oO 4 Ol Ss YT y 1234 0123 gt 0x30 0x31 0x32 0x33 bytes or OY 3 1 9 6 3 In flash memory this number can be seen as FlashPro2000 C2000 Flash Programmer PMO034A01 Rev 2 64 lt Hex format gt

Download Pdf Manuals

image

Related Search

Related Contents

Lumens` top-of-the-line desktop document camera.  Unisys - Louisiana Medicaid  SERVICE MANUAL SERVICE MANUAL  User Guide - Ecologie Microbienne Lyon  Manuale - Magnetrol  MOTORIZED TREADMILL    Carrier 58EJA User's Manual  Samsung PL70 راهنمای محصول  MODE D`EMPLOI MODÉLE  

Copyright © All rights reserved.
Failed to retrieve file