Home

Segger 5.05.10 FLASHER 5 PRO Datasheet

image

Contents

1. R gt 1kOhm Target interface connector front view Target system interface for R8C Connection Diagram for serial programming FLASHER lt gt target CPU R8C Single Wire Serial Mode Target System 4 2 FLASHER Target interface connector front view FLASHER 5 PRO Manual 10 CRC calculation used in Flasher and PC program The Flasher PC program and Flasher calculate a CRC over all data downloaded to the Flasher The CRC is used to verify correct data transfer as well as an integrity check of target data stored in the on board non volatile memory The CRC is calculated over all bytes of all selected flash sectors of the target device The calculation is compatible to the algorithm used in the CRC generator circuit inside a Renesas M16C 62P device The Renesas application note REUO5B0007 0100Z describes how the CRC is calculated To calculate the CRC of a target application you have to perform the following steps 1 Create a buffer large enough to hold all bytes of all selected flash banks of the target 2 Fill the whole buffer with the fill byte which is defined as fill byte in the Flasher Filling amp misc options 3 Parse your hex file and fill all defined bytes into the buffer Bytes not defined in the hex file were set to the fill byte in step 2 4 Calculate the CRC over the whole buffer following the algorithm from the appli
2. 9 40 00 OO p R gt 1kOhm FLASHER Target interface front view Caution Before connecting the target with Flasher ensure that there is NO difference in the ground potential between Flasher and target When the Flasher is connected to a PC via RS232C cable ensure that the PC and the target operate on the same ground potential Connect the ground lines from PC and your target before connecting the Flasher to the target If a ground potential difference between Flasher and target exists the Flasher may be damaged FLASHER 5 PRO Manual 8 Serial programming technical details for M16C 6x M16C 80 R32C Serial programming uses a clock synchronous interface 8 bits of data 1 byte is transferred at a time The commands which are used are described in the Renesas manuals In general the sequence is as follows FLASHER resets the target system by pulling the Reset line low for a period of time which is set as Reset active time in Options Setup dialog of PC program FLASHER waits for the Reset inactive time nominal 500 ms tro in order to allow the target system to re cover from reset This time can also be set in Options Setup dialog via PC program FLASHER checks the BUSY line If it is active high level FLASHER stops with error message 40 Target chip says BUSY because it can not communicate with the target system FLASHER outputs one clock clock changes from high to low and back BUSY should now be active hig
3. FLASHER Make sure the power supply is connected one of FLASHERs LEDs should be illuminated and FLASHER is connected to your PC with the 9pin 1 by 1 interface cable as supplied If the PC program displays any thing other than No communication under flasher status the communication between Flasher and your PC is functioning First time setup of FLASHER When using Flasher for the first time please select the menu point Options Device You will see the follow ing dialog box The device properties dialog allows selection of the chip area you would like to access the Device M30624FGAGP sectors of the on chip flash and the interface Manufacturer Mitsubishi Group M16C 62 you would like to use The serial interface re uires a cable to connect FLASHER to your vep RAM 20KB FLASH 256 KB q y target For targets running at low frequencies it may be necessary to set the speed option to Slow Vec 25 534 Package fi D0 pin LQFP 100P6Q 4 0 5 mm pitch Individual banks Start End bank Start dr Bank 1 0xD0000 y Ear 0 OxCO0ODO OxCFFFF To select an other device press the Select EndAdr Bank 6 OxFFFFF y Bank 2 OxE0000 OxEFFFF Device button Bi Bark 4 OxFB000 DNF SFFF The device selection dialog will open an Ue DDD UAT J Interface Serial In Targe E Bank 5 0 OsFBFFF You can select the group in a dropdown list Bank E OxFCOOO OxFFFFF and the specific
4. O 9 i HEX file could not be opened gt 10 Corresponds to error number which would normally shown on PC screen when program was used in normal mode When Detailed errorlevel on return is set as option the returned value equals to error codes described un der chapter Error messages Examples Program and verify In the following example the software e reads the file TEST MOT e tells the Flasher to program and verify e exits Flasher exe test mot programverify exit Programming using specified com port In the following example the software e reads the file TEST MOT e sets the COM port of the PC to Port 2 e tells the Flasher to program e exits Flasher exe test mot com2 program exit Usage in production environment This example shows a batch file that executes a download to the Flasher once After the first call of Flasher the batch file runs in a loop that programs the last downloaded file continuously after pressing a key After every execution of Flasher the return code is evaluated NOTE Evaluating the return code only works under WindowsNT or Windows2000 If you use Windows9x Flasher will be started in a new task and you can t evaluate the return code from the DOS box from which you started Flasher because your DOS Box will not halt execution until FLASHER finished FLASHER 5 PRO Manual 17 echo off rem The first call of Flasher loads the the HEX file Flasher test mot program verify exit
5. device from the list below Speed Fast y OK Cancel Now you should be able to blank check clear program verify or read the target chip in serial mode if your target is properly connected to FLASHER The first time you program or verify the PC downloads your tar get program to FLASHER where it is stored in the on board RAM chip for programming or verification The PC Program stores all setup information in the registry when you start the program the next time it will start with the same settings FLASHER 5 PRO Manual 5 Programming clearing verifying blank check Select one of the commands _ Blankcheck F2 in the TARGET menu to A modal dialog box will indicate the status and start the operation Note that Clear FE progress of the opera some of the menu points Program amp Verify F7 tion the operation can may be grayed if you have Program F8 be canceled hitting the no connection to the target Readmemory CANCEL button or no file loaded Start application F9 Setup The operating mode of FLASHER may be changed using the setup dialog from the Options menu Power up mode wait for PC y Power up mode Power down mode and Reset mode should Lover domos Stay on hd not be changed for normal operation Setting of Power down Heated Active low when ide E flow whan ile mode has no effect on FLASHER 4 Pa Ez You may change the reset active and reset inactive time if required
6. for this parameter List of commands The following commands are currently supported as parameter when Flasher is called in batch mode download Downloads the loaded hex file into Flashers memory without starting any additional action checkblank Checks if target is blank Verifies loaded data with contents of target Clears target area selected memory banks clearchip Clears entire chip Clearing the entire chip might not be im plemented for all devices Then the command behaves the same as the clear command programverify Programs amp verifies target Programs loaded data into target Reads target area into PC Starts application program serial mode only only Flasher MV3 com lt PORT gt Sets COM port of PC 1 4 saveas lt FILENAME EXT gt FIRST LAST Saves the file currently in PC memory The extension needs to be MOT HEX or BIN and determines the filetype The optional range is used for files in BIN format merge lt FILENAME EXT gt Merge specified file to current data delrange lt FIRST LAST gt Deletes the specified range of data relocate lt OFFSET gt Relocates current data by offset selbanks lt START END gt Sets the numbers of start and end bank The numbers have to be the same as in the selection box shown under Op tions Device Selects individual banks The numbers have to be the same as in the selection box shown under Options Device seldevice lt DEVICENAME gt Selects the desi
7. of target data held in FLASHERs internal memory is lost grammer failed Download new data to FLASHER 56 Internal Vcc drop A voltage drop on Flashers internal supply was detected Internal data during operation may be damaged 58 DAC for Vpp not FLASHER lost calibration data for Vpp generation circuit Please return calibrated FLASHER to factory as calibration can not be done by user i Unsupported inter FLASHER is requested to access a target CPU that is not supported by face check devic Flasher Normally this fault should not occur Ensure that Flasher PC setting software version fits to Flasher firmware version FLASHER received a command that is not supported Ensure that Flasher PC software version fits to Flasher firmware version FLASHER 5 never received valid data for target therefore target can download not be programmed Download target data Setup data for Flasher invalid Please run Option Setup and Option Device Target CPU is not blank 203 Verify failed Verification failed Loaded Program and contents of target CPUs flash memory are not identical Clear target failed Erase operation has failed 205 Any error occurred during Auto function Clear Program Verify FLASHER 5 PRO Manual 13 tion failed iY S CCCC r 206 An error occurred during programming of target If target was not blank failed before ensure that target is erased before programming Retry i fa
8. E Eee gram these values should be 0 as the high bytes of the inter Ka Cancel _ rupt vectors which are used to store the values are usually 0 For more detailed information please consult the Renesas users manual The menu point Edit Copy passcode into loaded file can be used to copy these ID bytes into your appli cation program Problems with ID check You should act carefully when programming ID bytes If you do not know the ID value programmed into a target chip there is no way to erase read or reprogram the chip in circuit later We recommend not to use this feature during the development process FLASHER 5 PRO Manual 6 Using the serial link to program in circuit FLASHER can be used for in circuit programming of supported CPUs which incorporate built in Basic configuration for serial programming firmware for serial update of user flash The target a system has to be designed to support this mode of RS AKSER senal eee System operation Refer to target specific connection dia k pericia Customer FLASH MCU grams or Users manuals of your target CPU Operating FLASHER in stand alone mode After download the target program and all settings are stored in FLASHERs on board FLASH memory and remain valid until new settings or data are sent to FLASHER Any number of microcontrollers may now be programmed by FLASHER one at a time without the need of a host PC by simply pressing the start button FLASHER will use
9. FLASHER 5 PRO Programming tool for serial in circuit programming of microcontrollers with on chip flash Software version 2 00 Hardware rev 1 2 Manual rev 0 AN SEGGER www segger com A product of SEGGER Microcontroller GmbH amp Co KG FLASHER 5 PRO Manual 2 Content CONTE ia 2e2 nick AE A A A Pie Gate beac ede tees se A 2 Applicable A 3 Features e a eo rts 3 WOrkingrenvirOniment aciincec cies ested eE 3 Connecting FLASHER to the PC wo cciconicoc nnicci cidcid cd ad Add 4 Using the FLASHER PC program si cess2cvecctsdeveetsececehbesdeveusnedevedenadavestanadeveutaedevvdetadeveutlacedubbeadevevadecvenssedeveeeladevebiedds 4 Using the serial link to program in CiPCUit ree eee eeeeeeeeeeeeeeeeeeeeaeeeeeeaaeeeeeeaaeeeseeaaeeeseeaaeeeseeaaeeeeeaeeeseenaeeeseenaeeeeeeaas 6 Operating FLASHER in stand alone mode ooooccconnoccccconoccncnononcccnnncncnnno cnn n cano nn nr nano rca rra n nn rra rr n rca r enn rnnn rra 6 Remote control of FLASHER 5 PRO aiota a cnn ronca A ar nn nara aed errar a a rra 6 Target interface for M16C 62 M16C26P M16C 80 M32C and R32C occcccinocccccononcnccononcncnnnancncnnnancncnnnnnnncnnnnncnnnns 7 Serial programming technical details for M16C 6x M16C 80 R32C 00ooocococccocococcccncccccnnonononncnnncnnnnnnnncnnnnnnnnnnnnnnnnos 8 Serial target interface CircuitIY reirs a T a E E 8 Target interface for other SySteMS erisir airiai Ai iA EAE E AEAEE AE T AE ER AA E aaa 9 CRC calculation used in Flasher and
10. PC program c oooococccccnnocccccononcncnononcncnnnoncnnnnnnnn nc canon nr cnn nn n nr cnn rr rca nn nr cn nnnnnnccins 10 ETrOr MESSAGES E EE E E ela ET 12 TrOUbIe SMOOUMG eneore EAE thavdechs shaven tabs EAE EEE ica EEE EE AER 14 KNOWN limitations 0d ib A ated sad eg Dt AL a a eae A as A A 14 SUP POM ari do ii A A id tit ta ti 14 Using Flasher in DRCN MOIE ei A A o A A rd are 15 ItKOUCHON a E A Pees Ae acetates aie ca 15 General rules viii id a ti dd dd Added 15 LISTO COMMAA Sii dd cdt 15 Return Vales ia A A e caked os ae eh Sat a 16 SO NS 16 FLASHER 5 PRO Manual 3 Applicable microcontrollers Serial mode M16C 1N series M16C 26 series M16C 24 series M16C 26 M16C26A series M16C 28 M16C28B series M16C 29 series M16C 56 series M16C 57 series M16C 57 series M16C 62 series M16C 62P series M16C 64 series M16C 65 series M16C 6N series M16C 6S series M16C 6V series M16C 80 series M32C 83 M32C 84 M32C 85 M32C 86 M32C 88 M32C 95 series R8C 14 R8C 15 R8C 18 R8C 19 R8C 22 R8C 23 R8C 24 R8C 25 R8C 26 R8C 27 R8C 28 R8C 29 R8C 2C R8C 2D R8C 3x series R32C series M79 series For detailed information on supported flash chips please check www segger com flashmcus htm Features Easy to use windows program Serial in target programming supported Programming Clearing Verifying Read back supported High speed programming User or boot area selectable read only in serial mode 64 MByte FLASH to store target prog
11. by your target hardware Reset output mode Push Pull C Open Drain You may select reset output mode as Push Pull output or Open Drain All setup settings are stored permanently in FLASHER after ing button Set defaults Cancel pressing Save setup button Reset active inactive ms Serial number 40066 Additional options The Filling amp Misc Options from the Options menu may be al tered if required r Filing Normally there is no need to change any of these settings Byte hex FF Improper setting of fill byte may lock your target CPU When programming blank virgin CPUs Automatic clear before Miscellaneous gt program is not required so this feature can be disabled to I Automatic clear before program speed up programming procedure I Do not verify blank pages Detailed errorlevel on return option may be used to return a J Detailed Errorlevel on retum a detailed errorlevel to the calling program when Flasher is used in batchmode ID check When programming Renesas CPUs in serial mode in target an identification of upto 15 bytes has to be supplied If the Weed target MCUs user program area is blank this ID value does not Lem est pra ont Dore ciel oci matter However after programming these values need to be dee set correctly iin ed a E be 2 to E ie eae communicate with the target These ID values can be set i using the menu point Options Passcode With a standard pro BE
12. cation note or the follow ing program example Alternatively the CRC over all bytes may be calculated without a buffer when a function delivers all bytes of all selected flash banks including fill bytes in ascending address order from a stream Program example for CRC calculation CRC_Calcl_M16 calculates the CRC for one byte Before calling the function the first time set the CRC to 0x0000 void CRC Calc1 M1l6 unsigned int pCRC unsigned char Data unsigned int crc unsigned int x16 int i crc pCRC for 1 0 i lt 8 itt if crc amp 0x0001 Data amp 0x01 x16 0x8408 else x16 0x0000 ere cre gt gt 1 cre x16 Data Data gt gt 1 pCRC crc CRC_Calc calculates the CRC over NumBytes bytes in a buffer unsigned int CRC Calc unsigned char pBuffer unsigned long NumBytes unsigned int CRC_M16 unsigned long i If Initialize CRC and calculate the CRC over all bytes CRC_M16 0x0000 for i 0 i lt NumBytes itt CRC _Calcl M16 amp CRC_M16 char pBuffer i return CRC M16 FLASHER 5 PRO Manual 11 The following example shows how to calculate the CRC over all bytes in a buffer as described above using the CRC_Calc function unsigned long NumBytes unsigned long i unsigned char pBuffer unsigned char Fillbyte unsigned int CRC NumBytes SUM_OF ALL BYTES Number of byt
13. ctor is as follows Pin no Signal Function Host Signal Serial async data input Serial data output TxD Serial async data output Serial data input RxD Signal ground Signal ground Getting started 1 Connect the FLASHER to a PC running Windows the 1 by 1 interface cable and run the FLASHER soft ware FLASHER EXE 2 Connect the FLASHER to the power supply 3 Set up the device via Options Device menu of PC program 4 For in circuit programming Connect the FLASHER to target system via the standard 10pin or custom ized interface cable Using the FLASHER PC program General Flasher comes with an easy to use Win dows program It allows reading of pro gram files in motorola intel hex or binary format The following is a screenshot of FLASHER EXE with loaded target pro gram C MyBtl3886 mot Flasher V1 66c file Edt View Target Options 2 File lol Target Device M3803xFF Range 1000 FFFF Interface Serial In Target Range Bytes CRC C000 FFFF 90 Flasher status Flasher Vin Flasher firmware Result Current adr Target YCC Ready 16 4 Volt 1 66d Hardware V4 O K 5 1 Volt rea Adr Len Gap Data hex ASCII 0001 00C000 001860 002770 ECOE 75 42 75 40 EB52 EB63 75 C0 FF FF7344 uBu R cu 0002 00FFDO 000030 FF FF FF FF FF FF FF FF FF FF FF FF 59 CC OF 00 Ready COM1 115200 Baud COM1 Datarate bytes sec 833 Rx 738 Tx Communication between PC and
14. erial mode Older versions of the Renesas M16C 62 bootloader sometimes do not start after RESET If you experience problems in communicating with the target system power down the target system power it up and try again Support For support questions please consult our website at www segger com If this does not answer your ques tions please send an email to support segger com FLASHER 5 PRO Manual 15 Using Flasher in batch mode Introduction Flasher exe supports command line options to enable automated programming of targets This document describes the supported commands and their respective parameters Flasher PC software version 1 72b or above replaces FlasherPro which is not delivered anymore How to start Flasher program in batch mode To use Flasher in batch mode just call Flasher exe directly from DOS Box or start any batch file which calls Flasher exe To start any action parameter may be passed as command line options General rules The first parameter specified must be the file to load if download is required The return code is 0 if all operations have been executed successfully 0 otherwise All commands are identical to the corresponding commands in the menu bar All commands are processed from left to right If exit is specified as the last command the program will terminate as soon as any error occurs or af ter all commands have been executed e lf one parameter contains a space use quotation marks
15. es of all selected flash sectors Create a buffer for all bytes pBuffer unsigned char malloc NumBytes Initialize the buffer fill up with the fill bytes if pBuffer NULL Fillbyte FLASHER FILL BYTE The fill byte set in Flasher options memset pBuffer Fillbyte NumBytes Fill the buffer with data This has to be done by a function that parses the Hexfile and addresses the buffer according the address offset which depends on the selected flash sectors ParseFile pBuffer NumBytes Initialize CRC and calculate CRC over all bytes in the buffer CRC CRC_Calc pBuffer NumBytes Remarks The first byte in the buffer has to be the first byte of the first selected flash sector regardless the address of the sector For example if the first selected sector has address 0x3000 the first byte in the buffer offset 0 is the byte at address 0x3000 in the target device If the hex file addresses only some of the bytes in a flash sector all the other bytes have to be filled up with the fill byte For example if the selected flash sector has 4096 bytes starting from address 0x3000 and the hex file only contains data for the first 16 bytes the whole area from 0x3010 to Ox3FFF has to be filled up with the fill byte All selected sectors are stored in ascending address order without any gap regardless the start address of the flash sectors For example
16. get interface for M16C 62 M16C26P M16C 80 M32C and R32C The clocked synchronous interface from Flasher to the target system is built with a 10 pin dual in line pin connector pin1 is marked at the connector at the front of FLASHER The function depends on selected target Pin no Signal Function for M16C 62 M16C 80 Specification remarks VCCS Positive supply voltage of target Input 3 0 5 5V to supply the interface 3 SCLK Target CPU Serial clock input FLASHER Output CMOS driver via 220 Ohms 6 EPM EPMsignaloftargetCPU__ FLASHER Input Output 7 GND___ Commonsignalground fe 8 RESET RESET signal of target system FLASHER Output CMOS driver via 220 Ohms 9 CNVss___ Target CPU CNVss signal FLASHER analog Output Target CPU Serial data output FLASHER Input Output If the RESET of the target system is driven by a reset circuitry with active high driver the RESET output of FLASHER must not be connected directly to the CPU reset of the target For M16C 62 or M16C 80 targets you do not have to connect RESET to FLASHER you can always manually reset your target system after connecting FLASHER Target system interface for M16C 62 M16C 80 M32C R32C Connection Diagram for serial programming FLASHER lt gt target CPU M16C 62 or M16C 80 groups Target System AAAAYY yaa
17. goto checkerror rem Loop for repeated programming without download loop pause Flasher program verify exit rem Check errorlevel if succeed checkerror if errorlevel 1 goto ERROR Serrorlevels echo Operation successfully finished goto loop rem handle errors ERROR_1 Undefined error end wa No RRO ECKBLANK d 3 RO a 5 Ko w y O a lo a Naw O ROGRAM 5 EADBACK e ET STARTAPPLICATION B w RO ET_TIM d 10 ROR_OPENDOCUMENTFILE e ERRO echo end echo Operation canceled Ba ee Ba aE a A oe E ps Relocate delete merge and save The following example shows a batch file where the software e reads file A HEX deletes the range OxFCOO000 0xFFFFFF moves the remaining bytes 0x40000 bytes up saves the memory contents as B MOT reads the file A HEX again deletes the range 0xC00000 0xCFFFFF moves the remaining bytes 0x340000 bytes down saves the memory contents as C MOT merges the files B MOT and C MOT and save the new file as RESULT BIN Flasher A HEX delrangeFCOOOO FFFFFF relocate040000 saveasB MOT exit Flasher A HEX delrangeC00000 CFFFFF relocate340000 saveasC MOT exit Flasher B MOT mergeC MOT saveasRESULT BIN CO00000 CFFFFF exit Selecting device and setting ID bytes The following example shows a batch file where the sof
18. h If it is not active FLASHER stops with error message 41 Target chip Busy does not react FLASHER outputs 7 more data bits 7 clock cycles and waits for BUSY to go low More data bytes are output or read the same way tr nominal 20 ms tro nominal 500 ms The reset active time trL and reset inactive eg reset delay time tro can be set in Op tions Setup dialog if required O CN ss5 In E gt Out O VECES oul O GND gt AZ YCC z Out En Out Outs In Out4 T4HCT 125 BUFFER gt W vec Out En Out Outs In Outs T4HCT 125 vec Z lt Ini En Inz Ind Out In4 TAHCT 125 FLASHER 5 PRO Manual Target interface for other systems Target system interface for M37906F8 Connection Diagram for serial programming FLASHER lt gt target CPU M37906F8 Target System Remarks on MDO If low signal is required MCU pin may be connected to GND connection to Flasher is not neccessary If high signal is required MCU pin must not be fixed to VCC Then a pull up resistor has to be used GND Reset MD1 SDA
19. if the first sector starts at address 0x3000 and has a total size of 0x1000 the second selected sector starts at 0x8000 and has a total size of 0x1000 the buffer to hold the data needs a size of 0x2000 bytes The first byte from the first sector is stored at offset O in the buffer the first byte of sector 2 is stored at off set 0x1000 FLASHER 5 PRO Manual 12 Error messages The following error messages can occur during operation of FLASHER shown in red on your PC or re turned as errorlevel when operated from batch file and Detailed errorlevel on return option is set Meaning remedy Erase operation has failed Write operation has failed Verify failed Verification failed Loaded Program and contents of the flash memory are not identical Blank check failed Chipis not blank Could not write into flash memory the max waiting time has been timed out exceeded this memory area can not be written to Be 7 Last operation has been canceled by user MESS read fail in serial mode FLASHER reads out the version of Renesas target ure Rx line prob CPUs bootloader If this is not the right format VER a read line lem failure is most likely Renesas target CPU has no valid ID This error should not occur 31 ID mismatch Renesas bootloader target CPU requires the correct ID Without it you will be unable to access read out clear or program the contents of the flash memory The requested ID depends on ID
20. iled connection to target ds source file name or path Invalid Parameter Invalid command line parameter found Invalid parameter Check parameter Refer to command description 214 Firmware mismatch PC software version differs from firmware version of Flasher Download new firmware via Options menu Otherwise proper function can not be guaranteed chip is not sup ported by the con nected programmer 216 Session mismatch It seemed that Flasher was disconnected during communication be Resetting connec tween Flasher and PC Try an other COM port cion 217 Flasher refuses Did you select a chip which is not supported Check device settings connection None of the se PC program could not open selected COM Port Select an other COM lected com ports is port available 20 Invalid file exten You tried to open or save a Hex file with unsupported file extension sion use MOT HEX or BIN 21 Invalid file name You tried to Open or merge a file that could not be found Check file name or path 22 Error in Protocol PC program internal error Restart program Manager 223 VCCS gt VCCSmax Supply voltage of target exceeds max value defined for selected de Target supply vice Check device settings connection to Flasher and target supply If voltage too everything is correct Flashers voltage measurement circuitry seems to high be damaged and has to be repaired VCCS lt VCCSmin Supply voltage of target is
21. lower than min value defined for selected Error in HEX file The HEX file for target could not be read Check file format 2 i ion Target supply device Check device settings connection to Flasher and target supply voltage too low If everything is correct Flashers voltage measurement circuitry seems e to be damaged and has to be repaired 225 Flasher Input volt Flashers supply voltage is lower than required to generate program age too low ming voltage of connected target CPU Check supply voltage 226 PC program internal error Restart and try again 227 Invalid default Your registry contained invalid data about Flasher PC program Setup program settings device and other options found Please setup device PC Check COM port 229 Invalid commandline Your command line parameter contains a command which is not sup 230 Flasher defect Target interface of FLASHER not found during initialization Flasher Target interface has to be repaired does not work FLASHER 5 PRO Manual 14 Trouble shooting Proper operation of FLASHER in serial mode depends on your target system If you have any trouble oper ating FLASHER in serial mode please a Check your target hardware b Check the connecting cable c Use an oscilloscope to check the state of all signals on the target connector especially to check if the target CPU is RESET properly and the target CPUs BUSY signal works properly Known limitations S
22. previously writ ten into the target CPU For more information please refer to the sec tion ID code check function of the CPUs users manual ID mismatch Same as Error 31 40 Target chip says Renesas target chip has BUSY signal high active Most likely CPU did BUSY not enter bootmode Check all signals to target Refer to CPUs users manual about conditions to enter bootmode 1 Target chip Busy Renesas target CPU should set BUSY after receiving the first bit or does not react byte depending on CPU Some possible reasons for this error a RESET is not released b Target did not enter the serial l O mode because conditions to enter bootmode are not met Check RESET EPM CE CNVSS c No clock check with oscilloscope Target chip says Renesas target chip keep its Busy signal set active during communi BUSY cation This inhibits communication between FLASHER and target Some possible reasons a RESET is not released b Target did not enter the serial I O mode because the signals applied when RESET is released are not correct EPM CE CNVSS c No clock check with oscilloscope Timeout of target Target command Clear Program or Verify could not be finished within expected time Please report this error Timeout during Target communication does not work This error may be reported wit 42 3 async data recep R8C targets or other targets connected via asynchronous interface tion Try another baud rate Integrity
23. ram Can be used in a production environment PC Program for batch mode processing allowing usage in automated test systems Remote control functions for automated testers Working environment General Flasher has been designed for use in a lab only Host System IBM PC AT or compatible CPU 486 or better with at least 8Mb of RAM running Windows 95 98 2000 Vista Windows 7 or NT It needs to have an RS232 interface available for communication with FLASHER Power supply Flasher requires a 5V power supply over its USB connector minimum current consumption is about 80mA You may use the power supply which comes with the tool or may power it from a USB port from your PC Flasher is NOT protected against polarity reversion on the supply input Please avoid excess voltage over 6 0V FLASHER can be supplied from the target if the target is operated from 4 5 to 5V Installing FLASHER PC software The latest PC software FLASHER EXE is available from the download pages on our website http www segger com In order to use the software simply copy it onto your hard drive and start the execu table which will guide you through the installation process FLASHER 5 PRO Manual Connecting FLASHER to the PC PC lt gt FLASHER interface cable A standard serial 1 by 1 interface cable with one male and one female 9 pin SUB D9 connector can be used to connect FLASHER to the PC The pin assignment of the 9 pin SUB D female RS 232 interface conne
24. red device The name of the device has to be exactly the same as in the selection box shown under Options Device Sets the ID bytes Sets the fill byte the parameter is a two digit hex number opens a HEX file Sets option Automatic clear before program Sets option Clear on demand Sets option Detailed errorlevel on return Sets option Do not verify blank pages FLASHER 5 PRO Manual 16 index lt X gt Allows selection of an individual setup data set for Flasher This is useful when multiple Flasher should be handled con currently with one PC After setting up all options together with the index command further calls of Flasher with the same index command will restore all previous settings for that index i Finish execution after performing all commands Displays available commands The same as help NOTE To open a HEX file place the file name as first parameter just behind the call of Flasher exe the openfile command is not required when only one file should be opened Return values The following return values are sent as errorlevel unless Options Filling amp misc Detailed errorlevel on re turn is selected Value Meaning S O 2 Target not blank 2 Verify error Contents of target data not identical to FLASHERS internal data 5 Error during Program amp Verify function 6 Eror during programming of target CPU S 8 Error during Start application o y
25. the settings which have been made in the PC program This includes the selection of target address range as well as any options Whether the target CPU will be erased before programming depends on setting of option Automatic clear before program Progress and result of the operation is indicated by FLASHERs LEDs Status of LED GREEN flashing Erasing Programming Verifying operation in progress GREEN Programming operation successful Programming operation failed Remote control of FLASHER 5 PRO FLASHER 5 can be remote controlled by automated testers without the need of a connection to PC and Flashers PC program Therefore FLASHER 5 is equipped with additional hardware control functions which are connected to the SUBD9 male connector normally used as RS232 interface to PC The following diagram shows the internal remote control circuitry of FLASHER FLASHER internal Logic Pin No Function Description O START A positive pulse of any voltage between 5 and 30V with duration of min 30 ms starts Auto function Clear Program Verify on falling edge of pulse Whether Clear is executed depends on Options Filling amp misc Automatic clear before program sistor is switched OFF PM sat the ouput resis swiched ON or slain state The output transistor is switched ON to reflect OK state 5 GND Common Signal ground eee START BUSY Undefined OK previous state FLASHER 5 PRO Manual 7 Tar
26. tware e selects a device e sets the ID bytes to FF FF FF FF FF FF FF e and reads the contents of the device Flasher seldeviceM30201F6xx password7 FF FF FF FF FF FF FF readback

Download Pdf Manuals

image

Related Search

Related Contents

Pronto 9400  DD 150-U  Bedienungsanleitung Instruction Manual KS 173.0A++  

Copyright © All rights reserved.
Failed to retrieve file