Home

GangPro-CC User's Manual

image

Contents

1. Mea deed 45 8 2 Address amp Serialization Dialogue Screen 47 8 2 1 IEFE Address selection 48 8 2 2 IEEE SN Record File ule lA REX ARRA E S eeh 50 82 9 Serialnumber formats dn GAs Ge eon 51 8 2 4 Model Group 59 8 2 5 Device Serialization 60 8 3 Serialization Report Dialogue Screen 62 data le edt uten Sou MN 64 10 CHECK SUMO DONS sa core deme dab oo eo eee oa a 69 10 1 Check Sum types oes XI RR ace POR RP XR 72 11 Script File defined programming TI IT T SeAap buton kd oett d Ea ovp M MERE 77 11 2 Senpt fle 78 ll 55 commands oet Pr REO bk 79 12 Project and Configuration Load Save 85 12217 oat Save SOU ws ete CREER ees eh eke Sse 85 2 2 Wad Save Project sro oti be tem eG ee pde UY eat 85 12 3 Commands combined with the executable 89
2. 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 fest cfg 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 11 2 Script file option 78 Programming sequence be customized when using the rf with the executable file described in the Project and Configuration Load Save chapter When the executable file GangPro CC exe is called with a script path as an argument e g FlashPro CC exe rf C Program Files Elprotronic USB GangPro CCNscript txt or when the icon with the GangPro CC 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
3. Result Inverted Figure 10 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 CS Result size Figure 10 2 Polynomial contents if required can be specified in the POLY edit line in HEX format eg 0x1234 10 1 Check Sum types Following Check Sum types are implemented Figure 10 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 72 CS CS unsigned int data addr CS 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 long data addr CS OxFFFFFFFF amp CS if cs_inverted CS OxFFFFFFFF CS Arithmetic Sum 16b 16b Check Sum is calculated as modulo 16 bits sum of all 2 byte words unsigned from Start to the End Addresses as follows CS CS_initial_value for addr StartAddress addr lt EndAddress addr addr 2 CS CS unsigned int data addr unsigned int data addr 1 CS OxFFFF amp CS if cs_inverted CS OxFFFF CS Arithm
4. viewed then this number be seen as lt Hex format gt lt Ascii format gt 32 30 30 33 3031 32 33 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 1234 0123 gt 0 30 0x31 0x32 0x33 bytes or 0 1 9 2 In flash memory this number be seen as lt Hex format gt lt Ascii format 30 33 30 33 3031 32 33 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 pe T 1234 0123 gt 0x30 0x31 0x32 0x33 bytes Or 0 1 2 2 In flash memory this number seen as lt Hex format gt lt Ascii format gt 30 34 30 35 31 31 30 31 32 33 0405110123 Size 10 bytes Display Format YYDDD 1234 size in FLASH 9 bytes 57 SN 042140123 will be saved as YYDDD 04214 gt 0x30 0x34 0x32 0x31 0x34 bytes or 4 g 1234 0123 gt 0 30 0 31 0x32 0x33 bytes or 0 1 2 In flash memory this number be seen as lt Hex format gt lt Ascii format 30 34 32 31 34 30 31 32 33 042140123 Size 9 bytes Display Format 123456768 size in FLASH 8 bytes SN 12345678 will be saved as
5. Driver installation process will start Driverinstallation procedures should be done twice Software will install two USB drivers the Boot driver and the Application driver Reboot computer on the end 3 2 Hardware Setup Connect the USB FPA Flash Programming Adapter to the PC USB Port or via USB HUB using provided cable extender USB A to USB B see figure 3 2 1 Plug in socket connector from the USB FPA Flash Programming Adapter to the J1 connector on the GangPro CC Splitter PN PE014X03 using ribbon cable with 14 pins connectors Connect up to six target devices to GangPro CC Splitter using ribbon cables with 10 pins connectors Make sure that pin 1 on your device board s header is connected to pin 1 red wire of the socket connector Target devices can be supplied form programming adapter programmable Vcc 2 2V to 3 6V with step 0 2V max total current 100 mA see Figure 3 2 2 top or from external power supply When target devices are supplied from external power supply then power supply ON OFF can be controlled from programming adapter see Figure 3 2 2 bottom 17 GangPro CC 10 wires ribbon cables Short 14 wires ribbon cable N 9 at 1 zal Zest 5 2 2 S 1 4 l USB FPA i Gang Splitter Target Devices 2 l _ el 8 USBs connection from PC Directly or via USB HUB I u zi D 05 21 2 2 5 Figure 3 2 1 Po
6. ns ne acm une ns xELEO 2 mu sue sum BE HS EE 2 iun me 56 5 OxE2D0 srar eyer ss e ass ear er mer vsr USEADOs 2 AN RR XOX AY RO JG 55 5 RR RS iGx Aue o RUN DxBE320 5 AR SA RA SR m B5 AH AM AR BS DERSZUSS ce iem agen coca xE3BO ae ium sum see ait 4 gue GU oop D xEJEU xx xc sum Gu qum sw sun DEBES usn umet ica e skin cna me ome BE roris r Target Device selector 10 2 C 4 5 6 C Exit Figure 5 2 36 5 2 Note Only data at the addresses specified in the code file 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 37 6 Memory Option Dialogue Screen The Memory Options Dialogue Screen Fig 6 1 has five settings groups and one information group Two of the settings groups allow the user to specify four flash
7. Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue lt Back Next gt Cancel Figure 3 1 2 14 3 Software will search the driver for the 5 It can take one minute to find it When the driver is found then the following warning will be displayed Figure 3 1 3 Found New Hardware Wizard Please wait while the wizard installs the software USB FP4 BOOT Hardware Installation A The software you are installing for this hardware 5 has not passed Windows Logo testing to verify its compatibility with Windows 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 passed Windows Logo testing Continue Anyway STOP Installation Figure 3 1 3 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 4 5 Press Finish button 15 Found New Hardware Wizard 554 Completing the Found New gt Hardware Wizard NS The wizard has finished installing the software for 5 Cli
8. F128 M Target Devices Programming Result BOOT protected Target Enable 1 2 5 Write LOCK Bits Target CC2431F128 Total 20 Connect E Balance 11 Erase Blank Check M i L 8 mM Device Action i ID version 0x89 0x01 Program Verify IEEE SN 19 LOCI Pintection E Reload File Selected Device Information Over AUTO PROG 8192 bytes FLASH 128 kB Device s IEEE Address and Serialization Verify LOCK Bits Report Manual gt Retain Code Write IEEE address 7A01 4x02 rev 2 T Autoprogram gt Write IEEE address from the file ERASE FLASH Writing SN pT 222223 done 0011111111111123 0011111111111126 1 222223 222226 BLANK CHECK Whiting SN p2 222224 done Writing SN 222225 done 0011111111111124 00111111111111 27 2 222224 222227 WRITE FLASH Flash programming mcd mel Writing IEEE Address 5 Verifying check 4 VERIFY FLASH SSS ESS Es 00111111111111 5 0011111111111132 e 222225 222232 READ COPY Read IEEE Addr Write IEEE Addr Read SN Write SN Adapter Any GangPro xx Erase Write memory option All Memory AUTO PROGRAM Interface SoC 3 Mb s NEXT F5 Reading Target Label Figure 4 1 Programming dialog
9. 13 Target connection Und SLE EIN ACA MES 93 14 Driver for the C Spy debugger 99 15 Driver for the Keil uVision debugger 105 Appendix A specification 108 1 Introduction The GangPro CC programmer is designed to allow simultaneous programming of up to six CC series SoC with 8051 MCU devices Chipcon products from Texas Instruments The programmer configures target devices by using the debug interface The programmer package consist of a microcontroller based adapter Figure 1 1 Windows based software a Gang Splitter to connect up to 6 devices to the adapter and cable to connect the adapter with the computer s USB port The internal firmware nE m P FlashPro430 GangPro430 version 3 7 1 FETProd30 ve diii SEN software allows to communicate with the programmed device with high speed The effective programming speed write only is around 20 kbytes s simultaneously up to six target devices that is equivalent to 120 kbytes s programming speed per one programmed target device Due to this high speed communication programming time is very short and Figure 1 1 programmer can be used to program flash devices in the production process For example six devices with 128 kB Flash such as CC2430F128 can be programmed in 12 seconds This time includes initia
10. Done OK sound C WINDOWS Media Windows Balloon way Play Browse Warning sound C AWINDOWS Medial Windows XP Exclamation wav Play Browse Error sound citwinbowsiedistWindows XP Error wav Play Browse Cancel OK Figure 7 3 44 8 Serialization 8 1 Introduction The GangPro CC programming software has the ability to automatically create the target device s IEEE Address and Serial Number and save it in the flash memory These numbers are also saved in the data base file The new IEEE Address and Serial Number can be created automatically by incrementing the IEEE Address Serial Number or can be taken from a file created by the user Furthermore model name group and revision can be downloaded to target device The IEEE Address format is fixed and contains 8 bytes located at the end of the flash memory The Serial Number format and location in the device s flash memory must be specify by the user Note The Serial Number assignment option is available only when the programming adapter FPA with the standard access is used The FPA lite version does not have access to serialization The IEEE Address can be created with FPA standard and lite version IEEE Address and Serial Number are created when the Auto Program or Write SN Write IEEE Addr button is pressed and the Serialization feature is enabled When the Auto Program function is activated then the IEEE Addr
11. option is useful in production because nobody can modify sequence that has been prepared for the production purpose 11 3 Script commands LIMITATIONS 1 Up to 1000 script lines commands 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 NOTE After label can not be specified any command in the same line Line can contain label only LIST OF INSTRUCTIONS MESSAGEBOX type FCTEXT pop up message box with buttons message taken from the FCONTROL function User s DLL MESSAGEBOX type pop up message box with buttons message line 1 Text displayed in message box message line 2 Each line contents must be located between characters max up to 50 lines Number of content lines up to 50 lines Message box type list 79 OK One button OK OKCANCEL Two buttons OK CANCEL YESNO Two buttons YES NO YESNOCANCEL Three buttons YES NO CANCEL GOTO label CALL label CALL procedure RETURN return from CALL IF condition GOTO label IF condition CALL label condition list BUTTONOK BUTTONYES
12. the main memory segment size is 0x200 then the start address should be a multiple of 0 200 eg 0x2200 The stop address should specify the last byte of the segment to be written Therefore it should be greater than the start address and point to a byte that immediately precedes a memory segment boundary eg Ox23FF or 0 55 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 options available 1 2 3 4 All Memory Main memory only Info memory only User Defined 40 The meaning of each option is the same as for the erase write verify procedure The Info Memory only option works the same way as Main memory only option described above except that only information memory is modified 6 3 Verification Group Verification group setup allows the user to select one of the three write verification methods Fast Verification Standard Verification None Fast Verification During the fast verification each byte is verified after being written and at the end of the process the check sum is read from the flash memory and compared to calculated check sum taken from the code file 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 they are the same then verification process is successful T
13. 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 31 32 33 34 35 3637 38 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 31 32 33 34 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 When the Ascii format is selected then the Ascii string is saved in memory is All Ascii characters can be used For example the entered following string 02WX248234 58 will be saved in memory as 30 32 57 58 32 34 53 32 33 34 gt 02 245234 When 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 C D 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 MSW first gt 02 B1 09 EI 2F or HEX LSW first gt 2F El 09 A302 Location in the target device s flash memory where the described above bytes are saved is specify in the Memory Location SN Start Address in Memory fi
14. 6 2 Verify LOCK 30 4 6 3 Erase Flash button 31 4 64 Blank Check button 31 4 6 5 Write Flash button 32 4 6 6 Verify Flash button 32 4 6 7 Read Copy Flash button 33 4 7 Next button a Ee 34 2 Data viewers x A SEN Aa 35 6 Memory Option Dialogue Screen 38 6 1 Memory Erase Write Verify Group 39 O2 Read Group lt lt sete es on ire cee ere Pees ee ee dE ERE 40 6 3 Verification Group 539i pU Ne te wees 41 7 Adapter ODIIONNS rad Rad 42 74 Communication Dialogue 42 7 1 1 Communication 42 72 gt 1 1 BOX So eae es eee 42 1 2 Resetpulse durations iue y oo eye wee Pe o a i 43 7 2 2 Final Target Device 43 7 3 Options Dialogue BOX 44 SL DOMINION Ot 45 8 1 IntroductlOri lucu vos
15. BUTTON OR OTHERWISE INDICATE REFUSAL MAKE NO FURTHER USE OF THE FULL PRODUCT AND RETURN IT 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 use the software 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 redistribute in whole or in part any part of the software component of this Product 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 copies of the Pr
16. BUTTONNO BUTTONCANCEL DONE FAILED CONTROL number 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 finished successfully if selected process e g AUTOPROGRAM failed if status from the FCONTROL function NUMBER FCONTROL type argument PAUSE number call the external function from FxControl DLL pause in miliseconds 1 to 100000 range 1ms to 100 s OPENDLLFILE filename LOADCFGFILE filename LOADCODEFILE filename LOADSNFILE filename FxControl DLL file Full path and DLL File name Configuration file Full path and File name Code file Full path and File name IEEE SN file Full path and File name VCCOFF Turn OFF Vcc from programming adapter to target device VCCON Turn ON Vcc from programming adapter to target device Note Vcc from FPA must be enabled first using configuration file RESET equivalent to pressed button RESET on the main dialogue screen AUTOPROGRAM equivalent to pressed button AUTOPROGRAM on the main dialogue screen VERIFYACCESS equivalent to pressed button VERIFY LOCK BIT on the main dialogue screen ERASEFLASH equivalent to pressed button ERASE FLASH on the main dialogue screen BLANKCHECK equivalent to pressed button BLANK CHECK on the main dialogue screen WRITEFLASH equivalent to pressed button WRITE FLAS
17. Debugger TDRV2 BIN MON390 DLL MON390 Dallas Contiguous Mode 105 TDRV3 BIN LPC2EMP DLL LPC900 Emulator Programmer TDRV4 BIN CCfpaUv2 dll Elprotronic FPA for Chipcon RTOS1 RTXTINY DLL RTX 51 Tiny RTOS2ZRTXS5I DLL RTX 51 Full VersionzV7 0 51 SN MSC1210 Step 3 Run Keil software Open Project gt Option for Target gt Debug and select Elprotronic FPA for Chipcon Make sure to select Use v Load Application at Start up add Go To main optional Options for Target Simulator lt e Settings Use Elprotronic FPA for Setting Figure 15 1 Step 4 106 Press Setting button and in the and Target Setup select desired Vcc communication speed and Any FPA or selected FPA with desired FPA s Serial Number SN if more then one FPA is used FPA and Target Setup Figure 15 2 Unit is ready to work 107 Appendix A specification Specification PC Communication Interface Full Speed USB 1 1 12Mbits s USB connector Adapter site USB type B Computer site USB type Target connector 14 pins header connector Number of programmed target devices up to 6 programmed simultaneously via debug interface DC Power from USB Interface 5V 2096 50mA target s current 0 100mA Target Device DC supply external 2 2 V to 3 6 V from programming adapter 2 2 V to 3 6
18. SN SN format Ascii IEEE_SN_LIST SN_SIZE 12 SN_PREFIX WX5E2007 Ascii character SN_SUFFIX IEEE PREFIX 010222000 hex only SUFFIX 0022 001 001 002 002 003 003 004 004 005 005 The same IEEE Address Serial Number list with specified prefix only IEEE Address Serial Number List first col IEEE address second col SN SN format Ascii 66 IEEE_SN_LIST SN_SIZE 12 SN_PREFIX WX5E2007 Ascii character IEEE_PREFIX 010222000 hex only 0010022 001 0020022 002 0030022 003 0040022 004 0050022 005 When writing a new IEEE Address SN entry the IEEE Address SN be compared to those stored in the IEEE SN data file To do so the data file should be specified the SN IEEE Record file field see Figure 8 2 When the desired IEEE Address Write option and Serial Number Format is selected using the data from the file then using the SN IEEE file button located in the main dialogue screen Figure 4 1 the desired IEEE SN file should be opened Selected file is converted to final format and all listed IEEE addresses and serial numbers are verified in the data base file against usage If specified IEEE addresses or SN have been used before then these numbers are removed from the pending list When the IEEE SN file is read and verified then the current pending list is displayed in the sc
19. V in step 0 2V 100 mA max Communication speed via debug interface selectable 3Mb s or 1Mb s Size 76x43x20mm 3 0 x 1 68 x 0 8 inch Verification Compliance European CISPR 22 and EN 55022 FCC Part 15 Subpart B Class B Unintentional Radiators for Uses in Home Commercial and Industrial Areas 108
20. bytes 55 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 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 12345678 gt 0x12 0x34 0x56 0x78 bytes In flash memory this number can be seen as lt Hex format bytes gt 12 34 56 78 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 12 34 Size 2 bytes 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 56 Display Format 1234 size in FLASH 8 bytes SN 20030123 will be saved as YYYY 2003 gt 0x32 0x30 0x30 0x33 bytes or 2 OO 0 3 1234 0123 gt 0x30 0x31 0x32 0x33 bytes or 0 2 When flash memory bytes
21. c lt lt 1 crc tab32 i unsigned long OxFFFF amp 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 CS CS CRC32 8to32 long data addr CS CS OxFFFFFFFF 5 CS if cs_inverted CS OxFFFFFFFF CS where unsigned long CS CRC32 8to32 long data unsigned long crc return gt gt 8 amp OxOOFFFFFF crc_tab32 0xFF amp crc data 1 The CRC table is generated first as follows CS init crc32 tab 0x04C11DB7 for IEEE 802 3 75 a polynomial of x32 x26 x23 x224 x164 x124 x11 xl0 x8 x74 x54 x44 x24 x 4 1 and CS init crc32 tab CRC def POLY for CRC32 defined polynomial where void 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 0 n 256 unsigned long n for 0 k 8 k c c amp 1 poly gt gt 1 gt gt 1 crc tab32 n c 11 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 cus
22. nails see Figure 2 1 11 Via USB HUB Access to boards via nails Figure 2 1 2 2 4 Driver for the IAR CSpy uVision debugger The FPA programming adapter can also be used with the IAR Embedded Workbench or KEIL uVision IDE software for debugging See chapters 12 and 13 for details 12 3 Getting Started 3 1 GangPro CC programmer package contains One READ ME FIRST document One X Pro CC Flash Programmer CD ROM Software Manual One GangPro CC Flash Programming Adapter One 6 feets length USB A to USB B cable GangPro CC Splitter that allows to connect six target devices to one USB FPA adapter Six ribbon cables with 10 pins connectors One 14 pins ribbon cable Software Installation The X Pro CC Flash Programming Software runs on PC under Windows TM ME WinNT 2000 or XP Follow instructions below to install the software Insert X Pro CC Software CD into your CD ROM drive The X Pro CC Setup wizard appears automatically Click Install X Pro CC Programmer to begin the installation process If the Setup wizard does not start automatically click the Start button and choose the Run dialogue box Type D SETUP EXE where D represents the drive letter of your CD ROM drive Then click the OK button Once the installation program starts on screen instructions will guide you through the remainder of the installation You must accept licence agreement b
23. specified optional read label information IEEE address Serial Number Model Group Revision optional erase flash memory erased memory blank check flash programming and verification assign or retrieve label information restore retain data if specified retain data verification if specified assigned or retrieved label verification flash memory check sum verification set flash protection bits 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 a production process The total number of programmed devices can be entered in the Total edit line The Balance line shows the number of devices that have not been programmed yet The Balance counter is initialized to the value entered in the Total edit line and is decremented every time Auto Program is completed successfully In the bottom box in the Status group is displayed number of the available IEEE addresses and serial numbers taken from the used defined file Note Balance counter works only with the Auto Program procedure 4 6 2 Verify LOCK bits 30 This button allows the check the access to target device and read protection bits setup if access is available 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 sel
24. use 3 00 1 1 Figure 13 3 0 E 2 52 1 94v 0 Ay Oz 9797979 ELPROTRONIC INC 2007 a a js Figure 13 4 TARGET DEVICE 6 TARGET DEVICE 5 TARGET DEVICE 4 TARGET DEVICE j TARGET DEVICE 2 TARGET DEVICE 1 95 ELPROTRONIC INC Splitter Target 1 SoC debuq Target 2 SoC debug Target 3 SoC debug ET Target 4 From DangPro CC SoC debug Target 5 SoC debug Target 6 SoC debug Figure 13 5 96 ELPROTRONIC INC GangPro CC i ea TE E l E nx gt fT 3 I z 25 61 BH 1 3 acus i 8 78 T T Figure 13 6 97 value 33 to 47 pF is connected between DD Data pin and ground on the target s device Do not connect any components to the DC Clock pin coupled DD and DC iO Oc m e pa Standard ribbon cable shielded DD and DC 10 20 30 40 50 70 won Twisted wires 2 and 3 in the ribbon cable Figure 13 7 98 14 Driver for the C Spy debugger The FPA programming adapter can be used with the IAR Embedded Workbench IDE software for debugging Whe
25. 2000 C Custom RESET pulse Target Device action Keep RESET line active on low level default Program RUN time C Hardware Reset RST line and start the application program 0 540 120 OFF ON Vcc and start the application program Enter 0 second for unlimited time Vcc OFF time 500 ms 50 5000 Figure 7 2 7 2 1 Reset pulse duration The reset pulse allows the adapter to initiate communication with a microcontroller 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 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 2 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 device action is finished then RESET line is again asserted protecting the target device from running the application program This method is commonly used to protect the programming adapte
26. 30 0103 223344556677898D 00000138 FEB 24 2007 16 31 YYMMDD1234 5 0104 223344556677897 00000132 FEB 24 2007 16 31 Custom 0105 2233445566778981 00000133 FEB 24 2007 16 31 Custom fram file 0106 2233445566778991 00000139 FEB 24 2007 16 33 50107 2233445566778991 00000140 FEB 24 2007 16 33 0108 223344556677897A 00000132 FEB 24 2007 16 33 0109 2233445566778981 00000133 FEB 24 2007 16 33 0110 2233445566778995 00000141 FEB 24 2007 17 24 Exit Figure 8 6 displayed on the white report box see Figure 8 3 1 IEEE SN are created automatically via software by incrementing the highest IEEE SN taken from the serial number files If from any reason the highest IEEE Address or Serial Number is wrong it can be removed from the database by 62 pressing the Delete button Note that the delete operation is not reversible Third line allows to select any line from the report information and delete it if required Selected line is marked in the report window with character gt on the left of the selected line 63 9 IEEE SN data file The GangPro CC software allows the user to download the IEEE Address and or serial number from custom defined data file When the data file is used then in the IEEE Address Write to Flash option the Write IEEE address from the file option should be selected see Figure 8 2 and in serialization the Serial Number Format field should be set to From Fi
27. 56768 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 51 When the serials number formats 1 through 6 are selected then in the dialogue screen all numbers are displayed and edited as a decimal numbers Only numeric keystrokes from 0 to 9 will be accepted All displayed numbers decimal are converted to the format HEX BCD or ASCII before they are saved to flash memory When the Custom or From the file serial number is selected then any keystroke is accepted When the ASCII format is selected then entered SN is saved as is in the flash memory When the Hex format is selected then only the HEX characters be used 0 9 A B C D E F HEX MSW first and HEX LSW first format 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 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 me
28. GangPro CC Flash Gang Programmer for the CC series devices User s Manual Software version 1 7 025 01 5 June 19 2009 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 or support of any kind E
29. H on the main dialogue screen VERIFYFLASH equivalent to pressed button VERIFY FLASH on the main dialogue screen READFLASH equivalent to pressed button READ COPY on the main dialogue screen READSN equivalent to pressed button READ SN on the main dialogue screen READIEEE equivalent to pressed button READ IEEE Addr on the main dialogue screen LOCKFLASH equivalent to pressed button LOCKFLASH on the main dialogue screen TRACEOFF trace OFF TRACEON trace ON and saved in the Trace Scr txt file in current working directory 80 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 FCONTROL type argument call the external function from FxControl DLL Function should be created using Visual C and attached to FlashPro CC 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 onl
30. L AUTOPROGRAM GOTO START C Elprotronic Project Cpp Net GangPro CC finalcode cfg 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 15 0 FALSE then procedure returns to start Required DLL file should be created first 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 to test the board CANCEL to exit from program IF BUTTONCANCEL GOTO finish LOADCFGFILE C Elprotronic Project Cpp Net GangPro CC test A cfg MESSAGEBOX OK Press OK to download the test program 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 LOADCFGF ILI C Elprotronic Project Cpp Net GangPro CC fin
31. N 0405110123 will be saved as YYMMDD 040511 Decy gt hex 1234 0123 gt 0x007B hex In flash memory this number be seen as O8AB 007B gt HEX MSW first 007 gt HEX LSW first or lt Hex format bytes gt Size 4 bytes 08 7B 00 gt HEX MSW first 7B 00 AB 08 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 53 YYDDD 04111 Decy gt 0x086F hex 1234 0123 gt 0 007 hex In flash memory this number can be seen as 086 007 gt HEX MSW first 007 086 gt HEX LSW first or lt Hex format bytes gt Size 4 bytes 6F 08 7B 00 gt HEX MSW first 7B 00 6F 08 gt HEX LSW first Display Format 123456768 size in FLASH 4 bytes SN 12345678 will be saved as 12345678 gt Ox00BC614E hex In flash memory this number can be seen as 614E gt HEX MSW first 614E OOBC gt HEX MSW first or lt Hex format bytes gt Size 4 bytes 00 BC 4E 61 gt HEX MSW first 4E 61 00 BC gt HEX LSW first Display Format 1234 5 size in FLASH 2 bytes 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 MS
32. POWER ON OFF button is enabled By clicking POWER ON OFF button you can turn the power on or off on the target device Current DC voltage on the target device is continuously 26 monitored and displayed in the Device Voltage field in the Power Device from Adapter group even if the target device is powered from the external DC sources If DC voltage is higher then 2 0 V then yellow box will be displayed indicating that DC voltage is OK and target device is fully functional under this DC voltage If DC level is below 2 0V then access denied sign box will be displayed red sign with white line If DC level is below 1V then blank sign box will be displayed When the target device is powered from the external power supply then the check box Enable Make sure that the current consumption of the target device does not exceed 100m4 IF it does then do not power the device through the adapter Instead use the power supply provided with the device or an external power supply Would you like to power the device From the programming adapter Yes No Figure 4 4 2 should not be selected External power supply ON OFF can be controlled from programming adapter from pin 8 see Figure 3 2 2 bottom Voltage level on the pin 8 is over 3 V typical 4 6V when external power supply should be enabled and below 1 V typical OV when the external power supply should be OFF It is recommended to put pull down resisto
33. Programming Adapter If the target s device is supplied from his own battery or from external power supply then the pin 2 or 4 Vdd sense should be connected to device s Vdd BUSY 1 when the communication with target is active Target s Device Vdd Sense see pin 2 description 2 3 Debug Data output Input 3 Figure 13 3 shows interconnection between GangPro CC programming adapter GangPro CC Splitter and six target devices using debug interface Figure13 4 and 13 5 shows picture and schematic of the GangPro CC Splitter Figure13 6 shows simplified schematic of the 14 pins Input Output connection inside the GangPro CC Flash Programming Adapter For the connection between programmed target device and programming adapter or Gang Splitter are used ribbon flat cables Active signals DD Data and DC Clock are using pins 3 and 4 in the 10 pins connector or wires no 3 and 4 in the flat ribbon cable When these cable are long then signals between these wires can be coupled and communication can be degraded When the long cables are between GangSplitter and target devices over 8 inches over 20 cm then it is recommended twist the wires 2 3 that allows to insert the Vdd wire between signal lines This modification will significantly reduce coupling between signal wires and allows to increase the cable length see Figure 13 7 Communication degradation can also be reduced when the small capacitor 94 7 do not USE 5 do not
34. W first HEX LSW first or lt Hex format bytes gt Size 2 bytes 39 30 bytes gt HEX MSW first or HEX LSW first 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 54 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 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 20 03 01 23 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 03030123 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 03 03 01 23 Size 4 bytes Display Format YYMMDD 1234 size in FLASH 5 bytes SN 0405110123 will be saved as YYMMDD 040511 gt 0x04 0x05 0 11 1234 0123 gt 0x01 0x23 In flash memory this number can be seen as lt Hex format bytes gt 04 05 11 01 23 Size 5
35. X02 1v2 txt 01 R 0003 04 17 IEEE Address and Serial number can be created as a unique SN per target device s type as a unique SN for any device type 8 2 3 Serial number formats Programming software has seven methods for creating a 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 dialogue screen When a serial number is created current date if required is taken from the PC timer Make a sure that your computer has the correct date and time Display Formats 1 YYYY 1234 5 SN Format F0 Serial number has 8 or 9 characters First four characters contain 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 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 1 to 366 and remaining 4 or 5 characters contain a number eg 041230123 5 1234
36. alcode cfg 83 GOTO START gt finish END 84 12 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 those settings will be used as default whenever the software is started 12 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 GangPro CC Programmer provides the option to Lock configuration settings When the user selects the Lock Unlock Setup option from the Setup menu the 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 Unl
37. alization box When serialization is disabled then all edit lines and check boxes are disabled When serialization is enabled all fields must be set IEEE Address amp Serialization Setup B x mM IEEE Address Setup IEEE Address Write to Flash option Autoprogram gt Write IEEE address from the file Address increment Ox Default IEEE address location 8 bytes at the end of the flash memory Defined IEEE address location all bytes must be located in one Flash sector IEEE Address data in Flash LSB First IEEE Address Start from 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 0 00000 Even Address only SN IEEE Record File c itestlieee sn Warn if Device s Flash Memory is not empty on the IEEE Address or SN location Serialization Setup ENABLE Remove code contents the location where the serialization and model are defined Serial Number Format M Display Format C 1234 5 YYMM 1234 5 1234 1234 5 12345678 123445 Custom From File char 4 256 MIn Memory Format C MSB First Memory Location SN Start Address in Memory oxrreo Used size 6 bytes HEX SW First LSW LSB First Serial Number date excluded starting From 0 Serial Number Increment 1 Model Group Revis
38. allows to create 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 12 3 3 Using Browse in the Create Shortcut dialogue box select the following executable file Arrange Icons By 4 Refresh Paste Paste Shortcut Undo Copy Ctrl Z 2 Folder Properties Shortcut B Briefcase Wi Microsoft Word Document 5 Microsoft PowerPoint Presentation Figure 12 3 3 C Program Files Elprotronic USB GangPro CC GangPro CC exe see Figure 12 3 4 and at the and add the required command keys see Figure 12 3 5 eg C Program Files Elprotronic USB GangPro CC GangPro CC exe lock sf E ElproTronic MFG prg 04 cfg 91 Create Shortcut Figure 12 4 Create Shortcut Prg exe lock sf E MFG prg 04 cf Browse Figure 12 5 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 GangPro CC programming software will start with the selected configuration setup and locked if required 92 13 Target connection Texas Instruments boards uses 10 pins connector for communication with the CCxxxx devices that allows to program target device via SoC debug interface This connecto
39. and modify it Modification can be added in the Debbuger Extra Option page see figure 14 3 for details Currently following options are implemented note dash must be on the front of all commands Command MCUtype Options for node project1 Category Factory Settings General Options CiC Compiler Setup Extra Options Plugins Assembler Custom Build Use command line options Build Actions Command line options per line Linker MCUtype CC2431F128 Third Party Driver Chipcon fpaSpeed fast Infineon ROM Monitor Analog Devices Silabs Simulator Figure 14 3 f commands is not used then any CCxx can be accepted default If MCU type is specified then warning will be displayed if MCU type is not the same then specified However if the same type of the MCU is used with different flash size then warning will not be displayed because ID number taken from the MCU specified only MCU type not the MCU flash size Acceptable MCU type list 101 CC1110F8 CC1110F16 CC1110F32 CC2430F32 CC2430F64 CC2430F128 CC2431F32 CC2431F64 CC2431F128 CC2510F8 CC2510F16 CC2510F32 2511 8 CC2511F16 CC2511F32 CC1111F8 CC1111F16 CC1111F32 RC11xx 8kB RC11xx 16kB RC11xx 32kB RC2300 CC2530F32 CC2530F64 CC2530F128 CC2530F256 Command example MCUtype CC2430F128 Command fpaVcc By default the Vcc from programming adapter is used with va
40. ata window can be specified in the Memory Options screen See chapter 5 2 Read group for details When the Copy button is clicked then the contents of the read target device memory will Flash Memory Data X Addr 00 01 02 03 04 05 06 07 0820904 O0B 0C OUD UE DE lt Ascii xEA20 OxEA30 40 OxEASO OxEA60 0 80 0 90 xEAAD xEABD OxEACO OxEADO xEAED OxEAFO OxEBOO 10 20 0 OxEB40 OxEBSO OxEBsO OxEB 0 80 90 0 DxEBBD OxEBCO OxEBDO OxEBEO xEBF Target Device selector nc 2 0 30 40 6 Convert to TI format Paste to Notepad Figure 4 6 7 1 33 be saved in the specified by user file name and opened as a current Code File Also programmer setup will be modified for the copy procedure Especially the serialization will be disabled and the All Memory option will be selected in the Write Erase Verify Address Range Following message will be displayed Copy Flash Contents of the Flash Memory has been saved in the E MMSP APPLYTmpCodeltest copy Ext and opened as a current Code File Mote The All Memory option in Write Erase Verify Address Range has been selected Serialization Feature has been disabled Model Group Revision Feature has been disabled Please replace the original device with the new
41. ck Finish to close the wizard lt Back Caricel Figure 3 1 4 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 If from any reason the wizard cannot find the USB drivers location then repeat steps 2 3 4 Found New Hardware Wizard E Completing the Found New Hardware Wizard The wizard has finished installing the software for 5 Elprotronic Click Finish to close the wizard Back Carcel Figure 3 1 5 using manual option and browse drivers from location software directory C Program Files Elprotronic XPro USB Drivers W2000 ME XP 16 7 Windows 2000 98 6 The New hardware has been found should be displayed Follow the wizard instruction to install the drivers Press Next when the Device Wizard Driver screen appear Select the following option on the wizard screen select for a suitable driver for my device recommended 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 DriversW98 press Next
42. contain ONLY data to be downloaded to flash memory For example if code file contains only data as shown in figure 6 1 1 in Texas Instruments format then 8 bytes of data will be written starting at location 0x1008 and 6 bytes of data starting at location 0x2200 Before writing operation all data in the flash memory at the specified location should be blank contain value OxFF The software will verify automatically if this part of memory is blank and will only proceed to program the device if verification is successful The addresses specified in the Code File as well as the number of bytes for each data block must be EVEN The software uses word two bytes operation for writing and reading data In case that the code file contains an odd number of bytes to write the data segment will be appended by a single byte containing the value OxFF This value will not overwrite the current memory contents but verification process will return an error if the target device does not contain the value OxFF at that location All Memory This is the most frequently used option during flash memory programming process The entire memory space is cleared before programming All contents from the code file can then be downloaded to the target microcontroller s flash memory Main memory only 39 6 2 This option allows the user to erase and program only the main memory Flash information memory segments A and B will not be modified If the code file c
43. cript file A user can define a sequence of programming steps by the means of a script file The script file is a sequence of programmer commands where each command corresponds to a button in the programming software Each command can be accompanied by a few options A script file of up to 1000 lines can be created The detailed description of script commands is given in Chapter 10 Please note that the script file is not available in the lite version of the programming software The second option allows to use command line interpreter not available in the lite version that can fully control the programming adapter via Multi FPA API DLL 2 2 3 DLLs The programming adapter can also be controlled through user created applications For this purpose a DLL is provided to allow a user to develop custom application that can control the programming adapter and allow the programming of target devices via the GangPro CC adapter The Multi FPA API DLLs allows to fully control up to 16 programming adapters to program simultaneously up to 96 target devices from external software written in MS Visual C MS Visual Basic LABView DOS or other programming packages like Borland etc See the GangPro CC FlashProgrammer Remote Control Programming User s Guide for details To speed up programming process it is recommended to program full panel with a lot of boards on the panel before de panelization Access from FPAs to all target devices can be done via
44. cted then the CS of the selected block is calculated and CS result displayed in the report window only Figure 10 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 Report Heading Code File Code size 3CD 80 248215 bytes C51 x31752BDU C51 021752800 JTAG communication initialization Verfmng Security Fuse OF Heading Target Label dane Erasing memory dane JTAG communication initializatian All memory Blank checking 5 Figure 10 3 Type of the CS can be selected from the following list Figure 10 4 Check Sum Processing Setup 5 ad x Checksum type Initial value Arithmetic sum 8b 16b Arithmetic sum 8b 32b Arithmetic sum 16b 16b Arithmetic sum 16b 32b CRC16 Poly 0 11021 8b 16b poly 1554 b CS Result Overwrite cd Figure 10 4 Initial value for CS calculation can be selected as zero all OXFFs or as the Start Address from pull down menu Figure 10 5 71 Checksum type CRC32 Poly 4 11 7 Initial value r 000000000 Result C5 Start Address Figure 10 5 CS result can be used As Is or can be inverted Figure 10 6 Checksum type CRC32 Poly 0x04C11DB7 Initial value OxFFFFFFFF
45. d in the flash for verification Size of each CS block and CS result location in flash are defined by the user The Check Sum Options dialog figure 10 2 is selected from following pull down menu Setup gt Check Sum Options Check Sum Processing Setup Em _ Checksum type CRC32 Poly 0x04C11DB7 8b 32b Initial value Y POLY CS Result Inverted Data IN word size 8 bits CS result size 32 bits Overwrite code contents if present where the CS result is saved C5 Addresses definition CS Result in Flash Enable Start Address Stop Address Save Enable CS Address lt 51 oxscoo lt 51 cs 2 oxioooo 0x45BFF 5 2 ox1804 3 01000 ox1000 tees ce4 oxio00 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 10 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 the second calculation would not be the same and CS result would be useless 70 When the CS Result Save option is not sele
46. 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 is pressed then programmer is ready to program the destination device 4 7 Next button The Next button is a dynamically programmable device action button NEAT F5 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 Figure 4 7 1 Device Action group is pressed then button NEXT takes 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 NEXT button AUTO PROGRAM see Fig 4 7 2 From now the button NEXT will perform the same 5 _ function as the Auto Program button The NEXT button has shortcut to function key F5 Button NEXT will retain its functionality Figure 4 7 2 until some other device key is clicked For example if key READ FLASH is clicked then from this moment button NEXT will take aname and feature of the READ FLASH button see Fig 4 7 3 The ee NEXT F5 Figure 4 7 3 read flash procedure will be called if button NEXT or function key F5 is pressed 34 5 Data viewers The contents of the code file or the Flash memory can be displayed or compared to one another in a data viewer To d
47. e protected flash space The GangPro CC software allows the user to program the protection bits In the right top corner of the main dialogue screen the selected option of the protection bits Figure 4 3 1 is displayed When the Enable option is selected then all protection bits will set in the CC device Desired combination of the protection bits can be selected in the Memory Option setup dialogue available from pull down menu Setup gt Memory Option See chapter 6 for details To program the protection bits the check mark Enable in the Lock Protection Bits group must be selected first see Figure 4 3 1 Lack Protection Bits Enable Protected Debug enabled BOOT not protected Write LOCK Bits Figure 4 3 1 4 4 Power Device from Adapter The programming adapter is powered from the Power Device from Adapter USB Port interface Target device can be powered from 30v M Enable the programming adapter with voltage range from 2 2V POWER ON OFF 295V RESET to 3 6V in step 0 2V selected in the voltage selector located in the Power Device from Adapter box Figure 4 4 1 The target device will be powered from the adapter if check box Enable in the Power Device from Adapter group figure 4 4 1 is selected When the Enable checkbox is selected a warning message shown in figure 4 4 2 will be displayed If you confirm this selection by clicking YES then
48. e time when user interaction is required Report m OK Used Memory Blank checking OK Writing SN pl 222211 done Writing SN p3 222212 done Writing SN 222213 done Writing SN 222214 done Flash programming done Writing IEEE Address OK Verifying check sum OK Reading IEEE A amp ddress done Reading Target Label done M DONE run time 7 2 sec Figure 4 6 2 Device Acton Reload File AUTO PROG Verity Bits ERASE FLASH WRITE FLASH VERIFY FLASH READ COPY Veiiy LOCK Bits ERASE FLASH _BLANK CHECK _WRITE FLASH _VERIFY FLASH _ Figure 4 6 1 Status Total 20 Balance 16 IEEE SN 5 Figure 4 6 3 29 4 6 1 Auto Program button The Auto Program button is the most frequently used button when programming target microcontroller devices in a production process Auto Program button activates all required procedures to fully program and verify the flash memory contents Typically when the 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 retain data from the flash if
49. ect Security Options dialogue screen with selected options Project protected with PC s hardware fringerprint number locked and unlocked with password 88 Project Security Options xj M Project protection C Any PC not protected Any PC Password protected Password Repeat password Case sensitive password Selected PC Hardware Fingerprint number PC Hardware Fingerprint FCDE CES3 Format where m Locking options Locked Project Locked Read options UnLock with password Password DH Repeat password oe Case sensitive password Figure 12 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 dialogue screen are not blocked 12 3 Commands combined with the executable file Project file or configuration setup file or Code 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 name Open Setup file cf Code file name Open Code file nf IEEE SN file name Open IEEE addresses Serial number list file rf Script file name Run programming sequence from the Scrip
50. ected in the Memory Options Setup see chapter 6 1 Memory Erase Write Verify Group for details then the following question message box will be Memory erase EL Would vou like to erase memory contents DE J displayed Please press YES gt En erase all memory contents NO gt En erase user defined memory space CANCEL gt to abort this task Yes Ma 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 OxFF This test performs two checks The first one determines if the entire memory contents is clean while the second only checks a memory segment specified by the user see setup in Memory Erase Write Group The following conditions can appear at the completion of this operation all memory is blank all memory is not blank but selected part of it is x memory is not blank 31 4 6 5 Write Flash button When write flash button is clicked then contents from the code file will be written to the flash memory When the second time target device is programmed then the following warning message is displayed ES Please erase flash memory First It is not recommended to write to the same location of the flash memory more then once without erasing the flash See the CCxxxx specification For details Would you like to write to Flash anyway c
51. ed to program the target device When using the Autoprogram option the IEEE Write Address is specified in the IEEE Address Setup see Figure 8 3 When the user wishes to manually program the target device then the IEEE Address can be specified in through the Device s IEEE Address and Serialization group see Figures 4 1 and 8 4 The above settings are used by the software depending on which programming mode is used Autoprogram or manual For example in the main dialogue screen the option Retain Code Write IEEE address can be selected and in the serialization dialogue screen the Assign and write 48 IEEE address option When the Autoprogram button is pressed then the IEEE address will be assigned automatically selected option Assign and write IEEE address and when the saved IEEE address should be modified then the new number can be modified manually editing required number in the edit line and downloaded to device using Write IEEE addr button The Retain Code Write IEEE address option will be used when the Write IEEE addr button is pressed The following IEEE Address Write options are available Autoprogram Disable Manual gt Write new IEEE address if flash is blank Manual gt Retain Code and write IEEE address Autoprogram Enforce BLANK Flash in IEEE location Autoprogram Retain IEEE address Autoprogram Assign and write IEEE address DUC ENS Autoprogra
52. efore using software 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 Plug in USB MSP430 FPA to the PC USB Port using provided cable extender USB A to USB B Windows XP VISTA The New hardware has been found USB FPA BOOT should be displayed 13 Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Update to search for software 6 Yes this time only Yes now and every time connect a device No not this time Click Next to continue lt Back Cancel Figure 3 1 1 Follow the wizard instruction to install the drivers 1 In the first Wizard dialogue screen see Figure 3 1 1 select the Yes this time only option In the second Wizard dialogue screen see Figure 3 1 2 select the Instal the software automatically Recommend and press NEXT button Found New Hardware Wizard Oen This wizard helps you install software for USB FPA BOOT If your hardware came with an installation CD or floppy disk insert it now What do you want the wizard to do
53. eld of the serialization dialogue 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 8 2 4 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 intentionally created to allow the hardware model revision and group to 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 s
54. 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 x Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help 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 Table of Conten
55. erify 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 is 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 dialogue will be displayed Figure 12 2 1 that allows to select desired project option Following options can be selected Project Security Options E xj 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 where Locking options Locked Project Locked Read options Untock with passward Password Repeat password Case sensitive password ce Figure 12 2 1 86 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 An
56. ers format date and time of programming is IEEE Addresses and Serialization Report IEEE SN File Name C Elprotronic Project Cpp Chipcon FlashPra CC Test ieeesn sn r The Highest IEEE Address Linett 110 0110 2233445566778995 F2 00000141 FEB 24 2007 17 24 Delete M The Highest Serial Number 110 0110 2233445566778995 2 00000141 FEB 24 2007 17 24 Delete E 107 0107 2233445566778991 F2 00000140 U FEB 24 2007 16 33 Delete v Report 91 New Addr Unmodified IEEE 5 Manualy entered IEEE 8 Overwritten IEEE NotePad 13 NewSN 0 Unmodified SN 0 Manually entered SN 0 Overwritten SN Line IEEE Address Format SerialNumber Status Date Time 0091 2233445566778949 00000127 FEB 24 2007 00 31 0092 223344556677895E 00000128 FEB 24 2007 00 44 0093 2233445566778965 00000129 FEB 24 2007 00 44 0094 223344556677896C 00000130 FEB 24 2007 00 44 SN Formats 0095 2233445566778973 00000131 i FEB 24 2007 00 49 0096 223344556677897A 00000132 FEB 24 2007 00 49 YYYY1234 5 0097 2233445566778981 00000133 i FEB 24 2007 00 49 0098 2233445566778973 00000134 FEB 24 2007 16 02 YYMMT234 5 0099 2233445566778973 00000135 FEB 24 2007 16 04 12345678 0100 2233445566778985 00000136 FEB 24 2007 16 05 212345 0101 2233445566778989 00000137 FEB 24 2007 16 30 YYDDD1234 5 0102 223344556677898D 00000137 FEB 24 2007 16
57. ess and or Serial Number are programmed to the target device s memory along with the code data If the Auto Program function fails for any reason then new IEEE Address Serial Number is not created The software also allows the device to retain its IEEE Address Serial Number if one has already been assigned to it Every time a device is programmed and serialization 15 enabled the contents of the target s memory are scanned for existing IEEE Address and Serial Number If numbers are found in the database the dialogue screen see Figure 8 1 will appear and allow you to decide if you wish to keep the old Address Serial Number new or manually entered once When the edited numbers are used then it is possible to press the Verify with Data Base button and check if the entered IEEE Address Serial Number have been already used before On the right side of each edited number will be displayed message OK if the number has not been used before or used when it was see Figure 8 1 45 Figure 8 1 46 8 2 IEEE Address amp Serialization Dialogue Screen IEEE Address amp Serialization dialogue box shown in figure 8 2 allows the user to configure of the IEEE Address and Serial Number serialization process The IEEE Address Write option can be selected from the pull down IEEE Address option list Serialization Serial Number can be enabled or disabled by selecting the check mark in the ENABLE Seri
58. etic 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 StartAddress addr lt EndAddress addr addr 2 CS CS unsigned long data addr unsigned long data addr 1 73 CS OxFFFFFFFF 5 CS 1 cs_inverted CS OxFFFFFFFF CS 6 Poly 0x11201 16b 16b Named as CRCCCITT and 6 defined polynomial 16b 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 CS CS CRC16 8 16 long data addr CS CS OxFFFF 5 CS if cs_inverted CS OxFFFF CS where unsigned long CS CRC16 8tol16 long data unsigned long crc unsigned long tmp tmp OxFF crc gt gt 8 data crc cre lt lt 8 crc tab32 tmp return OxFFFF amp crc The CRC table is generated first as follows CS init crcl16 tab 0x1021 for CRC CCITT CS init crcl16 tab def POLY for CRC16 defined polynomial where void CS init crcl6 tab unsigned short poly int i 3 74 unsigned short crc for i20 i lt 256 i crc 0 unsigned short i lt lt 8 for 1 0 1 lt 8 j if cre c amp 0x8000 ere cre lt lt 1 poly else cre ere lt lt c
59. in the ASCII format The data displayed in the code viewer window can be converted to the Texas Instruments txt file format by clicking on the Convert to TI format button The data will be displayed in the Notepad Editor Finally the contents of the Code File data and Flash Memory Data can be compared and differences displayed in a the viewer by selecting Compare Code amp Flash Data from the View menu Only data that are not the same in the code file data and the Flash memory will be displayed In the first line code file data will be displayed and in the second line Flash memory data Figure Comparation Code and Flash Memory Data TOM x Addr 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OF OF We Data Result Comparation Only data from the code file that does not match with 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 uo su sub uns AU Se uu xe AN conata DEUED eer eee TA aua uibs i MM nsum imei un gis Dus Sicha iain eS 9 m xE ED iin AN iis mu Be dev BS Sn as unie use im id
60. ion ENABLE Start Address in Memory OxFFFO Ascii 01 54014 02 Rev 2 0 bytes SigeinBytes 16 1 32 Refresh Verify Cancel OK Exit Figure 8 2 47 8 2 1 IEEE Address selection The GangPro CC software allows to create IEEE Address in the target device Format and location in flash of the created IEEE Address is fixed and contains 8 bytes located at the end of available flash memory location For example the IEEE Address in a CC2431F128 device is saved at location Ox 1 FFF8 to Ox 1FFFF All eight bytes must be specified IEEE Address Setup IEEE Address Write to Flash option IEEE Address Start from 00 00 00 00 12 34 56 78 IEEE Address increment Ox 00 00 00 00 00 00 00 07 Autoprogram gt Disable Manual gt Write new IEEE address if Flash is blank Manual gt Retain Code and write IEEE address Autoprogram gt Enforce BLANK flash in IEEE location 4 Autoprogram gt Retain IEEE address Pro CC Testlieeesn sn Autoprogram gt Assign and write IEEE address gt Write IEEE address from the file Figure 8 3 Device s IEEE Address and Serialization Manual Retain Code Write IEEE address m Write IEEE addr if flash is blank Retain Code write IEEE address 1911111111236 Read IEEE Write IEEE Addr Figure 8 4 The IEEE Address selection depends on the option us
61. isplay the contents of a code file select the Code File Data option from the View menu Similarly the contents of the Flash memory can be displayed by selecting the Flash Memory Data option from the View menu Please note that in order to view the contents of the Flash Memory the Read Flash option must be selected first When one of the above options is selected the code data viewer shown in figure 5 1 will appear The code viewer displays data in three columns The leftmost column shows the code address The middle column shows the data at the specified address in a hex format The data is separated into byte size chunks for easy viewing The data itself can be a hexadecimal value between 00 and FF or If two dots appear at any location in the middle column of the code viewer then File Code Data Addr 00 01 02 03 04 05 06 07 08 09 OD OE OF lt Ascii gt P DR 4G4G U d U UT OT ob oe TE Figure 5 1 35 it means that the code file does not specify the contents of that memory location Alternatively if the data is read from the Flash memory then two dots will appear if the memory address specified is outside of the Flash Memory Space In such a case the following warning message will appear Data out of the Flash Memory Space of the selected device The rightmost column of the code viewer shows the same data as in the middle column except that it is shown
62. l number and model text can be read at any time by pressing READ IEEE Addr and READ SN buttons located in the Device Serialization group see figure 8 5 When the Autoprogram action is selected and the IEEE Address Serialization is enabled then the current data saved in target device is read first If target device already contains IEEE 60 Address and or serial number or the IEEE Address and or serial number have been modified manually then the following IEEE SN edit dialogue screen is displayed Figure 8 1 In this screen all IEEE Addresses and serial numbers are displayed taken from current target devices pending new data created automatically and data edited manually Each line contains selector that allows to accept desired data to be downloaded to target device taken from current device created automatically or modified manually for each target device separately 61 8 3 Serialization Report Dialogue Screen Serialization Report Dialogue 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 numb
63. le The IEEE SN data file can contains list of IEEE Addresses list of serial numbers of both pairs of the IEEE Addresses and serial numbers Format of the IEEE addresses data is fixed and contain 8 bytes data in hex format Format of the serial numbers can be specified in the serialization dialogue screen Figure 8 2 The IEEE SN data file can be created in any text editor data specified after semicolon are ignored and can be used by user as a comments On the top of the data the IEEE SN file should contain header data When the header is specified then list of desired IEEE Addresses and or serial numbers can be listed Following list of commands started from can be specified in the header IEEE SN LIST Data file contains IEEE addresses and serial numbers _ LIST Data file contains only IEEE addresses SN_LIST Data file contains only Serial number list SN_SIZE number optional Overwrite size of the custom defined serial number size see Figure 8 2 If the 5 SIZE is not specified then the data specified in the serialization dialogue screen is used IEEE_PREFIX hex numbers optional IEEE_SUFFIX hex numbers optional SN_PREFIX string optional SN_SUFFIX string optional The IEEE Address that contains 8 bytes in hex 16 characters can be specified in fully or can be combined from the fixed prefix fixed suffix and listed part of the individual number In total this combination of data must contai
64. lization erasing memory blank checking programming and fast verification To simplify production process the programming software package can assign IEEE address serials number model type and revision Each IEEE address and serial number are unique for each programmed device and are assigned automatically Several serial number formats are available There are a number of erase write options available as well 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 one can download the serial number calibration data or personality data without erasing existing program code 2 Features The GangPro CC programmer is dedicated to simultaneously program up to six CC series SoC with 8051 MCU Chipcon Product from Texas Instruments To facilitate high speed communication an application software for the programming adapter has been optimized for the maximum speed 2 1 Key features The key features of the GangPro CC programmer are i Support all CC Chipcon devices from Texas Instruments Programming speed via debug interface is approximately 20 kBytes s per target device Up to six target devices can be programmed simultaneously effectively programming at a rate of 120 kbytes s Our programmers are professionally made and are recommended by Texas Instruments as the Third Party Tools source Full memor
65. lprotronic 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 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 DO NOT AGREE
66. lue Vcc 3 0V Vcc voltage be modified from external of from FPA Vccz2 2V to 3 6 V step 0 2 V keys 0 0 external Vcc is used Vcc from FPA is disabled 2 2 Vcc 2 2 V from FPA is used 2 4 Vcc 2 4 V from FPA is used 2 6 Vcc 2 6 V from FPA is used 2 8 Vcc 2 8 V from FPA is used 3 0 Vcc 3 0 V from FPA is used 3 2 Vcc 3 2 V from FPA is used 3 4 Vcc 3 4 V from FPA is used 3 6 Vcc 3 6 V from FPA is used 102 Note keys 0 0 3 6 uses double number data 1 0 and below are converted to 0 0 data over 1 0 and below 2 3 are converted to 2 2 etc Command example 3 2 Command fpaSpeed By default the fast communication speed up to 3 Mb s is used When communication is too fast see communication speed in FlashPro CC for details then slower communication speed can be used up to 1 Mb s Acceptable keys fast speed up to 3 Mb s slow speed up to 1 Mb s Command example fpaSpeed slow Command fpaSN By default the first detected FPA for the FlashPro CC GangPro CC is used for debugging If more then one adapter is connected to PC then the serial number of the desired FPA 8 characters taken from the FPA label for the IAR C Spy debugger should be specified to avoid a problems when other then expected FPA would be used with IAR C Spy debugger When SN is specified then oly selected FPA with specified SN will be used If adapter is not detected and even other adapter
67. m Write IEEE address from the file l When the IEEE Address option is disabled then the location in the IEEE address is not used and not verified 2 Manual gt Write new IEEE address if flash is blank used only when the Write IEEE addr button is pressed in the Main Dialogue screen Figure 4 1 and Figure 8 4 The software first verifies if all eight bytes are not programmed all OxFF If they are not then the action 1s terminated Otherwise the new IEEE address is downloaded and verified The verified IEEE address is then displayed in the grey line on the left side of the edited line figure 8 2 1 2 3 Manual gt Retain Code and write IEEE address used only when the Write IEEE addr button is pressed in the Main Dialogue screen The software first verifies if all eight bytes are not programmed all If not then the action is terminated Otherwise the new IEEE address is downloaded and verified When the bytes in the IEEE address locations are not blank then whole sector 1 or 2 kB is read erased and the new IEEE Address saved and all data restored The contents of the whole sector are verified The new IEEE address is displayed in the grey line 4 Autoprogram gt Enforce BLANK Flash in IEEE location used only when the Autoprogram action is executed The IEEE address location will be blank all Any specified data at this location eg in code file will be ignored This empty location ca
68. ma Figure 4 6 5 1 Note See chapter 5 1 Memory Erase Write Group for details on how to specify memory segment for writing 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 can use the standard memory verification method byte by byte or calculate only the check sum of the code and check sum of the content in the flash see chapter 5 Memory Option Dialogue Screen Note 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 32 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 opened by selecting the Flash Memory Data option 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 data in Ascii format in the right column The contents of the code viewer can be converted to Texas Instruments txt file format by clicking on the Convert to TI format button Data will be viewed in the Notepad Editor The address range to be displayed in the Flash Memory D
69. memory segments for erase write and read operation to be specified The third settings group write verification allows the user to select the verification method for Auto Program procedure 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 Memory Erase Write V erify Address Range Read Address Range Unblock debug User Defined All Memory User Defined Enable if blocked Fb Start Address 0 0000 5i Start Address 0 0000 Whole memory will Stop Address Ox1FFFF Stop Address Oy 1FFFF be erased No retain data etc Start Address Heer Defined 5 Start Address 0x0000 8 2 Stop Address Stop Address 1 Append ne E Start Address 0xoo00 8 Start Address 0 0000 All Memory Stop Address 1 Stop Address Ox Used by Code File Start Address E Address 00000 User Defined Stop Address Ox1FFFF Stop Address oxiFFFF r Retain Flash Data Erase and Autoprogram Flash lock after Autoprogram Specified data are read before flash erase and downloaded to flash on the end No effect if debug commands are blocked ou protection comes CE write Protect BOOT block Block debug commands incl read access Max size 2048 bytes Stop Add
70. mmands The RetainIeeeAddr ust be disabled this means the RetainleeeAddr cannot be specified Command example JeeeAddrValue 0x1234567890ABCDEF 104 15 Driver for the Keil uVision debugger The FPA programming adapter can be used with the KEIL uVision software for debugging When the FPA Gang adapter is used then the only one target connected to slot 1 can be used for debugging FPA adapter setup with Keil software Uv2 or Uv3 version Step 1 Copy and paste following dll files ccFPAhil dll ccfpaUv2 dll to location C Keil C5 INBIN Step 2 Open file TOOLS ini located in directory CAKeil and add one line TDRVx BINVCCfpaUv2 dll Elprotronic FPA for Chipcon where x consecutive number of the TDRVx inexample below x 4 TDRV4 BIN CCfpaUv2 dll Elprotronic FPA for Chipcon See example below when added this line save the file C51 BOOKO HLP RELEASE_NOTES HTM Release Notes BOOK1 HLP GS51 PDF uVision2 Getting Started BOOK2 HLP C51 PDF C51 User s Guide BOOK3 HLP C51LIB CHM CS51 Library Functions C BOOKAZHLPVAS51 PDF Assembler Utilities 5 51 51 Tiny User s Guide BOOK6 HLP DBG51 CHM uVision2 Debug Commands BOOK7 HLPWVSDS51 CHM ISD51 In System Debugger BOOK8 HLP FlashMon51 CHM Flash Monitor BOOK9 MON390 MON390 HTM MON390 Dallas Contiguous Mode Monitor TDRVO0O BIN MONS1 DLL Keil Monitor 51 Driver TDRVIZBINWSDSI DLL ISD51 In System
71. mmer 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 10 1 see the Main Dialog screen Figure 4 1 Check Sum Source OxF236EFFC Memory OxF236EFFC Figure 10 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 All bytes are converted to 16 bits words as follows for simplicity format casting is not present in this example word data address data address 1 8 where address is even and incremented by 2 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 69 Second group of the CS is custom defined Check Sum that can be used by firmware for code verification in the flash Up to four CS block can be specified and CS results can be save
72. mory location When format HEX LSW 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 1234 5 size in FLASH 4 bytes SN 200300123 will be saved as YYYY 2003 Decy gt 0x07D3 hex 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 when integer numbers are viewed or as lt Hex format bytes gt Size 4 bytes D3 07 7B 00 gt HEX MSW first 7B 00 D3 07 gt HEX LSW first when bytes are viewed first byte is the LSW byte from the integer number Displayed consecutive serial number 16 bits integer number can have a value from 0 to 2416 1 equal 65535 and is displayed as the 5 digits serial number 52 Display Format YYMM 1234 5 size in FLASH 4 bytes SN 030300123 will be saved as YYMM 0303 Decy gt 0 012 hex 12345 00123 gt 0x007B hex In flash memory this number can be seen as 012F 007B gt HEX MSW first 007B 012 gt HEX LSW first or lt Hex format bytes gt Size 4 bytes 2F 01 7B 00 gt HEX MSW first 7B 00 2F 01 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 1514131211109876543210 lt year 2000 gt month gt lt day gt S
73. n E 1 1 Over All Figure 4 5 28 4 6 Device Action box The Device Action box contains 7 buttons see Figure 4 6 1 Each button allows a specific action to be executed Software procedures related to each action allow you to fully execute the desired task without the need to follow a specific sequence of actions Every action starts by powering up the target device if Power Device from the Adapter is enabled When the DC voltage level becomes higher then 2 0V the communication with the target device 15 initiated via the debug interface The protection access bit is verified if the access to the target device is available Once the specified action is completed successfully the green check marks will appear see Figure 4 5 1 Also the device will return to the state it was in before the action was executed 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 dialogue screen the progress bar is displayed and the total run time is shown in the report window Run time does not include th
74. n be used in the future for the IEEE address assignment 5 Autoprogram gt Retain IEEE address used only when the Autoprogram action is executed When this option is selected then the software reads the IEEE address saved in the device clears the flash memory contents entire memory or just the specified segments and 49 downloads the code to the target device and restores the IEEE address used initially by the target device Autoprogram gt Assign and write IEEE address used only when the Autoprogram action is executed This option allows to automatically assign the IEEE address and save it in target device Downloaded IEEE address is also saved in the data base file When the next IEEE address is created then the data base file is scanned and the highest IEEE address is selected The new IEEE address is equal the highest number saved in the data base plus IEEE address increment specified in the IEEE Address increment see figure 8 2 If the new IEEE address is lower then the address specified in the IEEE Address start from filed then the higher IEEE address is used Autoprogram gt Write IEEE address from the file used only when the Autoprogram action is executed This option allows the software to take IEEE address from the custom defined IEEE addresses in the file and save it in target device Downloaded IEEE address is also saved in the database file Any HEX numbers can be used as the IEEE address See chap
75. n the FPA Gang adapter is used then the only one target connected to slot 1 can be used for debugging Adapter connection with the C Spy debugger software can be done easy in two steps First step Open the IAR C Spy debugger software and under pull down menu Project gt Options Select Debugger In the Driver field of the Setup page select Third Party Driver See figure 14 1 for details Category Factory Settings General Options CiC Compiler Setup Extra Options Plugins Assembler Custom Build Driver Runto Build Actions Third Party Driver Linker Third Party Driver Chipcon Setup macros Infineon Use macro file ROM Monitor Analog Devices Silabs Simulator Device Description file Overide default TOOLKIT DIR configsderivativess genericsio51 ddf Figure 14 1 Second step Open the IAR C Spy debugger software and under pull down menu Project Options Select Debugger gt Third Party Driver In the ZAR debugger driver plugin field using browse button marked as select following path for the FPA driver and select a desired driver version versus the IAR software version 99 C Program Files Elprotronic CCxx Driver for CSpy IAR cc8051_fpa_7v20 dll for the EW8051 version 7 20 C Program Files Elprotronic CCxx Driver for CSpy IAR cc8051_fpa_7v40 dll for the EW8051
76. ns 16 characters 8 bytes For example following IEEE addresses list 64 1111213330012222 1111213330022222 1111213330032222 1111213331202222 can be grouped from two same data block and from one modified as follows IEEE_PREFIX 111121333 IEEE_SUFFIX 2222 and list of variable IEEE Addresses list 001 002 003 Prefix and or suffix numbers be modified in the list if required eg IEEE_PREFIX 111121333 IEEE_SUFFIX 2222 001 002 003 IEEE_PREFIX 333121333 001 002 003 that defined IEEE addresses 1111213330012222 1111213330022222 1111213330032222 3331213330012222 3331213330022222 3331213330032222 SN_PREFIX string optional SN_SUFFIX string optional Similar to IEEE prefix suffix the serial number string can be combined from SN prefix suffix and variable SN part 65 Example of the IEEE Address Serial Number list 5 lines only in this example IEEE Address 1 1 Number List first col address second col SN SN format Ascii IEEE_SN_LIST SN_SIZE 12 01C2220000010022 WX5E2007001P 01C2220000020022 WX5E2007002P 01C2220000030022 WX5E2007003P 01C2220000040022 WX5E2007004P 01C2220000050022 WX5E2007005P The same IEEE Address Serial Number list with specified prefix suffix IEEE Address Serial Number List first col IE I address second col
77. ocation into which the programmer is to load the file and then press the Add file contents button The window in Figure 4 2 1 will appear prompting the user to specify the file to be added Once the file is added to the new memory block the programmer will display the memory space occupied by the selected file An example of this is shown in Figure 4 3 3 for the file number 4 The Save Code File option saves the data currently contained within the PC code data block into a code file When the user selects this option from the File menu the window in Figure 4 2 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 GangPro CC 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 saveas OOOO OOO 2 xl Save in Test v0 bankO bank2 and bank3 hex image4 hex image hex test2 128k hex File name bankO_bank2_and_bank3 hex Save as type Intel Intel hex Texas Instruments 7150 Motorola s19 528 s37 Figure 4 2 4 25 43 Flash Protection Bits The CC series devices memory can be protected against unauthorized access or can protect a whole or part of flash against erase or write to th
78. ock Setup option from the Setup menu 12 2 Load Save Project The Project option Save Load contains more then the programmer configuration only but can also the code 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 FlashPro CC GangPro CC etc used password or destination s PC hardware fingerprint number So the project file created with the GangPro CC software cannot be used with the FlashPro CC 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 85 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 V
79. oduct 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 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 NOTE This
80. of Code File Data from the View menu see chapter 5 23 Code size exceeds FLASH memory available on the selected device Check the code File or change device Excess data will be ignored Figure 4 2 2 The Combine Code Files option allows up to 40 code files to be loaded into the PC memory When this option is selected the programmer will create a new data block which will contain the combined data of the user selected files In order to add a code file to the newly created data block the user needs to press the ADD Code File button The programmer will then prompt the user to specify the code file to be appended to the newly created memory block using the window in Figure 4 2 1 Every appended file will be verified so that the total code size does not exceed the target microcontroller s memory space and that there is no overlap with previously selected code segments After the addition of each file the window in Figure 4 2 3 will be shown The window shows the status of previous append operations Combine Files 1 1 sach 16k 1 txt Add Code File File 2 OK sach_16k_2 txt File 3 OK sach_16k_3 txt File 4 ReadMe txt Address 021200 02366 Start Address in Flash 01200 Add File Contents Clear All Exit i Figure 4 2 3 24 The Programmer is also able to append files of any type to the new data block In order to do this the user must specify the memory l
81. ontains data intended for these segments the data will be ignored Used by code file This option allows main memory segments or and information memory segments used by data specified in code file to be erased 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 such as calibration data should be replaced in memory If the code file contains some new calibration data such as described in figure 6 1 1 then the ENTIRE information memory segment at addresses 1000 to 0x 107F and the main memory segment at addresses 0 2200 to 23 will be erased and new data at locations 0x1008 and 0x2200 will be written User Defined This option is functionally similar to options described before but addresses range of the erased write verify main memory and sectors of the information 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 two addresses edit lines will be enabled The check boxes allow the user to select the information memory sectors A or and B to be used erased written verified Edit lines in the Main Memory group allow the user to specify the main memory address range start and stop addresses Start address should specify the first byte in the segment and the stop address should specify the last byte in the segment Since
82. r from the DC overload However when target device is supplied from its own power supply or a battery the overload protection of the programming adapter is no longer necessary 43 The target device can be set to run an application immediately after the target device is programmed This permits verification of the programmed device if required To do this check the Hardware Reset RST line and start the application program or ON OFF and start the application program option in the Reset Options window shown in Figure 7 2 Application run time can be unlimited or limited up to 120 seconds Limited time is specified in the Program RUN time box When entered 0 in the Program RUN time box then time is unlimited 7 3 Options Dialogue Box The Options Dialogue screen allows to enable or disable 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 displayed All programming actions at the end can generate the Beep OK tone When a lot of units is programmed then the OK tone can be disabled just to not make a lot of noise Error programming tone is enabled permanently and can not be disabled Options Report History Display Enable Audio Speaker Enable Beep when OK Enable Sound Enable
83. r contains all signals necessary to debug program and interface the supported devices In the table 13 1 and Figure 13 1 are listed and shown all pins used for debug mode Not specified pins in this table are used for other communication and should not be grounded shorted etc Table 13 1 Target s Device connector Vdd Sense Vdd used to set correct voltage for the GND voltage level connector and can be used to supply target device DC Vdd Sense DD Debug Data RST Header Top Vi S RUN eader Top View Figure 13 1 Vdd alt NC Deliver Vdd from external source OPTIONAL The GangPro CC Flash Programmers use the 14 pin connector s pinout Figure 13 2 perd Vdd Sense Header Top View to facilitate connections with do not use sense six target devices All clock signals DC are not use Db 2 connected in parallel to target devices and all six DC Vdd En bidirectional data lines DD are connected to each GND DD 3 target devices Reminding lines RST Vdd GND RST DD 4 are connected to all target devices in parallel In the DD 6 DD 5 table 13 2 are listed all pins in the GangPro CC adapter USB FPA 5 x Header TOD View Figure 13 2 93 Table 13 2 GangPro CC Interface connector Debug Data output Input 1 Vdd Sense Vdd supplied to the target 2 2 to 3 6V max 100 mA and the target s Vdd voltage sense This pis should be connected to target s device Vdd if device is supplied from the Flash
84. r on the enable input of the external power supply RESET button located on the right side on the POWER ON OFF button Figure 4 1 can generate a reset pulse to the target device Pressing this button the target devices can be reset manually at any time starting the target s device application program from the beginning 27 4 5 Target Device selector and action result In the Target Devices Programming Result group box is possible to select target devices to be activated tested programmed etc Minimum one target devise should be selected All target devices connected to programming adapter should be the same type Otherwise unpredicted state can be created When action with programmer is started then access to all targets are verified Each part of process result is displayed in the test result icons see figure 4 5 1 All process result have their own status indicators Each indicator can assume any of the following conditions blank idle status yellow test in progress green access enabled red sign access denied device action has been finished successfully device action has been finished but result failed applies to blank check only memory is not clean but specified memory segment is Target Devices Programming Result Target Enable 1 2v 4 Connect E 5 III I Erase Blank Check Program Verify Lock Protectio
85. re 3 4 1 The dialogue screen will list all adapters connected and allow you to choose the adapter you with the application to control Make a sure that the selected FPA is not used by another opened application The selected FPAs s serial number will be displayed on the bottom left side of the programming dialogue screen When the Multi FPA API DLL is used then all adapters can be controlled from one software See the GangPro CC FlashProgrammer Remote Control Programming User s Guide for details 19 21050116 FlasnPro 4x Figure 3 4 1 20 4 Programming Dialogue Screen The programming dialogue box see Fig 4 1 contains a pull down menu interface selection box lock protection bits box device action buttons report status window open file buttons target device information box IEEE addresses and serial number box power DC status and check sum result boxes GangPro CC Gang Programmer for the CCxxxx Chipcon Products from Elprotronic Inc File View Setup IEEE Serialization About Help Open Code File gt bank0_bank2_and_ C Elprotranic Project Cpp Chipcon Flas Power Device from Adapter ie Protection Bits 2v M Enable 7 d IEEE SN File ENE lprotronic Project Cpp Chipcon FlashPro CC Test Code CS Protected 32 kB POWER ON OFF 015 RESET Sol Device Type Status Be POWER ON OFF Debug enabled 24
86. reen Figure 9 1 with extra information on the top number of the IEEE SN found in data base and removed from the pending list number of the IEEE addresses with incorrect size and removed from the pending list number of the Serial Numbers with incorrect size and removed from the pending list number of the accepted IEEE SN 67 Active IEEE addresses 7 Serial numbers list IEEE_SN_LIST 3 Number of the IEEE SN found in the data base removed from the list 0 Number of the IEEE addresses with incorrect size should be 16 char removed from the list 0 Number of the SN numbers with incorrect size current setup size 6 char removed from the list 4 Number of the IEEE SN attached to the list ABCDEF1113123456 121383 ABCDEF1114123456 121489 ABCDEF1115123456 121589 ABCDEF1116123456 121689 Figure 9 1 When the Paste to Notepad button is pressed then the pending IEEE addresses Serial Number list can be saved in format ready to be used as a valid IEEE SN file if required 68 10 Check Sum Options Programming software has two groups of check sum CS calculation The first group is used 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 progra
87. ress 00000 Note Cannot Retain Append or Verify when set Write Verification v Lock Bits from Gode only Read Lock Bits form code Fast Write Verify CS Recommended 1 OxE4 Pages 7 0 Standard Write Read and Verify Byte by Byte oar 0 7 Pages 15 8 C None Fages 23 16 0 59 Pages 31 24 29 22 0x 5 103 96 r About Device Code Memory Start Addr 0 0000 Selected Device 0x33 Pages 47 40 z Code Memory End Addr Ox1FFFF g 0x98 Pages 55 46 0x Pages 119 112 Flash Segment Size 0 0800 foxes 5 63 56 OXFF Pages 127 120 CC2431F128 Cancel Figure 6 1 38 6 1 Memory Erase Write Verify Group The Memory Erase Write Verify Address Range group block see Fig 6 1 specifies common addresses range for erase write and verify operations Memory setup has five available options Note Update only This option allows the user to perform an update 1008 operation This means that when the Auto Program 25 CA 804039 F8 02 procedure is executed then the contents of the code 2200 data taken from the Code File will be downloaded 48 35 59 72 AC B8 the flash memory without erasing any memory 4 segment This option is useful when a relatively small Figure 6 1 1 amount of data such as calibration data needs to be added to the flash memory Flash memory space defined by Code File should be blank and the code file should
88. s will be available then communication will be ignored Option with specified SN also can be used when multi MCU for debugging are used Each IAR C Spy debugger should call his own FPA serial number This allows to open more then one IAR C Spy debugger and debug more then one MCU at the same time One C Spy debugger will use FPA SNI and second one the FPA SN2 Command example fpaSN 20070867 The IEEE Address saved in the FLASH memory can be retained or defined by user and does not need to be specified in the application code Following commands can be used for IEEE address contents in Flash manipulation Command IeeeAddrLocation 103 The IEEE address location in hex be specified by the command IeeeAddrLocation The full IEEE address must be located in one flash sector Make sure that 64 bits 8 bytes address will not be located in more then one flash sector space Command example JeeeAddrLocation 0 1 8 Command RetainIeeeAddr The IEEE address located in the flash at the address defined in commands IeeeAddrLocation can be read before flash erase and saved together with the downloaded code when the Retain IEEE Address is enabled Retain the IEEE Address is enabled when the command RetainleeeAddress is defined Command example RetainleeeAddr Command IeeeAddrValue The 64 bits 8 bytes IEEE address contents in the flash at the address defined in commands IeeeAddrLocation can be defined using IeeeAddrValue co
89. sired code file etc Programmer s configuration should be saved using Save setup us option 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 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 On the end programmer returns to beginning and waiting for the next target device to be connected Script file demo program without DLL file VCCOFF M ESSAGEBOX OKCANCEL VCC if OFF now Connect the test board When ready press the button to test the board CANCEL to exit from program IF BUTTONCANCEL GOTO finish LOADCFGFILE C Elprotronic Project Cpp Net GangPro CC test A cfg M D ESSAGEBOX OK Press OK to download the test program UTOPROGRAM ESSAGEBOX YESNO T Press YES when the test finished successfully Press NO when the test failed IF BUTTONNO GOTO START 82 LOADCFGFI
90. t File lock 89 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 When the prj option is used then the sf cf rf options are ignored Using Windows START button left bottom select Run Using Browse find and select executable file see Figure 12 3 1 C Program Files Elprotronic USB GangPro CC GangPro CC exe and at the end enter the required key with name of the setup file eg 2 Type the name of program folder document or Internet resource and Windows will open it For you Open C Program Files Elprotronic USB FlashPro430 USB v Cancel Browse Figure 12 3 1 C Program Files Elprotronic USB GangPro CC GangPro CC exe sf E ElproTronic MFG prg 04 cfg To fully lock the configuration setup the extra key lock be added in the command line eg gt 2 the name of a program folder document or Internet resource and Windows will open it for you Open 15P430 Prg exe sf E ElproTronic MFG prg 04 cFg Cancel Browse Figure 12 3 2 90 C Program Files Elprotronic USB GangPro CC GangPro CC exe lock sf E ElproTronic MFG prg 04 cfg or C Program Files Elprotronic USB GangPro CC GangPro CC exe sf E ElproTronic MFG prg 04 cfg Following configuration setup can be created using Shortcut options that
91. ter 9 for data format used in the file Location of the IEEE address data can be specified or used as default see Figure 8 2 When the default location is used then the IEEE address data are saved in the last eight bytes in the available Flash memory For example when the flash size is 128 kbytes then IEEE address is saved in locations Ox 1 FFF8 to Ox The IEEE address data can be saved in the Flash starting from the lowest byte when the IEEE Address data in Flash LSB First is selected or from the highest byte when the IEEE Address data in Flash LSB First is not selected 8 2 2 IEEE SN Record File The IEEE SN Record File specifies the full path and file name where the database contents will be saved The IEEE Address and Serial Number file contains following data separated by tabulation 1 IEEE Address 16 characters 8 bytes in hex 1 Serial Number Format FO F1 F2 F3 F4 F5 F6 F7 2 Serial Number 3 IEEE SN action type New SN unmodified SN overwritten SN manual SN 4 Time and date when SN has been created 5 Code File Name 6 Model text 50 Below is an example of the data file containing data from the three consecutively created serial numbers 0123456789abcdef FO 200300011 m Sat Mar 29 2003 10 09 ASO10X02 1v2 txt 01 R 0003 04 17 001122334455678 FO 200300012 Sat Mar 29 2003 10 43 AS010X02 1v2 txt 01 R 0003 04 17 001122334455679 FO 200300013 u Sat Mar 29 2003 10 43 AS010
92. 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 12 2 2 87 NN xt This Hardware Fingerprint Number FCDE CES3 Figure 12 2 2 Locking option Locked Project 1 When not selected then project is not locked 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 12 2 3 is a Proj
93. tomized 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 By pressing the Script File button in the Main dialog 2 By using the rf with the executable file 11 1 Script button The Script button is the dynamically programmable device action PEAD coPY _ 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 11 1 if the script file 2 is not defined or Script with used file name when the script file is active Figure 11 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 L1 acide should be selected When the Script file button is not emp
94. tring or as a hex bytes data 59 8 2 5 Device Serialization box Device Serialization box located on the main programming dialogue screen see figures 8 2 and 4 1 contains IEEE Addresses serial number and model information The left columns contains information taken from the target devices and the right columns pending data to be saved Whenever communication with the target device is performed the IEEE Address and serial number is read and displayed in the Device Serialization group Figure 8 5 IEEE address or serial number displayed in the white fields can be manually modified if required The manually entered numbers can be saved using Autoprogram option or using manual buttons located inside the Device s IEEE Address and Serialization group When the next time the Autoprogram action is selected then the next IEEE Address or SN is generated automatically according to the setup in the Serialization This means that any data entered in the Device Serialization group can be treated as temporary data and downloaded to the target devices Device s IEEE Address and Serialization Assign and write IEEE address 014 02 rev 70 C 4F 40 2B B4 06 70 C 4F CO 40 2B B4 0D 1 20071234 20071 236 70 C 4F 40 2B B4 06 70 C7 4F 402B B414 2 20071235 20071 237 Read IEEE Addr Write IEEE Addr Read SN Write SN Figure 8 5 Current target s label IEEE Address seria
95. troller CC2511F16 CC2511F32 2511 8 type is selected Note If more then one target device is connected to GangPro CC programmer then all target devices should be the same type It is not possible to simultaneously program target devices of Fi 4 1 1 different type ns 22 4 2 Code File Management The GangPro CC flash programmer provides a few options to manage code files These options allow the user to open a code file combine several code files into a single file and save the programming data into a code file The Open Code File button or the Open Code File from the Look in Test EEk bankO_bank2_and_bank3 hex File name bankO bank2 and bank3 hex Files of type hex Cancel gt Intel hex 5 5518 28 837 hex Texas Instruments 5154 19 428 37 Figure 4 2 1 FILE pull down menu prompts for opening the object file that contains the code data as shown in Figure 4 2 1 When the file is selected the contents of the object file are downloaded into the PC memory If the selected target device does not have enough memory to fit the data contained in the code file the warning message in Figure 4 2 2 will be displayed When code file is opened and read successfully the code file name and full path will be displayed on the right side of the Open Code File button see Fig 4 1 Programming dialogue box screen Contents of the selected file can be viewed by the selecting
96. ts DTV IM eod eo oen 9 25 oP 10 2 1 Key eode pe ere eds 10 2 2 features sean esit E 11 2 2 1 Encrypted Project option 11 CUT De OE dle eee T ORM 11 2250 tad e PONERET PD RAS 11 3 Gretiimo St rted uod etc ut X x OD t e raa oda Ru equ b Sad 5 13 3 1 Software Installation 13 3 1 1 Driver Installation 13 2 2 Hardware Setups ira 17 3 9 Starting up GangPro CC Flash Programmer 19 S4 X PIOGeleotOE uas o or CSI Rn 19 4 Programming Dialogue Screen 21 4 1 SoC Device he Be 22 4 2 CodeFile Management x42 o Re 23 4 3 Flash Protection Bits eo ane vot eg teo eae 26 4 4 Power Device from Adapter 26 4 5 Target Device selector and action result 28 6 Device ACUON DOK ster oe RW VES EU We 29 4 6 1 Auto Program button 30 4
97. ty and the Figure 11 1 new script file if required then the new file can be selected from the pull n AUTO PROGRAM down menu File gt Open Script File Tes Figure 11 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 77 code to target device The same sequence be used with other buttons but sequence should be always repeated that of course is not convenient Using the notepad editor create the script file and save it eg as the test sf or any other file name See this chapter below for all available instructions that can be used in the script file easy script file LOADCFGFILE C Program Files Elprotronic USB GangPro CC test cfg LOADCODEFILE C Program Files Elprotronic USB GangPro CC 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 USB GangPro CC final cfg LOADCODEFILE C Program Files Elprotronic USB GangPro CC final cfg AUTOPROGRAM
98. ue box screen 21 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 0V device action has been finished successfully 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 SoC Device Target device type can be selected from the pull down field of the SoC Device type group The pull down field contains a list of all devices in CC series family currently available To automatically detect the microcontroller type choose the option from the drop down SoC Device Type list 2431 128 v CC1110F16 When communication between the microcontroller and the CC1110F32 programming adapter is initialized the software will detect the target microcontroller automatically The type of detected microcontroller is displayed in the field Target This allows the software to warn you if the connected microcontroller does not match the one specified by the 2431 4 user CC2510F16 4 C0251 0F 32 R4CC2510F8 Note No warning message will appear when microcon
99. version 7 40 C Program Files Elprotronic CCxx Driver for CSpy IAR cc805 1_fpa_7v50 dll for the EW8051 version 7 50 etc See Figure 14 2 for details It is possible to copy and paste the dll files from the C Program Files Elprotronic CCxx Driver for CSpy IAR Options for node project1 x Category Factory Settings General Options Compiler Third Party Driver Assembler Custom Build debugger driver plugin Build Actions earam Files Elprotronic CCxx Driver for CS py AR Scc8051 fpa dll Linker Debugger Chipcon Infineon ROM Monitor Analog Devices Silabs Simulator Log communication Jespycomm log Cancel Figure 14 2 directory to other location eg to IAR directory Put 805 Ibin Note that in the C Program Files Elprotronic CCxx Driver for CSpy IAR directory are located two dll files the cc8051 fpa xxxx dll that should be called directly from the IAR C Spy debugger and the second dll file ccFPAhil dll that is used by the first DLL 8051 fpa xxxx dll These two dlls should be always located in the same directory 100 The IAR C Spy debugger is ready to work with FPA adapter Connect programming adapter to target device and try By default the Vcc 3 0 volts is supplied from FPA to target device and communication speed is fast 3Mb s If other setup is required then it is possible to add extra setups in the IAR C Spy software
100. wer from FPA From FPA top view 2 Vdd Sen DE Target From FPA up to 100 mA Device Adapter 1 1 F enbe O CE 297 ser 8 External Vdd Enable GND 9 Low level 0V External Power Target povz ente Device Target Device Power Supply Figure 3 2 2 18 3 3 Starting up GangPro CC Flash Programmer To start the GangPro CC Flash Programmer click on the GangPro CC Elprotronic icon t3anrigPra cc Elprotronic Figure 3 3 1 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 34 X Pro Selector The X Pro430 software has a Multi USB feature Up to 16 Flash Programming Adapters can be connected to one PC Each adapter can be controlled by a separate instance of the programming software application Up to 16 applications can be opened at the same time Each application can have independent setup from the others code file controlled microcontroller type etc When more then one X Pro FPA Adapter is connected to a PC then each time you start the programmer application a X Pro FPA Selector dialogue screen will appear see Figu
101. y 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 same 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 dialogue screen figure 12 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
102. y 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 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 DLL file can be renamed to any file name and name and specified in the script file via command OPENDLLFILE filename Below is an easy script file contents that allows to create following sequence 81 gt 5 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 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 de
103. y or sector memory erase capability 2 Write Check Sum verification No code size limitations Target device can be powered from the programming adapter or from external source Easy to use Windows based software Programmer accept TI txt Motorola s19 and Intel hex data files for programming Combine code files capability Lock setup capability useful in production Software package can assign and automatically increment IEEE address and serial number model type and revision Serial Number with or without an automatically inserted current date can be stored in the FLASH memory in HEX BCD or ASCII format Log file capability allowing to review information about the flashed target devices T DLL software package can control programmer from other programs ix Driver for the CSpy EW8051 for debugging using FPA and IAR Embedded Workbench IDE software Programmer has been fully tested to comply with the FCC and CE requirements 2 Uses USB 1 1 12Mbits s Port to communicate with the Programming Adapter 10 2 2 Custom features The GangPro CC programmer can be controlled from an external software as well as custom scripts to specify programming sequences These features are very useful in production environment 2 2 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 2 2 S
104. ypically the standard verification procedure requires the same amount of time as the read write procedure Total programming time with standard verification is around two times longer than read write procedure time 41 7 Adapter Options 7 1 Communication Dialogue Box The Communication Interface with Target Device dialogue screen enables the user to select the communication speed between programming adapter and target device 3 or 1 Mbits s Communication Interface with Target Device X Communication Speed upto 3 Mbits s Ok C upto 1 Mb s Figure 7 1 7 1 1 Communication Speed The default communication speed between programming adapter and target device is 3 Mb s Under some conditions for example when the cable between FPA and target device is long or some protection components are installed in the debug interface the fast communication can not be used In this case lower speed 1Mb s can be used to establish communication between FPA and target device see Figure 7 1 communication speed selector 7 2 Reset Dialogue Box The Target s Reset Dialogue screen enables the user to select the Reset pulse duration and reset line state at the end of programming process 42 Target s Reset Options P Reset mode selection 6 40 ms RESET pulse Recommended 100 ms RESET pulse Custom RESET pulse 200 ms RESET pulse Reset pulse ms 1 1000 500 ms RESET pulse Idle time Eg ms 1

Download Pdf Manuals

image

Related Search

Related Contents

機材仕様書  Student Reactor Exercises at VTT - Reactor Physics Division    Philips T980 User's Manual  AIT - WordToTFS User Guide  Regency I2100M User's Manual  2 - Technocold  Samsung 225UW Uživatelská přiručka  HOW TO ADJUST AND OR CHANGE DRIVE BELT ON BGM4005  StarTech.com 6 ft Clear A to B USB 2.0 Cable - M/M  

Copyright © All rights reserved.
Failed to retrieve file