Home

FLASH USB DIRECT Programmer User Manual

image

Contents

1. MD1 pin and MDO pin and Pxx pin the microcontroller enters the USB reprogramming mode enabling serial reprogramming from the PC After the reprogramming control is shifted to the normally used mode as for MD1 and MDO pins and to the user circuit side as for Pxx pin Then RSTX pin set from Low to High level executes user program 4 Pins Used 1 Pins used for USB programming FR MB91F66x Performing an external reset or turning on the power Mode pin MD1 MDO after setting MDO H and MD1 L enters the serial programming mode P mode P75 PH3 Setting it to H enables the USB programming mode This pin controls the pull up of USB side when the Pull up control pin for communication mode is USB UDP PH2 L Connect the pull up resistor PH2 H Disconnect the pull up resistor When the communication mode is set to USB this pin USB source oscillating controls the frequency for source oscillation clock frequency select pin P77 L source oscillation frequency 4MHz P77 H source oscillation frequency 48MHz 2 Pins used for USB programming FM3 FM4 Performing an external reset or turning on the power Mode pin MD1 MDO after setting MDO H and MD1 L enters the serial programming mode communication iode Setting it to H enables the USB programming mode select pin This pin controls the pull up of USB side when the Pull up control pin for communication mode is USB UDPO UHCONX L Connect th
2. Download to Program amp Verify is performed by package In the case of a blank chip processing is performed in order of Download Blankcheck and Program amp Verify When it is not a blank chip processing is performed in order of Download Blankcheck Erase Blankcheck and Program amp Verify 13 6 3 Motorola S format decoder specification Before programming Motorola S format Decoder of programmer changes Motorola S format data into binary data according to the following specification a The decoder does not error when overlap of addresses occurs The decoder does not error about overlap of address If user writes a data on an address which was already written another data before former data is overwritten by new data b Available address If user writes a data beyond an address range of FLASH memory programming results in an error c About the error detected by the decoder The error detected by the decoder is the following 1 4 When these errors are detected processing is interrupted by the decoder Then the line number and the cause of the error are displayed in the dialog window 1 file error The start of the line is not S 2 S format error The start of the line is not SO S1 S2 S3 S5 S7 S8 and S9 3 decode error There are character except 0123456789ABCDEF S is excluded See 1 and 2 And the small letter abcdef cannot be used The LENGTH data is different
3. can be reprogrammed 2 Compatible Microcontrollers FR MB91F662 MB91F668 MB91F669 FM3 FM4 MB9AF311K MB9AF312K MB9AF311L M N MB9AF312L M N MB9AF314L M N MB9AF315M N MB9AF316M N MB9AF341L M N MB9AF342L M N MB9AF344M N MB9AFB41L M N MB9AFB42L M N MB9AFBA44L M N MB9BF216S T MB9BF217S T MB9BF218S T MB9BF304N R MB9BF305N R MB9BF306N R MB9BF312N R MB9BF314N R MB9BF315N R MB9BF316N R MB9BF316S T MB9BF317S T MB9BF318S T MB9BF321K L M MB9BF322K L M MB9BF324K L M MB9BF364K L MB9BF365K L MB9BF366K L MB9BF328S T MB9BF329S T MB9BF366M N R MB9BF367M N R MB9BF368M N R MB9BF504N R MB9BF505N R MB9BF506N R MB9BF512N R MB9BF514N R MB9BF515N R MB9BF516N R MB9BF516S T MB9BF517S T MB9BF518S T MB9BF521K L M MB9BF522K L M MB9BF524K L M MB9BF564K L MB9BF565K L MB9BF566K L MB9BF528S T MB9BF529S T MB9BF566M N R MB9BF567M N R MB9BF568M N R MB9BF616S T MB9BF617S T MB9BF618S T MB9BFD16S T MB9BFD17S T MB9BFD18S T New Note The MCU which has suffix A B etc as end of Product Name and when it s equivalent of the MCU which has no suffix they are not in list 3 Example of Connection for On board Programming For FR MB91F66x MB91F66x Serial write 0 4MHz or 48MHz Serial write 1 User circuit Serial write 10kQ USB communication mode 4MHz 0 48MHz 1 i USB connector The pull up resistance values shown are for example Select the most appropriate res
4. from the length of an actual data row The SUM data is different 4 address error There is data besides the FLASH area See b Available address d Other detail The decoder skips a line even if the line is contained only new line code NL and programming goes on A line beginning with SO S5 S7 S8 and S9 is ignored and decoder skips such lines in S format file without error 14 6 4 Intel Hex format decoder specification Before programming Intel Hex format Decoder of programmer changes Intel Hex format data into binary data according to the following specification a The decoder does not error when overlap of addresses occurs The decoder does not error about overlap of address If user writes a data on an address which was already written another data before former data is overwritten by new data b Available address If user writes a data beyond an address range of FLASH memory programming results in an error c About the error detected by the decoder The error detected by the decoder is the following 1 4 When these errors are detected processing is interrupted by the decoder Then the line number and the cause of the error are displayed in the dialog window 1 file error The start of the line is not 2 decode error There are character except 0123456789ABCDEF is excluded See 1 And the small letter abcdef cannot be used The record type is not 00 01 02 03 04 and 05 The leng
5. 662 Start Addr End Addr Size 00080000H OOOFFFFFH 00080000H Hex File COM 1 255 Full Operation D E B P Set Environment Help Check SUM Version Info Download Erase lank Check U Virtual COM Program amp Verify Read amp Compar i Command to COM Overview of operating procedure First complete setting of the user system microcontroller board that data is programmed to see Chapter 3 In starting or when setting has been changed it is necessary to perform downloading described later After downloading terminates normally perform procedures such as Erase and Programming 6 1 Downloading This section describes the operating procedure for downloading and the operating state of the program a Set information for target system 1 Target MCU Select number of target MCU 2 COM 1 255 Input number of virtual COM How to confirm of number of virtual COM Control panel gt System gt Hardware gt Device Manager In the device manager window expand the Ports COM and LPT to see its contents Verify the number denoted by the in USB Serial Port COM b Execution of downloading Click the Download button If the following dialog window is opened Input a reset signal to the microcontroller to start the program in the flash programming mode and then click the OK button Downloading is performed to open
6. CRC error detected in 0 200 retry L5 e This dialog If YES is pushed the block of an error will be resent and it will continue writing A push on NO interrupts write in processing e Read amp Compare Compare Hex File with data in flash memory in microcontroller This button is clicked to compare data in the Motorola S or Intel HEX format file specified in Hex File with data in flash memory in the microcontroller Like the Program amp Verify processing The data of FLASH is transmitted for 512 bytes of every block a CRC error check is performed and comparison processing is performed f Copy Save data in flash memory in microcontroller to file This button is clicked to read data from flash memory integrated into the microcontroller and save it as an Motorola S or Intel HEX format file Like Read amp Compare processing FLASH memory reading is performed for 512 bytes of every block and a CRC error check is performed similarly The output file format can be changed by right clicking in the Copy button The button name changes by Copy and Copy i whenever right clicking The state of Copy shows Motorola S format and the state of Copy i shows Intel HEX format 12 Processing begins when the button is left clicked the folder is specified preservation ahead the file name is input and the Save button is pushed when the form is selected g Full Operation D E B P Automatic programming Operation to
7. FLASH USB DIRECT Programmer User Manual Sep 19 2013 Software version VO1L10 QSpansion Inc Contents 1 Configuration Diagram 1 2 Compatible Mierocontrollers Ji ceti cete titer ene E 2 3 Example of Connection for On board Programming cccescceesscceesscessneceeseecesseeessseeesseeeesseeenseeenaees 3 4 Pins 5 5 Installation and Execution of 6 6 Programmer FU FICEIORnS 11e torre etti ren etre ente tede e te Teen ete Ra Ue bea Ue eb e UR AE e UTR e AUT A e RARE ee eddie T 0 1 Downloading a E EEEE EA AEEA OE RE 8 6 2 Erasing and Programming serere etaa e ee ea eE Ta ea aS 10 6 3 Motorola S format decoder specification 14 6 4 Intel Hex format decoder specification 15 T Operatirig environmernt o e c HUE 16 PRD 17 O CAUTO S cetera Macey kM ahs che 18 1 Configuration Diagram Using USB cable connected to the personal computer Windows PC flash memory data in the USB serial communication User system microcontroller mounted in the user system
8. detailed condition Message Description Download error Cause The response of download processing is unusual Action Please check connection and a setup of hardware Message timeout error Cause The response of a command does not come on the contrary Action Please check connection and a setup of hardware Message Unable to open COM port Cause Another application is using COM Action Please check the use situation and port number of a COM port Message Unable to gain COM port info Cause It will be in the state where the target COM port can be used Action Please check the number of a COM port and setup to be used Message Unable to change COM port setting Cause A communication setup cannot be set as the target COM port Action Please inform support of condition Message Communication error Cause The unusual command response was received Action Please re perform by improving connection and a setup of hardware Message Read error Cause The response at the time of read amp compare or copy processing is unusual Action Please re perform by improving connection and a setup of hardware Message Program error Cause The response at the time of Program amp Verify processing is unusual Action Please re perform by checking whether a chip is blank Message COM
9. e pull up resistor UHCONX H Disconnect the pull up resistor When the communication mode is set to USB this pin controls the frequency for source oscillation clock P22 L source oscillation frequency 4MHz P22 H source oscillation frequency 48MHz USB source oscillating frequency select pin P22 SOTO 0 5 Installation and Execution of Software If the old software version is installed uninstall it first before installation Starting the installer to operate as instructed will complete the installation Note that the install might not be performed when a directory in a deep nest is specified as the install directory After installation click the Windows Start button gt Program gt FLASH USB DIRECT Programmer gt USBDirect to start the programmer software The device driver for Windows is stored in Driver folder of the FLASH USB DIRECT Programmer installation folder Please use the driver software stored in Driver folder for Windows XP C XProgram Files Spansion FLASH USB DIRECT Programmer driver WinXP for Windows 7 C XProgram Files Spansion FLASH USB DIRECT Programmer driver Win7 6 Programmer Functions Erase Blank Check Program amp Verify Read amp Compare and Copy can be executed for flash memory integrated into the microcontroller Main dialog box Programmer software is started to open the dialog box as shown below FLASH USB DIR r SELECT FLASH INFORMATION Target MCU MB91F
10. ex File nothing is displayed The SUM value calculated here is not peculiar against Hex File When another microcontroller is selected same Hex File might reach another value The value specified with Fill Data is not written at the time of writing This value is used only for the calculation of checksum b Erase Erase all flash memory areas All flash memory must be in the blank state Oxff when programming a new program to it By pushing this button a chip erase command is published to FLASH and elimination is performed When the flash memory is protected the following windows might be displayed while executing the Erase command If the following dialog window is opened Input a reset signal to the microcontroller to start the program in the flash programming mode and then click the OK button In addition a blank check does not perform this command 11 1 Please reset the microcontroller on userboard Then push OK button ca c Blank Check Check that all flash memory areas are blank This button is clicked to check that all flash memory is in the blank state Oxff d Program amp Verify Program data to flash memory This button is clicked to program the Motorola S or Intel HEX format file specified in Hex File to flash memory in the microcontroller concurrently with verification An error dialog is displayed when writing is performed for 512 bytes of every block and a CRC error is detected by the block am
11. istance values for each system The MD1 and MDO pins and Pxx pins cannot be controlled by the PC and should be set in the user system During serial reprogramming when the RSTX pin is set from Low to High level after setting the MD1 pin and MDO pin and Pxx pin the microcontroller enters the USB reprogramming mode enabling serial reprogramming from the PC After the reprogramming control is shifted to the normally used mode as for MD1 and MDO pins and to the user circuit side as for Pxx pin Then RSTX pin set from Low to High level executes user program For FM3 FM4 USB I I I I connector I I I I I 1 I I I I User system 4MHz or Serial write 0 48MHz 10kQ Serial write 1 MDO Serial write at USB 10kQ communication mode 4MHz 0 P22 SOTO 0 48MHz 1 INITX USBVCC P60 UDMO P61 UHCONX UDPO VSS Note The pull up and pull down resistance values shown are for example Select the most appropriate resistance values for each system Insert a level shifter for each system The MD1 and MDO pins and Pxx pins cannot be controlled by the PC and should be set in the user system During serial reprogramming when the RSTX pin is set from Low to High level after setting the
12. port write error Cause There is the possibility of the abnormalities of a COM port driver or the port itself Action Please inform support of condition 17 9 Cautions The PC programming software has the possibility of receiving the influence by the communications cable the outside environment and the PC Therefore please evaluate it enough when you use the software Please use programming systems of programmer venders when you write two or more devices at the same time Please don t use the USB HUB between PC and MCU The specifications of the product are subject to change without notice 18
13. th of the data string that turns out by the number of data is different from the length of an actual data string The SUM data is different 3 record error When not is in number 0 of data at 01 records When not is in number 2 of data at 02 records When not is in number 4 of data at 03 records When not is in number 2 of data at 04 records When not is in number 4 of data at 05 records 4 address error There is data besides the FLASH area See b Available address d Additional detail specifications The line of only a new line is only skipped and does not become an error Decoding processing is ended when an end record 01 is processed It is invalid whatever it may be written after this record An offset address value is not processed about the record of 01 to 05 Moreover it does not become an error 15 7 Operating environment Required equipment Windows PC with the USB port USB cable commercial item OS Windows XP Windows 7 Memory size More than the memory quantity that OS recommends Hard disk Availability Not less than 10 MB NOTICE The operations of all models that meet the above conditions may not be ensured 16 8 Others A Error messages Many error messages are displayed owing to the setting mistake of hardware and software the case where an error is outputted in addition even if it checks these in detail please tell the person in charge of software acquisition origin a
14. the Download window When downloading is completed normally the following dialog window opens P o Ittransferred a control program to the microcomputer When the OK button is clicked to close the dialog window the Erase Blank Check Program amp Verify Read amp Compare and Copy buttons are enabled 6 2 Erasing and Programming This section explains how to specify Hex File and the processing and operation performed when the Erase Blank Check Program amp Verify Read amp Compare Copy and Full Operation D E B P buttons are clicked SELEOT FLASH INFORMATION Target MCU MB9BF5295 T _ Start Addr End Addr Size 00000000H OOOFFFFFH 00100000H Hex Fil HexF ile mhx ees 00100000H 0017FFFFH 00080000H COM 1 255 3 00400000H 00400001H 00000002H 00508000H 00517FFFH 00010000H Gommand to COMS Full Operation D4E4B4P Set Environment Help Check SUM Version Info Download Erase Blank Check Virtual Program amp Verify Read amp Compare Copy USB DIRECT a Hex File Select the file to be programmed to flash memory Specify the Motorola S or Intel HEX format file to be programmed to flash memory in the microcontroller Although the specification method by drags and drops a direct file from Explorer etc is recommended it can specify also by the file appointed window displayed by pushing the Open button He
15. x File must be specified to execute Program amp Verify Read amp Compare and Full Operation D E B P Since it is decoded at the head of these processings each time even if the specified Motorola S or Intel HEX format file changes specification of a file just before processing it is OK After Hex File is specified checksum to ROM image after Motorola S format file or Intel HEX format file shown in Hex File is deciphering done can be calculated The dialog box to calculate checksum when a lower right Check SUM button is pushed opens 10 Fill Data FF Check SUM The range of the calculation of checksum is limited to the Flash area shown in the upper right of the main dialog When the area has divided into plural block the empty area between blocks is not added and the total of each block is calculated The calculation method is simple addition of every one byte and the result shows the last 4 digits It is not a complement representation by the hexadecimal number ROM value in the Flash area not shown in Hex File is calculated assuming that it is a value indicated by Fill Data at the left of the dialog When starting FF is set here Please specify it by two hexadecimal number digits when changing Notes concerning checksum This function doesn t calculate the checksum of ROM image written in the FLASH memory in the microcontroller chip When Hex File is not specified and the error is detected at the decipherment of H

Download Pdf Manuals

image

Related Search

Related Contents

User Manual - Hellas Sat  City of Heroes/City of Villains Keybind, Macro & Emote  Routine Use of the Varian Mercury  King Canada KC-702C User's Manual  Lenovo ThinkCentre A85  Winkhaus Zutrittsorganisation  

Copyright © All rights reserved.
Failed to retrieve file