Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FFL
LIMITED WARRANTY!
By using this FLASHit product and its associated products, you agree to the following
conditions.
If you are unable to agree to these conditions, please notify us within two days of
purchasing FLASHit.
LIMITED warranty:
hse-electronics guarantees that the FLASHit product will basically work as advertised and
without defects if used properly for a period of 6 months after delivery.
NO additional warranty:
hse-electronics excludes any additional warranty claims related to the delivered product and
associated manuals and written materials.
LIMITED liability:
The liability of hse-electronics shall in any case be limited to the amount that the customer paid
for the product. This exemption shall not apply to damages caused by willful intent or gross
negligence on the part of hse-electronics.
JURISDICTION:
Disputes arising from this licensing agreement may only be resolved in the regional court of Kiel.
If you have any questions about this agreement, please contact your dealer or send us an e-mail
at info@hse-electronics.com.
Table of contents
1 FLASHit....................................................................................................................................................... 4
1.1 FLASHit ....................................................................................................................................................... 4
1.2 New Features (compared to previous versions)!.......................................................................................... 4
1.3 How does FLASHit work? ............................................................................................................................ 4
2 System Requirements ................................................................................................................................ 4
2.1 Target System ............................................................................................................................................. 4
2.2 PC ............................................................................................................................................................... 4
3 Program Installation and Registration ....................................................................................................... 5
3.1 Installation.................................................................................................................................................. 5
3.2 Registration ................................................................................................................................................ 5
4 Program Functions..................................................................................................................................... 6
4.1 Establishing A Connection .......................................................................................................................... 6
4.2 Setting the Baud Rate ................................................................................................................................. 6
4.3 FLASHit Working Directory.......................................................................................................................... 7
4.4 Program Priority.......................................................................................................................................... 8
4.5 Expert or Express Mode .............................................................................................................................. 8
4.6 Uploading to the Target System ("burn FLASH") .......................................................................................... 9
4.6.1 HEX or BIN? ................................................................................................................................ 10
4.7 FLASH Memory Info ................................................................................................................................ 10
4.8 Information on Supported FLASH Memories............................................................................................. 11
4.9 Uploading into the RAM of the Target System.......................................................................................... 11
4.10 Target System Info ........................................................................................................................... 12
4.11 Configuring FLASHit......................................................................................................................... 13
4.11.1 Target System ............................................................................................................................. 13
4.11.2 Programming Sequence .............................................................................................................. 16
4.11.3 Saving Configuration Data .......................................................................................................... 18
5 Special Functions ..................................................................................................................................... 19
5.1 Reading Out the FLASH Memory............................................................................................................... 19
5.2 Reading Out or Setting the SFR Register of the Target System .................................................................. 20
5.3 Reading Out the Analog Inputs of the Target System ............................................................................... 20
5.4 Reading Out the Content of Individual Addresses ..................................................................................... 21
5.5 Generating the Checksum......................................................................................................................... 21
5.6 RAM Test .................................................................................................................................................. 21
5.7 Saving the Debug Log File ........................................................................................................................ 24
5.8 Generating a Software Reset..................................................................................................................... 24
5.9 Generating a Hardware Reset ................................................................................................................... 24
5.10 Command Line Functions................................................................................................................. 25
5.11 Priorities in the FLASHit Configuration ............................................................................................. 25
5.12 Saving the Configuration ................................................................................................................. 25
6 The FLASHit Package ................................................................................................................................ 26
6.1 RS232 Terminal......................................................................................................................................... 26
6.2 Checksum Builder ..................................................................................................................................... 28
6.3 IO Check ................................................................................................................................................... 29
6.4 Command Line Generator (CmdLine) ........................................................................................................ 31
7 Appendix.................................................................................................................................................. 33
7.1 Error Messages ......................................................................................................................................... 33
7.2 Overview of Command Line Functions...................................................................................................... 37
7.3 Supported Controllers (excerpt): ............................................................................................................... 41
7.4 Sources of Checksum Function ................................................................................................................. 42
7.5 Reset and Bootstrap Signals...................................................................................................................... 43
7.6 Reset and Bootstrap Interface ................................................................................................................... 43
7.7 FLASH Connection Types........................................................................................................................... 44
7.8 Supported FLASH Memory (excerpt) ......................................................................................................... 46
1 FLASHit
1.1 FLASHit
FLASHit allows you to quickly and easily program application software in a C16x, XC16x (Infineon) or ST10x (ST)
target system with external and/or internal FLASH memory.
2 System Requirements
2.1 Target System
FLASH types: All standard types (for current specifications, refer to the appendix or our website).
Controller: C161, C164, C165, C167, XC164CS, XC161CJ, XC167CI, ST10F167, ST10F168, ST10F269,
ST10R280, ST10F276 and others (external watchdogs must be disabled). The FLASH memory
should be connected to the CS0 (see Appendix 7.7).
FLASHit can be customized to suit specific needs upon request!
2.2 PC
Operating system: All current versions of Windows
Hardware: Pentium or higher
3.2 Registration
Step 1:
Perform this step on the computer you want to register
FLASHit for!
Step 2:
- Enter the activation code under
Enter license key.
- Click Enable license.
- If the message License is enabled appears (in a green
field), then FLASHit has been successfully registered.
Note: If you need a new activation code because your hardware or other conditions have changed, e-mail us the old
license number and we will send you a new one.
4 Program Functions
4.1 Establishing A Connection
Note: If you are using a USB RS232 adapter, you can also run FLASHit via a USB port. All settings in bold are
the default or recommended settings.
Possible baud
rates of the PC
Internal
information
Proceed as follows:
- Open the Properties dialog from the context menu and select the Connection tab.
- Enter the following in the Target input box (example):
c:\programme\flashit.exe WORK_DIR=j:\ini
Result:
Double-click the FLASHit icon to launch the application and the files will then be saved in the "j:\ini" directory.
If the path name is enclosed in quotation marks, blank spaces are allowed (example):
High
FLASHit achieves the highest transfer rate with this
setting. It should be selected if you are using the
standard COM interface.
Low
This setting greatly reduces the transfer rate. It should
only be used in cases where FLASHit is to be launched
multiple times or the COM interface of your PC is
emulated via a USB-RS232 or PCMCIA-RS232 adapter.
The third-party interface driver will thus be given
enough computer processing time to emulate the
interface.
"Expert mode"
Note: If FLASHit was unable to automatically reset your target system before the upload began, you will be
prompted to reset the target system. To do so, you need to activate the Bootstrap mode (AD4 grounded).
Long upload file names are shown in abbreviated form in the upper window of FLASHit for space reasons.
To view the entire path, place the cursor over the panel.
If the Program file into flash/Load Intel-Hex option is enabled, you will not be able to flash binary files since
they do not have the same structure as Intel hex files.
If the Program file into flash/Load Bin option is enabled and an Intel hex file is selected to be flashed, FLASHit
will ask you to confirm your selection again.
- FLASH type
- Producer
- Memory size
- Number of sectors
- Place of the FLASH memory
- FLASH code
- Partitioning and size of the individual sectors
FLASHit automatically detects the FLASH type being
used. If two 8-bit FLASH memories are being used in a
16-but bus, FLASHit will detect such a configuration and
double the sector size that is indicated! A summary of
the currently supported FLASH types can be found in the
Flash types menu item of the Help menu.
Note: If the upload area is in the internal RAM of the target system, the FLASHit monitor or system areas (e.g.,
SFR) may be overwritten and lost!
A test is also be conducted to determine whether the FLASH or RAM is connected to CS0 and whether the FLASH
can be accessed. To indicate that the test was successful, the first 8 bytes of the FLASH memory is displayed in
the BUS0 test panel.
Target CPU
FLASHit normally detects the target CPU automatically.
Nonetheless, you may need to set the target CPU
manually (Target CPU). The various combinations that
can arise from the use of different CPUs and FLASH
memories as well as the type of connection used to
connect the FLASH memory to the CPU are listed in
Appendix 7.7, FLASH Connection Types.
Flash memory
If the External flash memory option is selected,
FLASHit will automatically detect the FLASH connection
type.
One of the following configurations will be detected: a
16-bit FLASH on a 16-bit bus (mux/non mux), an 8-bit
FLASH on an 8-bit bus (mux/non mux), two 8-bit
FLASHes on a 16-bit bus (mux/non mux) or two 16-bit
FLASHes on a 16-bit bus with each connected in 8-bit
mode (mux/non mux).
Basic address:
The basic address of the FLASH memory defines the
address that FLASHit uses for the FLASH memory. This
address is normally 0x00000 (FLASH memory at CS0).
Exceptions:
- The FLASH memory is located between CS1 and CS4
and is used beginning at address 0x10 0000, for
example, rather than address 0.
- Although the FLASH memory begins at address
0x00000, a mirrored space is used for the runtime. To
avoid any problems in the CPU system area, the FLASH
is written in the mirrored address space. The basic
address in this case is the same as the mirrored
address.
- The internal FLASH memory of a controller does not
begin at 0x00000 (e.g., with a XC161 the address
space begins at 0xC00000). In this case FLASHit will
automatically set the Basic address.
If the application (hex data) within the address space of
the FLASH memory begins, the Basic address is 0.
Example: The application begins at 0x000200. The size of the flash is 128k*16
(address space 0x000000 to 0x03FFFF). Only when the flash uses an address > 0x03FFFF for the
runtime will the basic address have to be set to 0x040000. For an address > 0x07FFFF, the basic address
will have to be set to 0x080000, and so on.
1. Erasing Flash
In this panel you can select either Chip Erase mode (the
FLASH memory is completely erased before
downloading) or Sector Erase mode. In Sector-Erase
mode FLASHit analyses the Intel hex file that you want
to upload to the target system and erases only those
sectors where the program is to be saved. If the Erase
Flash option is not selected, the FLASH memory will not
be deleted before downloading. This is recommended if
you plan on saving multiple hex files in a row. If the Ask
before erase check box is selected, you will be asked to
confirm the deletion of the FLASH memory.
To do so, click the Program file into flash>Load Bin option in the Config>Target and program
configuration menu. With this setting FLASHit will no longer interpret the file to be saved in FLASH. Even Intel
hex files will not (!) be treated as hex files, but as binary files! With this option you can "flash" data from a target
system (or bitmaps, text files, etc.) into another target system.
The target system's start address where the binary file is to be saved can also be defined in this menu.
Examples for address settings when building a checksum over the entire FLASH area:
*the basic address of the FLASH must be set to 0x100000 in these instances.
Note: The procedures described in this section are illustrated in Appendix 7.4, Sources of the Checksum
Functions.
6. Reset target
The Software reset option generates a software reset in the target system once the download is complete.
When the Hardware reset option is selected, FLASHit will generate a "bootstrap signal" on the DTR line of the
COM interface and "reset signal" on the RTS line (see 7.5). This option allows you to reset the target system and
switch to bootstrap mode provided that such a mode is recognized on the target hardware (see 7.5 and 7.6).
5 Special Functions
FLASHit provides an array of additional tools in the Special Functions menu item.
5.2 Reading Out or Setting the SFR Register of the Target System
Note: FLASHit only provides a selection of SFR registers. Moreover, the register sets will not switch depending on
which CPU was selected. When using this function, please note that system lines are connected to
several ports! The target system may crash under these circumstances!
Test selection
In this panel you can select the items you want to test:
Read access
Tests whether read access to the data bus is available.
16 bit 16-bit access (MOV)
Low Byte 8-bit access (MOVB) to even
addresses
High Byte 8-bit access (MOVB) to odd
addresses. If an error occurs here, the
bus mode setting may be incorrect.
Write access
Tests whether write access to the data bus is available.
16 bit 16-bit access (MOV)
Low Byte 8-bit access (MOVB) to even
addresses
High Byte 8-bit access (MOVB) to odd
addresses. If an error occurs here, the
bus mode setting may be incorrect.
Data lines
Tests the data lines for short-circuits and breaks
Address lines
Tests the address lines for short-circuits and breaks
Memory cell
Write/read test of the individual memory cells
The examples below show some of errors that can be found by the RAM test:
Not tested
Only address lines within the specified address space are
tested.
Note: The software reset cannot be used to contact (boot) the target system! It can only start an application in the
target system after the upload.
Example:
1. FLASHit is to be launched via an icon on the Windows desktop.
2. A specific file is to be loaded.
3. The baud rate and the COM port are to be specified.
4. The file is to be programmed into the FLASH memory of the target system.
5. FLASHit exits automatically once the upload is complete.
Proceed as follows:
- Create a new FLASHit shortcut on the Windows desktop.
- Give the icon a name (e.g., out.hex).
- Open the Properties dialog from the context menu and select the Connection tab.
- Enter the following in the Target input box:
Result:
Double-click the out.hex program icon to launch FLASHit and the e:\projekt\out.hex file is transferred via
COM1 at a baud rate of 57.600 to the target system where it is then programmed in the FLASH memory. FLASHit
exits automatically.
The Line feed menu lets you adjust the line feed of the data in the terminal window, as well as define separate
line breaks for receive and transmit.
You can select a hex file in the File menu. In the FLASH
size list box you can specify the size of the FLASH
memory.
The checksum builder defines the start and end
addresses based on the FLASH size setting. You only
need to specify the internal area of the target controller
in the Begin of internal area und End of internal area
fields since this area is factored out when calculating
the checksum.
Click Calculate to start the calculation.
The resulting checksum will be indicated by the ADD32
and CRC16 values.
Command Function
EXIT The program exits after the calculation.
A1= Defines the start address of the checksum calculation.
A2= Defines the start address of the system area.
A3= Defines the end address of the system area.
A4= Defines the end address of the checksum calculation.
FS= Defines the flash size (0=auto, 1=64 k, 2=128 k,
3=256 k, 4=512 k, 5=1 M, 6=2 M, 7=4 M)
FP= Defines the data content of a deleted flash module (fill
pattern).
HEX-FILE= Defines the file the checksum builder calculates.
LOCAL= The result file is written to the program directory.
Example of Result_CRC.txt
6.3 IO Check
The IO check is an interface testing tool that is integrated in the FLASHit package and is used to check whether
the COM port (the basis for working with FLASHit) is functioning properly.
Access modes
Access to the COM port via the API is only possible if
the port was free prior to starting the program.
The PIO mode is perfect for "observation" while the API
mode is suited to performing function tests. The PIO
mode can only be used for standard COM ports, which
excludes COM ports based on UBS interfaces, for
example (USB RS232 Adapter).
Loop test/line test:
Click the Test button to open a log window that
displays the results of the automatic test.
To save the test results, click Save protocol as... in the
File menu.
A physical test of the individual lines and signal
runtimes will be performed.
To complete this test, however, you first need to insert a
test plug into the COM port (see bottom left corner).
- outputs
By clicking the symbol, you can set a signal to the
appropriate port.
The logical level is shown in place of the exact voltage.
WARNING: Any modification to the outputs may result in the destruction of hardware (PC and/or externally
connected devices)!
WARNING: Any modification to the outputs may result in the destruction of hardware (PC and/or externally
connected devices)!
This window makes it extremely easy to adjust the various settings. In the example here, the upload hex file
(HEX-FILE=J:\Hexfiles\canopen.hex) has been selected which
initiates the automatic start of the upload (AUTOSTART)
sets the FLASH memory erase mode to "Sector Erase" (ERASE MODE=SECTOR)
specifies that FLASHit will exit automatically (EXIT)
uses the COM port (COM=1)
sets the baud rate (Baud=57600)
The menus highlighted in bold contain settings that have been changed.
The sequence of the individual commands has no effect!
This button lets you launch FLASHit directly from the specified command line.
This button lets you create shortcuts with FLASHit and the specified command line.
This button lets you access FLASHit from a Visual C++ code.
With the following program lines you can extract the "error code" from the return value (see 7.1).
uiErrorCode = (unsigned int) ( ulReturnValue >> 8 );
With the following program lines you can extract the "short code" from the return value.
cShortCode = (char)( ulReturnValue & 0x0F );
Short code equals bit 4 from the return value as shown below.
0 No error
1 Error in hex file
2 Error in target system
3 Flash was not found
4 Flash type not supported as yet
5 Error while deleting the flash module
6 Error while programming the flash module
7 Checksum error
8 Error in program flow of FLASHit
other error in Windows
FLASHit can also generate a "return code file" (result.txt) for evaluation by another application.
Note: If you want to work with CmdLine, then it must be located in the FLASHit directory!
Subject to change!
7 Appendix
7.1 Error Messages
Not supported
E040 8 E040: Sorry this CPU is not enabled at your version CPU nicht freigeschaltet (nur bei limitierten Versionen) keine
E042 E042: Internal error call hse Interner Fehler. (Lizenz kopie) hse / Lizenz auf anderem PC
June 08 Page 33 e-flashit900-manual31.doc
FLASHit 9 Manual
E043 E043: Wrong Date (1) Datum kann nicht korrekt ermittelt werden. PC Datum überprüfen
E044 9 E044: Demo restriction Verbindung zum CANTrax überprüfen
E045 8 E045: Contact hse-elctronics Fehler im Hexfile. hse / String nicht gefunden
E046 8 E046: Please contact hse-elctronics Fehler der eine Kontaktaufnahme zu hse erbittet. hse / Modul starts überschritten
E047 8 E047: Function in demo not available Funktion ist in der Demoversion nicht verfügbar. Produkt erwerben
E048 8 E048: Contact hse-elctronic Fehler der eine Kontaktaufnahme zu hse erbittet. hse / String nicht gefunden
E049 E049: Licence too old Lizenz ist nicht mehr für diese Version gültig Lizenz updaten
E051 8 E051: Try to write odd number of data! In einem 16bit Target wird versucht eine ungerade Anzahl von Bytes zu Schreiben. Gerade Adressen verwenden
E052 1 E052: Upload-file is no Intel-Hex format! Die Upload-Datei entspricht nicht dem Intel-Hex Format Intel-Hex-Format verwenden
E053 1 E053: Overwrite Address Versuch, bereits definierte Daten noch einmal zu defineiren (Fehler im Hexfile) Linker Einstellungen überprüfen
E056 E056: Data outside of FLASH at Address x
E058 1 E058: Checksum error in Hexfile line Prüfsummenfehler in Hexfile Zeile
E059 1 E059: Wrong blocklenght in Hexfile line Anzahl der Daten stimmt nicht mit Länge der Hex-Zeile überein
COM-Access
E300 8 E300: Error in access to COM Device USB-RS232-Adapter nicht vorhanden
RAM-Access
E410 2 E410: RAM-access test failed RAM-Zugriffstest kann Write und Read sein
E420 2 E420: RAM data line test failed RAM-Test Fehler in Datenleitung
E430 2 E430: RAM addr line test failed RAM-Test Fehler in Adressleitung
E440 2 E440: RAM-cell test failed RAM-Test Fehler bei Zellen Test
E450 E450: RAM upload failed, Ex Fehler Nr. beim RAM upload
E451 2 E451: Upload failed, CRC is wrong Daten nicht korrekt zum Target übertragen
E452 2 E452: RAM-Data compare error RAM-Rücklese-Daten stimmen nicht mit Upload Daten überein
E453 2 E453: RAM CRC check failed RAM-CRC stimmt nicht mit Upload CRC überein
E455 2 E455: can not open file RAM-Upload Datei kann nicht geöffnet werden
E456 E456: Data will destroy system area Versuch ins iRAM, SFR zu schreiben
Project
Target-Connection
COM Defines COM-Port number Definiert die COM-Port Nummer 1, 2, ..., 99 COM=2
BAUD Defines baudrate Definition der Baudrate 9600, 19200, 38400, 56000, 115200 BAUD=38400
Target defines
TCONCS3 Defines SFR TCONCS3 Definiert SFR TCONCS3 0x00000 - 0x0FFFF TCONCS3=0x0000
TCONCS4 Defines SFR TCONCS4 Definiert SFR TCONCS4 0x00000 - 0x0FFFF TCONCS4=0x0000
FCONCS0 Defines SFR FCONCS0 Definiert SFR FCONCS0 0x00000 - 0x0FFFF FCONCS0=0x0021
FCONCS1 Defines SFR FCONCS1 Definiert SFR FCONCS1 0x00000 - 0x0FFFF FCONCS1=0x0021
FCONCS2 Defines SFR FCONCS2 Definiert SFR FCONCS2 0x00000 - 0x0FFFF FCONCS2=0x0021
FCONCS3 Defines SFR FCONCS3 Definiert SFR FCONCS3 0x00000 - 0x0FFFF FCONCS3=0x0021
FCONCS4 Defines SFR FCONCS4 Definiert SFR FCONCS4 0x00000 - 0x0FFFF FCONCS4=0x0021
ENABLE_CS1 Enables CS1 setting Einschalten der Buskonfigutation 1 ENABLE_CS1
ENABLE_CS2 Enables CS2 setting Einschalten der Buskonfigutation 2 ENABLE_CS2
ENABLE_CS3 Enables CS3 setting Einschalten der Buskonfigutation 3 ENABLE_CS3
ENABLE_CS4 Enables CS4 setting Einschalten der Buskonfigutation 4 ENABLE_CS4
DISABLE_CS1 Disables CS1 setting Ausschalten der Buskonfigutation 1 DISABLE_CS1
DISABLE_CS2 Disables CS2 setting Ausschalten der Buskonfigutation 2 DISABLE_CS2
DISABLE_CS3 Disables CS3 setting Ausschalten der Buskonfigutation 3 DISABLE_CS3
DISABLE_CS4 Disables CS4 setting Ausschalten der Buskonfigutation 4 DISABLE_CS4
Basis Adresse an der das Flash verwendet
BASIC-ADDR Flash basic address 0x000000 - 0xFFFFFF BASIC-ADDR=0x400000
wird.
Defines the beginnig of Definiert den System-Bereich
SYSTEM-BEG 0x00000 - 0x0FFFF SYSTEM-BEG=0x00E000
the system memory area der CPU (SFR, ESRF,...)
Defines the ending of Definiert den System-Bereich
SYSTEM-END 0x00000 - 0x0FFFF SYSTEM-END=0x00FFFF
the system memory area der CPU (SFR, ESRF,...)
RDOUT-BEG Beginn of Readout RDOUT-BEG=0x00000
RDOUT-TOP End of Readout RDOUT-TOP=0x3FFFF
PFLASH Place of flash Ort des Flashes INT or EXT PFLASH=INT
RAM Upload
Defines a path and file name for RAM Pfad-Angabe zur Datei, die ins RAM
RAM-FILE Fullpath RAM-File="c:\Test\RAM.hex"
upload geschrieben werden soll
RAM-OFFSET Load offset for RAM upload Offset für Speicherung ins RAM RAM-OFFSET=0x40000
Visible
ICONSIZE Starts FLASHit as an icon Starte FLASHIt als Icon ICONSIZE
EXPERTVIEW Start full view EXPERTVIEW
EXPRESSVIEW Start smal view EXPRESSVIEW
User Serial Number (USN)
USN_Prefix Defines the prefix of the USN Präfix der Seriennummer max. 8digits USN_Prefix=Version:
USN_Number Defines the value of the USN Wert der Seriennummer max. 8digits USN_Number=123
Startadresse, ab der die USN ins Flash
USN_Adress Defines the start-adress of the USN max. 8digits USN_Adress=0x3FFF0
geschrieben wird
USN_INC Defines autoincrement of the USN Autoincrementierung der USN USN_INC
Defines the storing of the
USN_Log Speicherung der USN USN_Log
USN into a file
Program setting
0m = RAM-Test
SEQUENCE SEQUNCE=0r
0r = RAM-Upload
Defines SECTOR- or CHIP- NO-erase
ERASE-MODE Definition des Lösch-Modus SECTOR, CHIP, NO ERASE-MODE=SECTOR
before programming
Stops and ask user Aktivierung einer zusätzlichen Abfrage ob der AskUseBeforeErase=0
AskUseBeforeErase 0, 1
before sector erase Anwender Änderungen durchführen will AskUseBeforeErase=1
Calculates a 32 bit add up Checksum after Als Prüfsumme wird die 32bit Summe aller
CHECKSUM=ADD 0x000000 - 0xFFFFFF CHECKSUM=ADD
download Bytes verwendet
Calculates a CRC16 checksum after Als Prüfsumme wird die
CHECKSUM=CRC16 0x000000 - 0xFFFFFF CHECKSUM=CRC16
download CRC16-Methode verwendet
CMPCHK Compares Checksum with value Definiert den Vergleichswert der Prüfsumme 0x000000 - 0xFFFFFF CMPCHK=0x0023456
Generates a software reset after Definiert die Reset-Methode
SOFTRESET SOFTRESET
successful programming Software-Reset
Generates a hardware reset after Definiert die Reset-Methode
HARDRESET HARDRESET
successful programming Hardware-Reset
Definiert den Sektor mit der
AutoEraseSec Erases sector at address 0x000000 - 0xFFFFFF AutoEraseSec=0x018000
Adresse zum Löschen
Definiert ein 16bit Wert, der ab Adr. ins Flash 0x000000 - 0xFFFFFF,
AutoWriteWord Writes a word at address AutoWriteWord=0x018000,0x1234
geschrieben werden soll 0x0000 - 0xFFFF
Program control
Exits FLASHit after successfull program FLASHit wird nach dem Ende der Sequenz
EXIT EXIT
sequence beendet, wenn kein Fehler auftrat
FLASHit wird nach dem Ende der Sequenz
Exits FLASHit allways after program
RETURN beendet, auch wenn ein Fehler auftrat. RETURN
sequence
Fehler siehe Returncode
AUTOSTART Starts automaticaly program sequence FLASHit startet automatisch die Sequenz AUTOSTART
WORK_DIR=j:\ini
WORK_DIR Path to work directory (ini, result) Pfad zur ini-, result, Datei Fullpath
WORK_DIR="c:\program files\flashit"
0=Idle, 1=Normal,
PRIORITY Program priority Programm Priorität PRIORITY=1
2=High, 3=Real Time
Infineon
C166V1 C166V2
C161x C164x C165x C167x XC161x XC164x XC167x
C161CS C164CI C165 C167LM XC161CJ XC164CS XC167CI
C161JC C164CL C165H C167CR XC164CM
C161JI C164CH C165UTAH C167CS
C161PI C164SI C167S
C161U C164SL C167SR
C164SM
STMicroelectronics
ST10x
ST10F167
ST10F168
ST10F269
ST10F273
ST10F276
ST10F280
// address range
for (ulAddress = ulA1; ulAddress <= ulA4; ulAddress++)
{
//Check for switch address to jump over system area
if ( ulAddress == ulA2 ) ulAddress = ulA3 + 1;
//Checksum function
uiChecksumADD32 += *(volatile huge unsigned char*) ulAddress;
}
return( uiChecksumADD32 );
}
// Checksum function
for (i=0; i<8; i++)
{
if ((uiCRC6 ^ ucData) & 1) uiCRC6=(uiCRC6>>1)^0xA001;
else uiCRC6 >>=1;
ucData >>=1;
}
}
return( uiCRC6 );
}
Reset and bootstrap signal on the COM interface Signal based on circuit in 7.6
/CS0 GND
2. Flash memory is the only extension
16 bit Flash A0...An CPU The chip select line of the flash is grounded. The chip
16 bit BUS
select line of the CPU can therefore also be used as a
higher address line.
/CS0 Yo
Decoder
3. External address decoder
16 bit Flash CPU
A0...An Despite the external address decoder, access with FLASHit
16 bit BUS
is possible if the FLASH memory is located at output Y0
and the address space to 0xAAAA is addressed.
/WRL
/CS0 4. Two 8-bit FLASH memory chips on 16-bit bus
8 bit Flash A0..An
Chip select 0 of the CPU selects two memory chips.
D0...7
CPU
Writing is enabled by the write high byte und write low
/WRH byte.
8 bit Flash
16 bit BUS
D8...15
/WR
/CS0
5. Two 8-bit FLASH memory chips on 16-bit bus
8 bit Flash A0..An Chip select 0 of the CPU selects two memory chips.
D0...7 Writing is enabled by the write word.
CPU
/WR
8 bit Flash
16 bit BUS
D8...15
/WRL
6. Two 16-bit FLASH memory chips on 16-bit bus
16 bit Flash
/CS0 Two 16-bit FLASH memory chips are used in 8-bit mode.
A0..An
im 8 bit Mode
Chip select 0 of the CPU selects two modules. Writing is
D0...7
CPU
enabled by the write high byte und write low byte.
/WRH
16 bit Flash
im 8 bit Mode 16 bit BUS
D8...15
16 bit Flash
im 8 bit Mode 16 bit BUS
D8...15
Yo
/CS0 Decoder
/CS0
16 bit Flash
A0...An CPU
im 8 bit Mode 4. An 8/16-bit FLASH memory on 8-bit bus
8 bit BUS A flash memory that supports both an 8-bit and a 16-bit
data bus is operated in 8-bit mode. Chip select 0 of the
CPU selects two memory chips. A0 of the CPU is
/CS0 GND connected to DQ15.
16 bit Flash
A0...An CPU
im 8 bit Mode
8 bit BUS
Yo
/CS0 Decoder
16 bit Flash
A0...An CPU
im 8 bit Mode
8 bit BUS
*
Note: There are numerous connection methods available depending on the various CPUs and
FLASH memory chips you are using. We are therefore unable to guarantee that the
connection methods shown here are compatible with all possible combinations!
Subject to change!
No guarantee of completeness!