You are on page 1of 53

FLASHit 9-Manual

The FLASH Programming Tool

for easy programming of application software in a


C166, XC167, XE166, XE2200 (Infineon)
or ST10 (ST) target system
with internal and/or external FLASH memory

Page 1 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Manual from version 9.5x

We wish you success in your work with FLASHit


The hse electronics team

Page 2 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Table of contents
1 FLASHit .................................................................................................................................................................... 4
1.1 Function Overview ............................................................................................................................................. 4
1.2 About the Manual – Terminology ...................................................................................................................... 4
1.3 How does FLASHit work? ................................................................................................................................. 5
1.4 System Requirements ....................................................................................................................................... 5

2 Program Installation and Registration ................................................................................................................. 6

3 Program Functions ................................................................................................................................................. 7


3.1 Establishing A Connection ................................................................................................................................ 7
3.2 Setting the Baud Rate ....................................................................................................................................... 7
3.3 FLASHit Working Directory ............................................................................................................................... 8
3.4 Program Priority................................................................................................................................................. 9
3.5 Expert or Express Mode .................................................................................................................................... 9
3.6 Uploading to the Target System ("burn FLASH") ............................................................................................ 10
3.7 FLASH Memory Info ........................................................................................................................................ 11
3.8 Information on Supported FLASH Memories .................................................................................................. 12
3.9 Uploading into the RAM of the Target System ................................................................................................ 12
3.10 Target System Info .......................................................................................................................................... 13
3.11 Configuring FLASHit ........................................................................................................................................ 14

4 Special Functions ................................................................................................................................................. 20


4.1 Reading Out the FLASH Memory.................................................................................................................... 20
4.2 Reading Out or Setting the SFR Register of the Target System .................................................................... 21
4.3 Reading Out the Analog Inputs of the Target System..................................................................................... 21
4.4 Reading Out the Content of Individual Addresses .......................................................................................... 22
4.5 Generating the Checksum ............................................................................................................................... 22
4.6 RAM Test......................................................................................................................................................... 22
4.7 Saving the Debug Log File .............................................................................................................................. 25
4.8 Generating a Software Reset .......................................................................................................................... 25
4.9 Generating a Hardware Reset......................................................................................................................... 25
4.10 Command Line Functions ............................................................................................................................... 26
4.11 Priorities in the FLASHit Configuration ............................................................................................................ 26
4.12 Saving the Configuration ................................................................................................................................. 26
4.13 Software Generator ......................................................................................................................................... 27

5 The FLASHit Package .......................................................................................................................................... 28


5.1 RS232 Terminal............................................................................................................................................... 28
5.2 Checksum Builder ........................................................................................................................................... 30
5.3 IO Check .......................................................................................................................................................... 31
5.4 Command Line Generator (CmdLine) ............................................................................................................. 33

6 Appendix ............................................................................................................................................................... 35
6.1 Error Messages ............................................................................................................................................... 35
6.2 Overview of Command Line Functions ........................................................................................................... 39
6.3 Supported Controllers (excerpt): ..................................................................................................................... 43
6.4 Sources of Checksum Function ...................................................................................................................... 44
6.5 Reset and Bootstrap Signals ........................................................................................................................... 45
6.6 Reset and Bootstrap Interface......................................................................................................................... 45
6.7 FLASH Connection Types ............................................................................................................................... 46
6.8 Supported FLASH Memory (excerpt) .............................................................................................................. 48
6.9 Operating conditions ....................................................................................................................................... 52

7 hse-elctronics product: HEXit the HEX-File Analysis-Tool .............................................................................. 53

Page 3 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

1 FLASHit
1.1 Function Overview
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.

 Data upload into the RAM / FLASH via the RS232 interface
 Sector partitioning of all FLASH memory is presented graphically
 External Flash memories are supported
 Chip erase and sector erase modes of the FLASH memory are possible
 Programming serial numbers into the target are fully automatically possible
 Checksum (CRC16) can be built using the entire content or portions of the FLASH memory
 Checksum Verification
 FLASH content can be read out and stored in HEX or BIN files
 SF-Registers of the target processor can be read out and can be set (reads analogue inputs directly)
 Software generator, provides Hex files for testing target systems
 Command line parameters are supported. Complete control of FLASHit from own application is possible
 Windows versions up to Windows 7 is supported

1.2 About the Manual – Terminology


Terms that appear in the manual in bold italics can be
found in the program interface; for example,
XE116x.., Target Reset or User defined

The term dialog area describes an area in FLASHit


where settings can be adjusted or information is
displayed; for example, the dialog areas Target CPU or
Target Reset.

Option button

Checkbox

Dropdown menu

Page 4 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

1.3 How does FLASHit work?


FLASHit was designed for easy use. Once a connection to the hardware has been established via the RS232
interface and the interface parameters have been set, you only have to select an application for the upload /
programming process (burning) to the target system to begin.

This process occurs as follows (without enabled options):


- The bootstrap loaders of the target system are activated
- The FLASHit monitor is transferred to the internal RAM of the target system and then started
- The configuration of the target system is determined
- Bus mode is set
- The type of FLASH being used is detected automatically
- The FLASH type data from the PC's database is read out
- The FLASH data are displayed
- Hex file analysis: The sectors to be deleted are identified and selected and hex data are arranged in a
binary array
- The FLASH memory is deleted (either individual sectors or the entire chip)
- FLASH in the target system is reprogrammed in blocks (programmed sectors are selected).

1.4 System Requirements


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, XE166, XE2200 (Infineon)
ST10F167, ST10F168, ST10F269, ST10R280, ST10F276 (ST) 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!

PC
Operating system: All current versions of Windows until Windows 8
Hardware: Pentium or higher

Page 5 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

2 Program Installation and Registration


Installation
If you have a CD:
- Insert the program CD into the CD-ROM drive of your PC.
- Follow the instructions on your screen.

If you downloaded FLASHit from the hse-electronics website:


- Double-click setupflashit.exe.
- Follow the instructions on your screen.

Registration

Two licensing methods are available:


1. PC-based licensing
2. USB dongle-based licensing
When FLASHit is launched for the first time, you will need
to register it in the Help/Registration menu (otherwise
FLASHit will run in restricted demo mode). If FLASHit
was delivered with a dongle, you can skip the following
steps. Insert the dongle into the USB port to unlock the
program.
To register FLASHit, complete the following two steps:

Step 1:
Perform this step on the computer you want to register
FLASHit for!

Click Build registration data.


FLASHit will generate your own personal System Id.
- Fill in the fields marked with "*".
- Now send us your registration data either by e-mail
(Build mail...) or by fax (Print...).
- Once we receive the data we will send you your
activation code (by e-mail or fax).

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.

If you have any questions about registration, e-mail us at


info@hse-electronics.com.

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.

Page 6 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3 Program Functions
3.1 Establishing A Connection
- Connect your PC to the target system via the serial
interface.
- Select the COM port you want to use in the Setup
menu. You can choose from the first 10 installed COM
devices whose COM numbers can range from 1 to 99.

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.

3.2 Setting the Baud Rate

The adjustable baud rate between the target system and


your PC depends on, among other factors, the clock rate
of the target system (divisible by a standard baud rate).
Just try out different baud rates
and select the one you want from the Baud rate menu.

Note: At a 20 MHz CPU clock rate, up to 57.6 kBaud can


be achieved! Depending on the clock rate of the target
system, even 115.2 kBaud can be used.

If the option to set a "user-defined baud rate" with the


RS232 interface is provided, you can select an optimal
baud rate in the More>Extended baud selection dialog.
CPU frequency To do so, you first need to enter the baud rate generator
of the target
system frequency of the PC and the target system.
In the PC settings, a baud rate tailored to the target
Quartz on the system can be generated by a quartz function.
PC UART card Both the original and current frequencies must be
entered for this purpose.

Possible baud
rates of the
target system

Possible baud
rates of the PC

Internal
information

Page 7 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.3 FLASHit Working Directory


FLASHit creates several files during a session:
flashit.ini // program settings
result.txt // return values
Depending on which version of Windows is being used (in this case WinXP), these files are saved by default in the
directory specified by Windows.
(e. g.: c:\Documents and Settings\All Users\Applications Datas\FLASHit\*.*.)
Windows must be set to allow the creation and writing of files in this directory!
If you want to use a different working directory, you need to create one in advance.

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):
c:\program files\flashit.exe WORK_DIR=“c:\Program Files\FLASHit“

You can check the path by selecting Work dir... from the
Setup menu.

Page 8 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.4 Program Priority


So that the hex files to be saved can be uploaded to the target system as quickly and smoothly as possible,
FLASHit "authorizes" the highest program priority that Windows can assign. All other programs will run much
slower as a result.

You can change the program priority by clicking Program


priority from the Setup menu.

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.

3.5 Expert or Express Mode


By selecting the Expert mode and Express mode menu
items in the Setup menu you can choose between a
basic or advanced FLASHit user interface.
FLASHit "remembers" the previous settings when
restarted

"Expert mode"

Basic user interface of FLASHit: "Express mode"

Page 9 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.6 Uploading to the Target System ("FLASH burning")


Having addressed the most important program settings in Items 4.1 and 4.2, we can now begin the process of
uploading the application software to the target system.
The UploadFile tab lets you select a specific file (set
format filter to *.hex). Information on the file you select
will appear in the File-Info window. Click the Upload box
in the bottom right corner to start uploading the file to the
FLASH memory.

FLASHit will attempt to automate the settings described


below.

During the upload FLASHit switches to the FlashMem


tab and displays the data of the FLASH memory being
used (FLASH type, manufacturer, memory capacity and
the number of sectors). The Status window shows the
progress of the upload.
You can cancel the upload at any time by clicking
Cancel.

The Status window will turn green when the upload is


complete.

If the Status window turns red the upload was


unsuccessful.
The possible causes of the upload failure can be viewed
in the Status window.
The appendix contains list of all error codes.

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.

Page 10 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

HEX or BIN?
FLASHit allows you to write Intel hex files as well as binary files to the FLASH memory of the target system.
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!
The start address in the target system where you want to
save the binary file can also be set there.

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.

3.7 FLASH Memory Info


Regardless of whether or not an upload has been initiated, you can press the Analysis button on the FlashMem
tab to display the following information on the FLASH type being used:

- 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.

You can also view all supported FLASH memories on our


website at www.hse-electronics.com.
Regardless of whether a program is being uploaded, you
can use the Chip Erase option to delete the entire
FLASH memory chip or the Sector Erase option to
delete individual sectors of the FLASH memory by
selecting them with the mouse.

Page 11 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.8 Information on Supported FLASH Memories

The Help>Flash types... menu lets you view the entire


FLASH database of FLASHit. With this menu you can
easily check whether FLASHit support the FLASH you
want to use. If the particular FLASH you want is not
listed, hse may be able to quickly import the relevant
software component.

With this function FLASHit also offers help in searching


for supported FLASH types.
You can enter keywords for the search in the View Filter
menu (manufacturer, name and FLASH size).
All sectors of the FLASH are graphically represented. If
you select a sector with the mouse, the number, size and
start and end address of that sector will be shown.

3.9 Uploading into the RAM of the Target System


With the RAM Upload function you can transfer the
content of a file to the RAM of the target system. Both the
Intel hex and binary file formats are supported.

Select the RAM Upload file in the File>Upload file into


RAM dialog. This file is selected independently of the
FLASH Upload file selection. The Base address and
Top address panels show the corresponding data of the
Upload file. You may have to adjust the base address
depending on the target system.
You can enter a new base address in the User defined
field and the top address will then be automatically
recalculated (Top address).
In this example the basis address of the Upload file is
0x0000. A new basis address, 0x40000, is specified in
the User defined field so that the data can be placed in
the RAM.

When uploading files into RAM, make sure that FLASHit


does not have the automatic Bus Mode Detection for
RAM module installed!

The Bus setting (CS, BUSCON, ADDRSEL) is done


manually in the Config>Target System dialog. In this
example the external RAM of the target system is located
at Chip-Select 1 (Enable CS1) and begins at the address
0x40000.

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!

Page 12 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.10 Target System Info


Click the Get info button to see information about the target system on the Target CPU tab.

Processor Target CPU type (C164 in this


example)
RP0H: Content of the RP0H register;
Identification of the resistance circuit
at Port 0 (ADx System Start Up), e. g.:
"RP0H = 0xFA"
Write Control: CPU write access
Ext. Bus0: Bus mode
Chipselect: Number of chip select lines
Address lines: Address lines >= A16
IDMEM: Internal memory information
SYSCON: SYSCON register
BUSCON0: BUSCON0 register
MANUF: Manufacturer
IDCHIP: System register (SFR)
IDCPU: System register (SFR)
IDPROG: System register (SFR)
FCPU CPU clock rate
PLL: Set PLL. PLL x fxtal= fCPU Takt (a 5-MHz-
Quarz is used here [20 MHz/4]).

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.

Page 13 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3.11 Configuring FLASHit


Although FLASHit determines most of the required data on its own, a number of parameters may have to be set
manually.

Target System
You can configure the various settings of the target
system using the Config>Target and program
configuration menu and the Target System tab.

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.

If you select the Target Reset>Automatic option,


FLASHit will try to reset the target system automatically.
If the User defined option is selected, you will be able to
define the reset behavior of FLASHit (Define) manually.

Speed-Up According to CPU-power-up-connection some


CPUs starts with relatively low system clock. The result is
that mostly a serial connection with only 19200 Baud
comes about. To be able to program faster the target
system, FLASHit offers the possibility to switch the
system clock and with it the baudrate high. If the target
starts, e.g., only with 5 MHz of system clock, a baudrate
of maximum 19200 Baud is possible. A baudrate of
115200 Baud can be reached by upshifting the clock by
FLASHit on e.g. 40 MHz.

C16x, ST10 No support of the dynamic clock change-


over.

XC16x Definition of the start-baudrate (e.g., 19200


Baud), as well as the parametres for the PLL register and
the reload value of the serial interface ASC0.

XE16x, XC22xx Definition of the start-baudrate (e.g.,


19200 Baud). FLASHit uses the internal oscillator of the
CPU and switch it from 10 to 40 MHz. FLASHit takes the
parametres for PLL and serial interface from his data
bank covers.

Page 14 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Bus Mode (for C16x, ST10x) FLASHit is set to


Autodetect by default, which means the program will
automatically determine the bus mode of the target
system as defined in the RP0H. If you are using an
external address decoder, select the User defined option
so that you can set the SYSCON and BUSCON registers
manually.
The CS1 through CS4 panels let you define the chip
select lines.

Bus Mode (for XC16x) FLASHit is set to Autodetect by


default, which means the program will automatically
determine the bus mode of the target system as defined
in the RSTCFG.

If you are using an external address decoder, select the


User defined option so that you can set the bus registers
manually.

Optional memory/register settings


Two registers or two addressable
memory cells can be defined while the
target system is initializing.
To do so, you first need to select the
Set 1 and Set 2 checkboxes and then
specify the access mode in the adjacent
field.

In the Addr field you can


either select a register from
the drop-down list or just
enter the address you want.
If you choose the latter,
make sure that FLASHit
overwrites any data stored in
the IRAM and PRAM.

The Value field lets you


define the value for the
register or memory location.

Example: Before writing the FLASH memory, you should


disable the write line to the FLASH using an electronic switch.

Page 15 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

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).

The On chip flash memory option currently supports


ST10276, ST10F269, XC161, XC164 and XC167
controllers.

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.

Page 16 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Programming Sequence
You can configure the programming sequence settings using the Config>Target and program configuration
menu and the Program sequence tab. FLASHit performs parameter 1 through 8 in sequential order. The
parameters highlighted in bold in the Configuration window are default settings.

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.

2. Programming file into flash This option must be


selected if you want to transfer a file into the FLASH
memory of the target system.
FLASHit allows you to write Intel hex files as well as
binary files to the FLASH memory of the target system.

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.

3a. Build checksum (CRC) Select the Build Checksum


option and FLASHit will build a checksum based on the
content of the FLASH memory.
In the "Calculation area of checksum" section you can
specify the address spaces to be used in building the
checksum. The red area, for example, shows a space
that contains the SFR or RAM and will therefore be
hidden.
ADD32 (Add Bytes) requires about 2 Sec/256 Kbyte
(lowest security level).
CRC16 (Cyclic Redundancy Check) requires about
16 Sec/256 Kbyte (highest security level). Since the
system area is located in the linear address space (red
field), it must be hidden during the checksum building
process. You can specify the system area here.

Page 17 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Examples for address settings when building a checksum over the entire FLASH area:

CPU Start address Beginning of the Ending of the End address


internal area internal area
C16x external FLASH 0x000000 0x00E000 0x00FFFF Top address of FLASH
ST10F269 OnChip FLASH 0x000000 0x008000 0x017FFF 0x04FFFF
ST10F269 external FLASH* 0x000000 0x000000 0x000000 0x100000 + size of FLASH
XC16x OnChip FLASH 0x000000 0x000000 0x000000 0xC3FFFF
XC16x external FLASH* 0x000000 0x000000 0x000000 0x100000 + size of FLASH

*the basic address of the FLASH must be set to 0x100000 in these instances.

FLASH memory at CS0:


To enable a checksum of the entire FLASH memory, the
address space of the FLASH will be mirrored.

FLASH memory at CS1, 2, 3, 4:


To enable a checksum of the entire FLASH memory, the
address space of the FLASH will be mirrored.
For this to work, the ADDRSELn SFR register (CSn) has
to be increased by 1 (address space doubling) (see
4.7.1).

Note: The procedures described in this section are illustrated in Appendix 7.4, Sources of the Checksum
Functions.

Page 18 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

3b. Compare checksum with Compares a fixed


checksum with the calculated checksum or a checksum
created from the upload file. You can also perform a
checksum check of a specific area of the upload file
(Upload file area).

4. Write word (int) Selecting this option allows you to


write a "word" (2 bytes) in the variable address of the
FLASH memory. The selected address of the FLASH
memory must have been deleted before the word can be
written.

5. Write User serial number into flash This option


causes FLASHit to automatically generate a serial
number and save it at a specified address (At address).
The Prefix and Number input fields determine how the
serial number will look like. The Increment... option
specifies whether the Number field will be increased by 1
(incremented) each time the serial number is saved
successfully. The two preview fields show how the
following numbers will look like. If you select the Write
number into logfile option, all assigned serial numbers
will be saved in a log file. The name of the log file is
composed of the prefix of the serial number and the *.txt
extension (e.g., hse1.txt).

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).

7. Start RS232 Terminal Select the Start RS232 Terminal option to start a terminal program after the target
system is reset that displays all the data your application transferred over the RS232 interface (the correct baud
rate must be set!): Rx term Minimal terminal program in status window
Smal term External terminal program (hse tool)
Ext. term External terminal program

8. Exit FLASHit after upload sequence With this option you can specify whether and in what way FLASHit will
automatically quit after an upload.

Saving Configuration Data

In the File>Open configuration menu you can load


previously saved settings, saved them with Save
configuration or save them under a new name with
Save configuration as...

Page 19 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4 Special Functions
FLASHit provides an array of additional tools in the Special Functions menu item.

4.1 Reading Out the FLASH Memory

Reads out the FLASH memory and saves it as either a


*.bin or *.hex file.

C16x, XC16x or ST10x Controller


Proceed as follows:

Size: top address:


Enter the size of the FLASH Shows the top memory address of
memory the selected FLASH memory.
The first three bytes that will no
Search for: longer be read out
If the pure user application can be The last three bytes that will be read
read out but not the entire FLASH out
memory, the end address of the
program can be determined end/begin:
automatically with the A sub area of the FLASH memory
Search for. .FLASHit will then can be hidden from the read out
only read the program^ process so as not to include the
In any case, only the area system areas of the processors in
between the start address and the save. This is necessary if the
end address (between 0x00000 read out data will later be written in a
and 0x01FFFF in this example) FLASH memory.
will be read out.
start address
The addresses specified here apply
for most of the system areas of the

Page 20 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4.2 Reading Out or Setting the SFR Register of the Target System

This function lets you test the target hardware without


having to write a single byte of software.

Two SFR registers can be edited at the same time. In this


example the DP2 register (data direction register) and P2
register (Port 2) are selected.

The DP2 register of the selected PIO specifies whether


the pin will be connected to the output (1) or the input (0).
Here the DP2.0–DP2.7 have been connected to the
output while DP2.9–DP2.15 are connected to the input.
P2.0, P2.2, P2.4, P2.6 and P2.7 are set to "high" (1),
which means the level of the outputs is "high". A "high"
level is also specified for input pins P2.9–P2.15.

Click the manual update button to update the data. If


you select the auto option, the pending data will be
updated automatically (every 250 ms as specified in the
list box).

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!

4.3 Reading Out the Analog Inputs of the Target System

With the Special Functions>Read analog channels...


option you can display the values of the analog inputs (if
present)
and thus test the ADC function of the target hardware
without having to write a single byte of software. The
reference voltage (Uref) can be adjusted for the purpose
of scaling the values.

Page 21 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4.4 Reading Out the Content of Individual Addresses

Click the Target-memory viewer menu item to read out


the individual addresses from the FLASH module.

If the add address by 16 check box is selected, every


time you click the Read from target button the
subsequent bytes will be displayed.
Click Erase view window to erase the data being
displayed (but not the data in the FLASH memory!).

4.5 Generating the Checksum

Based on the settings you selected in the Program


sequence tab of the Config>Target and program
configuration menu, you can click this menu item to
determine the correct checksum.

4.6 RAM Test


The RAM Test function in FLASHit (RAM test...) can be
used to perform an extensive test of the target system's
RAM architecture. The RAM is tested by writing and
reading the individual memory cells. A number of logical
errors can be identified this way.

Start address and End address Sets the area in which


the test is to be performed – this area must be configured
to the target hardware.

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.

Page 22 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

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 linesTests 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:

Error in data line D3. The D3 line is always "low".


Potential causes:
Line break
Short circuit with 0V
Short circuit with other signal line

Error in data line D13. The D3 line is always "high".


Potential causes:
 Line break
 Short circuit with +Ub
 Short circuit with other signal line

Short circuit between lines D8 and D9

Page 23 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Error in high byte. This indicates a problem with the


control line or the bus mode.
(/BHE, /WR, /CS).

Short circuit between A6 and A5. The information on the


address line refers to the memory module.

Not tested
Only address lines within the specified address space are
tested.

Note: Depending on the bus system, A0 of the memory is


connected to A0 or A1 of the CPU.

Logical error in address line A6. The address line is


always "high" or "low".

The memory is less than indicated. The memory content


repeats itself starting at address 0x0060000.
The memory area is located between 4000 and 5FFF.

Page 24 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4.7 Saving the Debug Log File


FLASHit logs "debug info" during the course of a session.
If an error occurs, the log data are automatically saved in
the debugmemo.txt file when you quit FLASHit.
If you click Save debug logfile as from the Special
Function menu, the logged data will be saved in the
directory of your choosing (for cases where no errors
occur). This log file is used to perform a precise error
analysis.

4.8 Generating a Software Reset


This option is a software command (SRST) that can be
used to generate a reset in the target system.

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.

4.9 Generating a Hardware Reset


When the Generate hardware reset... option is selected,
FLASHit will generate a "bootstrap signal" on the DTR
line of the COM interface and a "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).

The form of the reset impulse can be adjusted in the


Hardware Reset dialog.
The settings you make here do not affect the automatic
reset mechanism of FLASHit.

Page 25 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4.10 Command Line Functions


The functionality of FLASHit can be controlled externally by means of command line parameters (scripts). Note that
these parameters are upper and lower case sensitive! The CmdLine tool (see 6.4 Command Line Generator
CmdLine) can be used automatically generate the appropriate scripts. Command lines allow you to access and
control FLASHit from a separate application with or without the desktop user interface.

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:

c:\programme\flashit.exe COM=1 BAUD=57600 HEX-FILE=e:\projekt\out.hex AUTOSTART EXIT

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.

Note: Chapter 7.2 provides an overview of the command line functions.

4.11 Priorities in the FLASHit Configuration


All the parameters you set (e.g., baud rate, COM port, etc.) in FLASHit are stored in the flashit.ini file.
Each valid FLASHit parameter (Actual-Config) is
composed of:
- the "old data" from the flashit.ini file.
(Old-Config)
- any "parameters" that are transferred when FLASHit
starts up, for example, from another program
(Command-Line-Config). These parameters have
priority over the parameters saved in the flashit.ini
file.
- the settings made by FLASHit directly on the desktop
(Desktop-Config); these settings have priority over all
other parameters.

4.12 Saving the Configuration


Select Save configuration to save all the settings you
have made.
Select Open configuration... to load the settings.

Page 26 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

4.13 Software Generator


To test the Upload function of the destination hardware with FLASHit, the possibility exists to save and run a test
program generated by FLASHit. FLASHit determines the necessary data for generating of the code (e.g., the
system initialization) automatically. The settings which made e.g., in the menu: Config/Target system/Flash
memory: Externally/OnChip (external or internal FLASH memories) will be assumed. The Software Generator
can be called via file/software generator...

The generated test program contains following functions:


- Initialization of the Target.

- Cyclic sending of a message via RS232


The baud rate becomes from the default which was made
in setup/baudrate assumed (here it is 57600 8n1).
In the range of Test output via terminal program the
TxD pin can be set by the use of the XE166 or XC2200
family. Otherwise this is firmly given (P3.10).
In the input window Message send via RS232 from
target the text to be sent can be set individually. The text
is complemented by a Sufix (0-99) and a CR+LF.

Output of a rectangle signal


In the range Clock pulses via port pin a rectangle
frequency ca be set, e.g., to the control of a LED.

With the parameter Loop speed the loop frequency of


the generated program is set.

The generated program can be saved in the working directory under demo files with save as and can be saved
about the Upload function of FLASHit in the Target.

After the shift from the bootstrap mode into the run mode and after a reset the program starts in the target.

Page 27 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

5 The FLASHit Package


The tools described below are part of the FLASHit package and represent stand-alone programs that can be
loaded externally or directly in FLASHit.

5.1 RS232 Terminal


The RS232 terminal is a universal terminal program for
logging data sent by the application on the target system
via the RS232 interface.

Note: RS232 terminal can be launched either separately


or in FLASHit.

You can start all of the standard functions in the File


menu.

You can set the display mode in the Display menu.

Hex format: All data are displayed in the hex


format.

ASCII format: All data are displayed in the ASCII


format.

Hex+ASCII format: All data are displayed in


the ASCII and hex formats.

Transmit: In the Transmit list box you can select the


string you want to send. Click the Transmit button to
send the string via the RS232 interface.

Tx window: Click the TX window button to open a


window where any text you enter will be sent "live" via the
RS232 interface.

Page 28 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Click Clear Rx-Window to erase all data in the receive


window.

You can set the COM connection mode in the


Connected menu.

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.

Line feed at CR: Line feed at a carriage


return.
Line feed at LF: Line feed at a line feed.
Line feed at traffic break: Line feed when data are
absent

Add CR: Adds a carriage return to


the sent text.
Add LF: Adds a line feed to the
sent text.
Add CR+LF: Adds a carriage return
and a line feed to the
sent text.
Add none: Does not add a carriage
return or a line feed to
the sent text.

You can configure the standard COM port settings in the


Setup menu.

Target Reset via Terminal


The Control target menu can be used to generate a
hardware reset of the target system. Before this can be
done, however, the relevant connections of the RS232
interface must be wired based on the circuit suggestion
(see Appendix 7.6, Reset and Bootstrap Interface).

Page 29 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

5.2 Checksum Builder


The checksum builder is a universal program for calculating the checksum of a hex file.

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.

Note: The checksum builder can only be launched


externally.

You can control the Checksum Builder using command


line parameters.
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.

Hex-File = j:\hexfiles\128kRandom.hex A result file (Result_CRC.txt) will be created when


CRC16 = 0x51EF you exit the checksum builder. The file is located at
ADD32 = 0x00EDFE42l C:\Doku..Einstellungen\All
Error Code = 000 users\Anwendungsdaten\Flashit
Start-Adr = 0x000000
BegInt-Adr = 0x00E000 in Windows XP and C:\PrgramData\FLASHit in
EndInt-Adr = 0x00FFFF Windows Vista.
End-Adr = 0x01FFFF

Example of Result_CRC.txt

The checksum builder sends a return code back to the


Error code Meaning
0 Error-free execution.
calling program. The return code is divided into two
14 Unable to read file. areas: the CRC17 checksum (Bit 0..15) and the error
36 The size of the flash module is unknown. code (Bit 16..31).
171 The file contains data outside of flash.
175 File not found

Page 30 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

5.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.

Note: IO check can be launched either separately or in FLASHit.

When the IO check function is executed, all installed


COM parts will be checked to determine whether access
via the Windows API function (API=Application
Programming Interface) is possible. Afterwards the direct
access to the PIO module (PIO mode) will be checked.
IO check shows which COM ports can be used in
FLASHit.
FLASHit can only use COM ports that are accessible via
the API.
IO check also lets you manually enable and disable
individual port lines and test the LPT1port.

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).

Example for line test log:


COM1: Start Loop Test (API mode)
TxD -> RxD Loop ok. Delay = 1.6 ms
DTR -> DSR Loop ok. Delay = 5.6 ms
DTR -> DCD Loop ok. Delay = 0.9 ms
RTS -> CTS Loop ok. Delay = 4.4 ms
RTS -> Ri Loop ok. Delay = 0.5 ms

The specified times are approximate values and depend


on the speed of your computer. Signal times can be
significantly longer with COM ports that are operated
using a USB interface adaptor.

Page 31 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Manual check of port lines


- signals (input)
The colors of the symbol indicate the logical level. This
means the logical level of "1" can range from approx.
+5 V to approx. +12 V depending on the computer model.
The corresponding negative level: approx. –5 V to
approx. –12 V.

- 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)!

Control Lines of the Printer Connection


The control lines of the first default printer (address 0x378) can be modified and monitored manually.

WARNING: Any modification to the outputs may result in the destruction of hardware (PC and/or externally
connected devices)!

Page 32 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

5.4 Command Line Generator (CmdLine)


To facilitate the use of command line functions in FLASHit, the CmdLine program is included on the CD and can
be used to automatically generate
- a command line and an ICON
- a C source code (for access from a separate application)

Note: The CmdLine can only be launched externally.

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.

This button lets you access FLASHit from a Borland C code.

Page 33 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

FLASHit returns the "return code" which is then displayed by CmdLine.

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!

"We hope your work is a success"

The hse-electronics Team

Page 34 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6 Appendix

6.1 Error Messages

Code Ret Meldung Beschreibung Mögliche Lösung


File, Modul, Lib... Nicht gefunden/geöffnet
E010 8 E010: Can't find file: *.mod Installation nicht vollständig. Bootloader konnte nicht gefunden werden (flashit.lib fehlt...) Installation überprüfen
E011 8 E011: Modul file <name> was not found Die Moduldatei <name> wurde nicht gefunden Installation überprüfen
E014 1 E014: Can't open upload file Der Upload file konnte nicht geöffnet werden Zugriffsrechte für Upload-file überprüfen.
E015 8 E015: No FLASH data found Es ist kein virtuelles Flash vorhanden, somit fehlen Daten zum Flashen. Flashtyp überprüfen
E016 E016: Can't generate Binray-Temp-File Temporäre Datei readout.bin konnte nicht erstellt werden.
E017 E017: Can't open Binray-Temp-File Temporäre Datei readout.bin konnte nicht geöffnet werden.
E018 E018: Can't generate Binray-File Binäre-Ziel-Datei konnte nicht geöffnet werden kann
E019 E019: Can't generate Intel-hex-file Intel-Hex-Ziel-Datei konnte nicht geöffnet werden
E020 8 E020: Library unit not found Flashit.lib ist nicht gefunden worden oder konnte nicht geöffnet werden. Installation überprüfen
E021 E021: Exe not found Flashit.exe wurde nicht gefunden Installation überprüfen
E022 E022: Wrong exe info Flashit.exe wurde manipuliert Installation überprüfen
E023 E023: Wrong in flashitx.lib Die Target Bibliothek wurde nicht gefunden Installation überprüfen
E024 E024: Instruction file not found Die Datei doku/Anleitung.pdf fehlt
E025 E025: Data base FLASHdat.LIB not found Die Datei FlashDat.lib wurde nicht gefunden Installation überprüfen
E026 E026: Ini-File is write protected Die Ini-Datei ist schreibgeschützt und kann daher nicht aktualisiert werden

Innerhalb des Programmablaufes


E030 8 E030: Modul-file <name> is too big! Ein Module ist zu gross hse kontaktieren
E031 8 E031: No memory for FlashLib Kein dynaischer Speicher verfügbar um Flashdat.lib zu laden Andere Programme beenden, PC neu starten
E032 8 E032: Not enough memory Kin Speicher für das virtuelles Flash vom Betriebssystem zu bekommen Andere Programme beenden, PC neu starten
E033 1 E033: Error in Hex-File: Line is too long! Aktuelle Zeile im Intel-Hex-File ist zu lang (>199) Zeichen Hex-Format überprüfen
E034 1 E034: Wrong file format. Function abort Unbekanntes Datenformat der Hex-Datei Intel-Hex-Format verwenden
E035 8 E035: Write mode n unknown Flash-Write-Methode unbekannt hse
E036 1 E036: Size of FLASH is unknown. Abort Grösse des Flashes kann nicht bestimmt werden. Z.B. weil FLASH nicht erkannt wurde. hse
E038 6 E038: Can't write User-Serial-Number [..] at log. address ... User-Serial-Number konnte nicht an die vorgegebene Adresse geschrieben werden. Adressangabe überprüfen
E039 1 E039: Mirror address is unknown Folgefehler, wenn Flash size falsch ist. Fängt /0 ab hse

Not supported
E040 8 E040: Sorry this CPU is not enabled at your version CPU nicht freigeschaltet (nur bei limitierten Versionen) keine
Page 35 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

E042 E042: Internal error call hse Interner Fehler. (Lizenz kopie) hse / Lizenz auf anderem PC
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

Datenformat Bedingte Fehler

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

Target bedingte Fehler


E100 2 E100: Target not reset or no response! Das Target-System meldet sich nicht Verbindung zum Target überprüfen
Target überprüfen, ST10 und FLASHit steht
E101 2 E101: Can't load modul Es hat einen Fehler beim Laden eines Moduls ins Target gegeben auf extern Bus, hat den aber nicht
E102 2 E102: Booting was not possible %d Target konnte nicht gebootet werden Boostrap Modus beim Target aktivieren
E103 2 E103: No correct answer from target Das Target antwortet nicht korrekt. Baudrate, Verbindung überprüfen
E104 2 E104: Communication with target failed SDA6000 ist eingestellt, das Taget meldet aber andere CPU-Kennung. Configuration -> Busmode auf Autodetect unschalten
E109 2 E109: Target-bus length unknown! Der Busbreite des Target-Systemes konnte nicht erkannt werden
E110 2 E110: Target crashed -rebooting... Target ist beim Sektor-Löschen abgestürtzt und wird neu gestartet. Target Reseten
E111 2 E111: No response from target Target antwortet nicht oder nicht richtig Verbindung zum Target überprüfen

Externe Adress- oder Datendecoder vorhanden?


E113 2 E113: Can't analyse contents of target FLASH Die Analyse des Inhaltes des Target Flashes war nicht möglich. Busmode auf Userdefined einstellen
E114 2 E114: Can't load buffer Ein Bufferinhalt konnte nicht ins Target geladen werden Verbindung zum Target überprüfen
Externe Adress- oder Datendecoder vorhanden?
E116 3 E116: FLASH-Read-Test failt Der Flash-Lese-Test ergab ein ungültiges Ergebnis Busmode auf Userdefined einstellen
E117 7 E117: CRC Compare Error Flash- und File-CRC stimmen nicht überein

Flash bedingte Fehler

Page 36 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Wenn der Fehler wiederholt bei der gleichen


E130 6 E130: Timeout while writing FLASH! Fehler beim Schreiben des Flashbausteines: Timeout Adresse auftritt, Hardware überprüfen.
Wenn der Fehler wiederholt bei der gleichen
E131 6 E131: While writing FLASH (DQ7) Fehler beim Schreiben: Flashbaustein meldet Fehler Adresse auftritt, Hardware überprüfen.
Wenn der Fehler wiederholt bei der gleichen
E132 6 E132: No. %d in modul Write_Buffer! Fehler beim Schreiben: Flash meldet Fehler n Adresse auftritt, Hardware überprüfen.
Wenn der Fehler wiederholt bei der gleichen
E133 6 E133: No acknowledge while writing FLASH! Fehler beim Schreiben: es kommt keine Antwort von Target Adresse auftritt, Hardware überprüfen.
Wenn der Fehler wiederholt bei der gleichen
E134 6 E134: Abort at Adr. %08lXh, while Timeout-Error! Abbruch des Schreiben des Flashbausteines an Adresse x wegen Timeout Adresse auftritt, Hardware überprüfen.
Wenn der Fehler wiederholt bei der gleichen
E135 6 E135: Abort at Adr. %08lXh, Error%d! Abbruch des Schreiben des Flashbausteines an Adresse x wegen Fehler n Adresse auftritt, Hardware überprüfen.
E136 E136: Erase mode (Chip/Sector) unknown Löschmethode unbekannt Einstellung (Sektor-Chip-Erase) prüfen
E137 1 E137: Wrong page size Blocklänge nicht zulässig
E138 6 E138: Flash type is not found Brennen nicht moeglich
E140 5 E140: FLASH-Erase abort while timeout! Fehler beim Löschen des Flashbausteines: Timeout Löschvorgang wiederholen
E141 5 E141: Sector-Erase failt! Es trat ein Fehler beim Löschen des Flashes auf Löschvorgang wiederholen
E142 5 E142: Sector-Erase abort while timeout! Es trat der Fehler Timeout beim Löschen des Flashes auf Löschvorgang wiederholen
E145 5 E145: FLASH-Erase abort after x s from flash Das Flash hat nach x Sekunden einen Fehler erkannt Löschvorgang wiederholen
E146 5 E146: Chip-Erase not possible Diese CPU kennt kein Chip-Erase
E150 7 E150: Checksum compare error Vorgegebene Checksumme stimmt nicht mit Flashinhalt ueberein
E151 5 E151: Internal flash is not supported Dieses interne Flash wird nicht unterstützt

Eingabe Fehler des Anwenders


E170 8 E170: Odd address is not possible Ungerade Adresseingabe ist nicht erlaubt
E171 8 E171: Address combination is not possible (A1>A4) Adresskombination nicht erlaubt
E172 8 E172: Command line: Pfad to hex-file does not exist Die Datei die in der Kommandozeile angegeben wurde ist nicht vorhanden
E173 8 E173: Address combination is not possible A(n)>A(n+1) Adresskombination nicht erlaubt
E174 8 E174: Input format of CRC Compare value is wrong Die Eingabe des CRC Vergleichswertes ist im falschen Format (zuviel/zuwenig Zeichen)
E175 1 E175: Hexfile not found Bei "return allways" hexfile nicht gefunden
E176 8 E176: Do not mapp ROM1 to seg 1 SYSCON.15 = 0 setzten, oder auto
E177 8 E177: Command line: Pfad to RAM-file does not exist Die Datei die in der Kommandozeile angegeben wurde ist nicht vorhanden

E200 4 E200: sizeof(FLASHdat.LIB) too big


E201 E201: Hex-Download Abort, lost Sync Beim Auslesen des Flashes ist ein Fehler aufgetreten Andere Programme beenden
E202: 8 E202: Lenght too high Bei StrPCopy() ist die Source zu lang
E210 4 E210: Helpfile not found Externe Hilfedatei wurde nicht gefunden

Page 37 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

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

Page 38 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.2 Overview of Command Line Functions


Commands Adjustments Examples
Description Beschreibung
Befehle Einstellungen Beispiele

Project

Starts FLASHit with project FLASHit mit Projekteinstellungen INI_FILE=c:\demo.ini


INI_FILE
file (*.ini). (*.ini) starten INI_FILE="c\program files\test.ini"

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

TARGET Defines Target-System Definiert das Target-System C16x = 1; XC16x=6 TARGET=1

Umschaltung automatischer und manueller


BUSMODE Defines busmode (autodetect/userdefined) 0x00000 - 0x0FFFF BUSMODE=userdefined
Busmode Erkennung
SYSCON Defines SFR SYSCON Definiert SFR SYSCON 0x00000 - 0x0FFFF SYSCON=0x0094
BUSCON0 Defines SFR BUSCON0 DefiniertSFR BUSCON1 0x00000 - 0x0FFFF BUSCON0=0x0687
BUSCON1 Defines SFR BUSCON1 DefiniertSFR BUSCON1 0x00000 - 0x0FFFF BUSCON1=0x04ED
BUSCON2 Defines SFR BUSCON2 Definiert SFR BUSCON2 0x00000 - 0x0FFFF BUSCON2=0x04ED
BUSCON3 Defines SFR BUSCON3 Definiert SFR BUSCON3 0x00000 - 0x0FFFF BUSCON3=0x04ED
BUSCON4 Defines SFR BUSCON4 Definiert SFR BUSCON4 0x00000 - 0x0FFFF BUSCON4=0x04ED
ADDRSEL1 Defines SFR ADDRSEL1 DefiniertSFR ADDRSEL1 0x00000 - 0x0FFFF ADDRSEL1=0x0406
ADDRSEL2 Defines SFR ADDRSEL2 DefiniertSFR ADDRSEL2 0x00000 - 0x0FFFF ADDRSEL2=0x0504
ADDRSEL3 Defines SFR ADDRSEL3 DefiniertSFR ADDRSEL3 0x00000 - 0x0FFFF ADDRSEL3=0x0601
ADDRSEL4 Defines SFR ADDRSEL4 DefiniertSFR ADDRSEL4 0x00000 - 0x0FFFF ADDRSEL4=0x0801
EBCMOD0 Defines SFR EBCMOD0 0x00000 - 0x0FFFF EBCMOD0=0x4024
EBCMOD1 Defines SFR EBCMOD1 0x00000 - 0x0FFFF EBCMOD0=0x0000
TCONCS0 Defines SFR TCONCS0 Definiert SFR TCONCS0 0x00000 - 0x0FFFF TCONCS0=0x7A40
TCONCS1 Defines SFR TCONCS1 Definiert SFR TCONCS1 0x00000 - 0x0FFFF TCONCS1=0x0407
TCONCS2 Defines SFR TCONCS2 Definiert SFR TCONCS2 0x00000 - 0x0FFFF TCONCS2=0x0000
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

Page 39 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

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

<Access> 0=bit, 1= SFR-Bit,


2=SFR-Byte,
"SETREGMEM1
3=SFR-Word, 4=ESFR-Byte,
<Access>,
Sets SFR or a memory cell Definiert ein SFR oder Speicherzelle 5=ESFR-Word, SETREGMEM1=2,0xFFC2,0x1
<Adress>,
6=MEM-Byte, 7=MEM-Word
<Value>"
<Adress> 0x0 - 0xFFFFFF
<Value> 0x0 - 0xFFFF

SETREGMEM2 " " " SETREGMEM1=2,0xFFC0,0x1


Flash Upload
FILTER Defines filter for file view Definiert den Filter für die Hexfile-Anzeige *.xxx FILTER=*.H66
Pfad-Angabe zum Hexfile, der zum Brennen HEX-FILE=c:\new\out.hex
HEX-FILE Defines a path and file name for upload Fullpath
verwendet werden HEX-FILE="c:\new 1\out.hex"
Pfad-Angabe zum Binary-File, der zum HEX-FILE=c:\new\out.bin
BIN-FILE Defines a path and file name for upload Fullpath
Brennen verwendet werden HEX-FILE="c:\new 1\out.jpg"

Page 40 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Angabe der Adresse, ab der die Daten aus


BIN-OFFSET Load Bin-File with offset into Flash BIN-OFFSET=0x080000
dem Biary file ins Flash geschrieben werden
FILELOAD Loading mode (bin/intel-Hex) Datei Lademethode BIN, HEX FILELOAD=HEX

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

0 = Hexfile base address


RAM-UPBASE Set offset source Gibt die Quelle der Offset adresse an RAM-UPBASE=1
1 = User defines

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

Controls Program sequency, listed number 1, 2, 3a, 3b, 4, 5a,


SEQUENCE Einschalten der Programm-Schritte (Sequnez). SEQUENCE=1,2,6,8
will be enabled. 5b, 5c, 6, 7, 8

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

Page 41 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

CMPCHK Compares Checksum with value Definiert den Vergleichswert der Prüfsumme 0x000000 - 0xFFFFFF CMPCHK=0x0023456
Generates a software reset after successful Definiert die Reset-Methode
SOFTRESET SOFTRESET
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

Page 42 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.3 Supported Controllers (excerpt):


C166
C161, C161CI, C161CS, C161JC, C161JS, C161O, C161RI, C161U, C161PI (Infineon)
C163, C163-16F (Infineon)
C164, C164CI, C164CM, C164SM, C164CH (Infineon)
C165, C165H, C165LM, C165UTAH (Infineon)
C167, C167CR, C167CS, C167CS-32F, C167CS-L40M (Infineon)

XC166
XC161, XC161CJ-16F , XC161CS-32F (Infineon)
XC164, XC164CS-16F , XC164CS-32F , XC164CM (Infineon)
XC167, XC167CI-16F, XC167CI-32F (Infineon)

XC2200
XC2287, XC2287-96F, XC2287-72F, XC2287-56F (Infineon)
XC2286, XC2286-96F, XC2286-72F, XC2286-56F (Infineon)
XC2285, XC2285-96F, XC2285-72F, XC2285-56F (Infineon)
XC2267, XC2267-96F, XC2267-72F, XC2267-56F (Infineon)
XC2264, XC2264-96F, XC2264-72F, XC2264-56F (Infineon)

XE166
XE167, XE167F-xxF66L, XE167G-xxF66L, XE167H-xxF66L, XE167K-xxF66L (Infineon)
XE164, XE164F-xxF66L, XE164G-xxF66L, XE164H-xxF66L, XE164K-xxF66L (Infineon)

ST10
ST10F163, ST10R167, ST10F167, ST10F168, ST10F169 (STMicroelectronics)
ST10F269, ST10R272, ST10F276, ST10F280 (STMicroelectronics)
ST10F271, ST10F272, ST10F273 (STMicroelectronics)

SDA6000
SDA6000, M2 (Micronas) (Supported only by FLASHit 8.x)
SDA6001 (Micronas) (Supported only by FLASHit 8.x)

Page 43 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.4 Sources of Checksum Function


ADD32 (Add Bytes)
//----------------------------------------------------------------------------------------
--
unsigned int ChecksumADD32( unsigned long ulA1, unsigned long ulA2, unsigned long ulA3,
unsigned long ulA4 )
{
unsigned int uiChecksumADD32 = 0;
unsigned long ulAddress;

// 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 );
}

CRC16 (Cyclic Redundancy Check)


//------------------------------------------------------------------------------------
unsigned int ChecksumCRC16(unsigned long ulA1, unsigned long ulA2, unsigned long ulA3,
unsigned long ulA4 )
{
unsigned int uiCRC6 = 0;
unsigned char ucData;

for (ulAddress = ulA1; ulAddress <= ulA4; ulAddress++)


{
// Check for switch address to jump over system area
if ( ulAddress == ulA2 ) ulAddress = ulA3 + 1;
ucData = *(volatile huge unsigned char*) ulAddress;

// Checksum function
for (i=0; i<8; i++)
{
if ((uiCRC6 ^ ucData) & 1) uiCRC6=(uiCRC6>>1)^0xA001;
else uiCRC6 >>=1;
ucData >>=1;
}
}
return( uiCRC6 );
}

Page 44 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.5 Reset and Bootstrap Signals

Reset and bootstrap signal on the COM interface Signal based on circuit in 7.6

6.6 Reset and Bootstrap Interface

Basic circuit, makes your hardware


compatible with the reset concept used by
FLASHit.

The reset and bootstrap interface can


be purchased from hse-electronics and
comes preassembled.

Page 45 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.7 FLASH Connection Types


Selection of FLASHit-supported connection methods for connecting flash memory to a processor.
*16-bit data bus
/CS0
1. Standard
16 bit Flash A0...An CPU 16-bit data bus (mux/non mux) – chip select line
16 bit BUS
generated by the CPU.

/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
A0...An
CPU Despite the external address decoder, access with
16 bit BUS FLASHit is possible if the FLASH memory is located at
output Y0 and the address space to 0xAAAA is
addressed.

/WRL
/CS0
8 bit Flash A0..An 4. Two 8-bit FLASH memory chips on 16-bit bus
D0...7
Chip select 0 of the CPU selects two memory chips.
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


/CS0
16 bit Flash
A0..An
Two 16-bit FLASH memory chips are used in 8-bit
im 8 bit Mode

D0...7
mode. Chip select 0 of the CPU selects two modules.
CPU Writing is enabled by the write high byte und write low
/WRH
byte.
16 bit Flash
im 8 bit Mode 16 bit BUS
D8...15

/WR
/CS0
7. Two 16-bit FLASH memory chips on 16-bit bus
16 bit Flash
im 8 bit Mode
A0..An Two 16-bit FLASH memory chips are used in 8-bit
D0...7 mode. Chip select 0 of the CPU selects two memory
CPU chips. Writing is enabled by the write word.
/WR

16 bit Flash
im 8 bit Mode 16 bit BUS
D8...15

Page 46 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

8-Bit Data Bus


/CS0
1. Standard
8 bit Flash A0...An CPU 8-bit data bus (mux/non mux) – chip select line
8 bit BUS
generated by the CPU.

/CS0 GND
2. Flash memory is the only extension
The chip select line of the flash is grounded). The chip
8 bit Flash A0...An CPU
select line of the CPU can therefore be used as a
8 bit BUS
higher address line.

Yo
/CS0 Decoder
3. External address decoder
8 bit Flash A0...An CPU
Despite the external address decoder, access with
8 bit BUS FLASHit is possible if the FLASH memory is located at
output Y0 and the address space to 0xAAAA is
addressed.
/CS0

16 bit Flash
A0...An CPU
im 8 bit Mode

8 bit BUS
4. An 8/16-bit FLASH memory on 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!

Page 47 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.8 Supported FLASH Memory (excerpt)


A current list can be found on our website.

Producer Name Producer Name Producer Name


Actrans AC39LV010 AMIC A29001B/29011B Hynix HY29F080
Actrans AC39LV080 AMIC A29001T/29011T Hynix HY29F800B
Actrans AC39LV800 AMIC A29010 Hynix HY29F800T
Actrans AC29LV400B AMIC A29800B Hynix HY29F002B
Actrans AC29LV400T AMIC A29800T Hynix HY29F002T
Alliance AS29LV800B AMIC A29L008B/800B Hynix HY29DL162B
Alliance AS29LV800T AMIC A29L008T/800T Hynix HY29DL162T
Alliance AS29F002B AMIC A29002B/0021B Hynix HY29DL163B
Alliance AS29F002T AMIC A29002T/0021T Hynix HY29DL163T
AMD Am29BL162C AMIC A29L160B Hynix HY29DS162B
AMD Am29DL400BT AMIC A29L160T Hynix HY29DS162T
AMD Am29DL400BB AMIC A29040 Hynix HY29DS163B
AMD Am29F010B AMIC A29400B Hynix HY29DS163T
AMD Am29F400BT AMIC A29400T Hynix HY29LV160B
AMD Am29DL163xT AMIC A29L004B/400B Hynix HY29LV160T
AMD Am29DL163xB AMIC A29L004T/400T Hynix HY29F040A
AMD Am29DL162xT AMIC A29L040 Hynix HY29F400B
AMD Am29DL162xB ATMEL AT29C010A Hynix HY29F400T
AMD Am29DL164xT ATMEL AT29C1024 IMT IMT29F001B
AMD Am29F002BB/NBB ATMEL AT49BV001A/F001A IMT IMT29F001T
AMD Am29DL164xB ATMEL AT49BV001AT/F001AT IMT IMT29LV001B
AMD Am29DL161xT ATMEL AT49BV010A/LV010A IMT IMT29LV001T
AMD Am29LV008BB ATMEL AT49BV1024A/F1024/F1025 IMT IMT29F002B
AMD Am29LV081B ATMEL AT49F010 IMT IMT29F002T
AMD Am29DL161xB ATMEL AT49F008A IMT IMT29F004B
AMD Am29LV200BT ATMEL AT49F008AT IMT IMT29F004B
AMD Am29F017D ATMEL AT49F080 IMT IMT29F004T
AMD Am29LV008BT ATMEL AT49F080T IMT IMT29F004T
AMD Am29LV002BT ATMEL AT49F8011 Intel PA28F400BxT
AMD Am29F032B ATMEL AT49F8011T Infineon XC164
AMD Am29PL160C ATMEL AT49F8192A Infineon XC161, XC167-16F
AMD Am29LV160xB, S29AL016xxxxx02x ATMEL AT49F8192AT Infineon XC164-16F
AMD AM29DL800(B)B ATMEL AT49BV802A Infineon XC161, XC167-32F
AMD Am29LV116DB ATMEL AT49BV802AT Macronix MX29F001B
AMD Am29LV040B ATMEL AT29C020 Macronix MX29F001T
AMD Am29DL323xT, S29JL032Hxxxx31x ATMEL AT49BV002A Macronix MX29F100B
AMD Am29F200BT ATMEL AT49BV002AT Macronix MX29F100T
AMD Am29DL323xB, S29JL032Hxxxx32x ATMEL AT49BV020/LV020 Macronix MX29F080
AMD Am29DL322xT, S29JL032Hxxxx21x ATMEL AT49F020 Macronix MX29F800B
AMD Am29DL322xB, S29JL032Hxxxx22x ATMEL AT49F2048 Macronix MX29F800T
AMD Am29F200BB ATMEL AT49LV002/BV002/F002 Macronix MX29LV008(B)B
AMD Am29F800B ATMEL AT49LV002T/BV002T/F002T Macronix MX29LV008(B)T
AMD Am29LV800BB/DB, S29AL008Dxxxx2x ATMEL AT49BV160C Macronix MX29LV081
AMD Am29DL324xT, S29JL032Hxxxx41x ATMEL AT49BV160CT/162AT Macronix MX29LV800(B)B
AMD Am29DL324xB, S29JL032Hxxxx42x ATMEL AT49BV162A Macronix MX29LV800(B)T
AMD Am29LV001BB ATMEL AT29C256 Macronix MX29F002B
AMD Am29LV010B ATMEL AT29C257 Macronix MX29F002T
AMD Am29F004BT ATMEL AT29LV256 Macronix MX29F022B
AMD Am29F004BB ATMEL AT49BV320C Macronix MX29F022T
AMD Am29DL640x, S29xL064x ATMEL AT49BV320CT Macronix MX29F200B
AMD Am29PL320DB ATMEL AT49BV322A/D Macronix MX29F200T
AMD Am29PL320DT ATMEL AT49BV322AT/DT Macronix MX29F016
AMD Am29BDS640GT ATMEL AT29C040A Macronix MX29F1610A
AMD Am29BDD160GT ATMEL AT29LV040A Macronix MX29F1615
Page 48 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

AMD Am29BDD160GB ATMEL AT49BV040A Macronix MX29LV017B


AMD S29CD032G ATMEL AT49BV4096/LV4096 Macronix MX29LV160BB
AMD S29JL032Hxxxx00x ATMEL AT49F040 Macronix MX29LV160BT
AMD S29JL032Hxxxx01x ATMEL AT49F040T Macronix MX29LV033A
AMD Am29LV640MH/L, S29GL064MxxxxR1/R2/R8/R9 ATMEL AT49F4096 Macronix MX29LV320AB
AMD Am29PDL128G ATMEL AT29C512 Macronix MX29LV320AT
AMD Am29LV640xB, S29GL064MxxxxR4 ATMEL AT29LV512 Macronix MX29F004B
AMD Am29LV640xT, S29GL064MxxxxR3 ATMEL AT49BV512/F512 Macronix MX29F004T
AMD Am29LV1282M, S29GL128M ATMEL AT49BV6416 Macronix MX29F040
AMD Am29LV2562M, S29GL256M ATMEL AT49BV6416T Macronix MX29F400B
AMD Am29LV065MU, S29GL064MxxxxR0 BRIGHT BM29F040 Macronix MX29F400T
AMD Am29LV64xMU, S29GL064MxxxxR5 Eon EN29F010 Macronix MX29LV004B
AMD Am29BDS320GT Eon EN29LV010 Macronix MX29LV004T
AMD Am29BDS640GT Eon EN29F002AB Macronix MX29LV040
AMD Am29PDL640G Eon EN29F002AT Macronix MX29LV400B
AMD S29WS128H Eon EN29LV160B Macronix MX29LV400T
AMD Am29LV320xB, S29GL032MxxxxR4/R6 Eon EN29LV160T Macronix MX29LV065(B)
AMD Am29LV320xT, S29GL032MxxxxR3/R5 Eon EN29LV320T Macronix MX29LV640(B)B
AMD Am29LV033MU, S29GL032MxxxxR0 Eon EN29LV320B Macronix MX29LV640(B)T
AMD Am29LV320MH/L , S29GL032MxxxxR1/R2 Eon EN29F040 Macronix MX29LV640BU
AMD S29WS064H Eon EN29LV040 Megawin MM29LF040
AMD Am29PDL127H, S29PL127 Eon EN29LV400B PMC PM39F/LV010
AMD S29PL129J Eon EN29LV400T PMC PM39F020
AMD S29GL128N Eon EN29LV800B PMC PM39LV020
AMD Am29BDS320GT Eon EN29LV800T PMC PM49FL002
AMD S29GL256N Eon EN29F512 PMC PM39F040
AMD Am29BDS320GB Eon EN29LV512 PMC PM39LV040
Excel
AMD S29GL512N Semi ES29LV008BB PMC PM49FL004
Excel
AMD Am29BDS640GB Semi ES29LV008BT PMC PM39LV512
Excel
AMD S29WS256N Semi ES29LV160DB SST SST29EE010
Excel
AMD S29WS128N Semi ES29LV160DT SST SST29LE010/VE010
Excel
AMD S29WS64N Semi ES29LV320DT SST SST29SF010
Excel
AMD Am29BDS320GB Semi ES29LV320DB SST SST29VF010
Excel
AMD Am29BDS640GB Semi ES29LV400DB SST SST39LF/VF010
Excel
AMD S29CD016G Semi ES29LV400DT SST SST39LF/VF100
Excel
AMD Am29BL802C Semi ES29LV800DT SST SST39SF010
Excel
AMD Am29LV065D Semi ES29LV800DB SST SST39LF/LB080
Excel
AMD Am29LV033C Semi ES29DL320DT SST SST39VF800
Excel
AMD Am29F040B Semi ES29DL320DB SST SST29EE020
AMD Am29F400BB Fujitsu MBM29LV001BC SST SST29LE020/VE020
AMD Am29F016D Fujitsu MBM29LV001TC SST SST29SF020
AMD Am29F002BT/NBT Fujitsu MBM29QM96DF SST SST29VF020
AMD Am29LV004BT Fujitsu MBM29XL12DF SST SST39LF/VF020
AMD Am29LV004BB Fujitsu MBM29DL800BA SST SST39SF020
AMD AM29LV400xB Fujitsu MBM29DL800TA SST SST39VF200
AMD AM29LV400xT Fujitsu MBM29F080A SST SST39LF/LB016
AMD Am29LV200BB Fujitsu MBM29F800BA SST SST39VF160
AMD Am29LV002BB Fujitsu MBM29F800TA SST SST29SF040
AMD Am29LV160xT, S29AL016xxxxx01x Fujitsu MBM29LV008BA SST SST29VF040
AMD Am29LV116DT Fujitsu MBM29LV008TA SST SST39LF/VF040
AMD Am29LV017D Fujitsu MBM29LV080A SST SST39SF040
AMD AM29DL800(D)T Fujitsu MBM29LV800BA SST SST39VF400

Page 49 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

AMD Am29BDS323D Fujitsu MBM29LV800TA SST SST29EE512


AMD Am29F160DT Fujitsu MBM29F002BC SST SST29LE512/VE512
AMD Am29F080B Fujitsu MBM29F002TC SST SST29SF512
AMD Am29F800T Fujitsu MBM29F200BC SST SST29VF512
AMD Am29LV640GH/L Fujitsu MBM29F200TC SST SST39LF/VF512
AMD Am29F160DB Fujitsu MBM29LV002BC SST SST39SF512
AMD AM29F100T Fujitsu MBM29LV002TC ST M29F010B
AMD Am29LV800BT/DT, S29AL008Dxxxx1x Fujitsu MBM29LV200BC ST M29F100B
AMD AM29F100B Fujitsu MBM29LV200TC ST M29F100T
AMD Am29SL160CT Fujitsu MBM29DL161BD ST M29F102BB
AMD Am29SL160CB Fujitsu MBM29DL161TD ST M29W010B
AMD Am29LV001BT Fujitsu MBM29DL162BD ST M29W102BB
AMD Am29LV320DT Fujitsu MBM29DL162TD ST M29W102BT
AMD Am29LV320DB Fujitsu MBM29DL163BD ST M28W800BB
SyncMOS S29C51001B Fujitsu MBM29DL163TD ST M28W800BT
SyncMOS S29C51001T Fujitsu MBM29DL164BD ST M28W800CB
SyncMOS S29C51002B Fujitsu MBM29DL164TD ST M28W800CT
SyncMOS S29C51002T Fujitsu MBM29F016A ST M29F080D
SyncMOS S29C51004B/S29C31004B Fujitsu MBM29F017A ST M29F800DB
SyncMOS S29C51004T/S29C31004T Fujitsu MBM29F160BE ST M29F800DT
Toshiba TC58FVM7B2A Fujitsu MBM29F160TE ST M29W008AB
Toshiba TC58FVM7T2A Fujitsu MBM29LV016B ST M29W008AT
Toshiba TC58FVB160 Fujitsu MBM29LV016T ST M29W800DB
Toshiba TC58FVT160 Fujitsu MBM29LV017 ST M29W800DT
Toshiba TC58FVB321 Fujitsu MBM29LV160B ST M29F002B(N)B
Toshiba TC58FVM5B2A Fujitsu MBM29LV160T ST M29F002B(N)T
Toshiba TC58FVM5B3A Fujitsu MBM29PL160BD ST M29F200BB
Toshiba TC58FVM5T2A Fujitsu MBM29PL160TD ST M29F200BT
Toshiba TC58FVM5T3A Fujitsu MBM29DL321BD ST M29W022BB
Toshiba TC58FVT321 Fujitsu MBM29DL321TD ST M29W022BT
Toshiba TC58FVB641 Fujitsu MBM29DL322BE ST M29W200BB
Toshiba TC58FVM6T2A Fujitsu MBM29DL322TE ST M29W200BT
Toshiba TC58FVM6TBA Fujitsu MBM29DL323BE/MBM29DL34BF ST M28W160BB
Toshiba TC58FVT641 Fujitsu MBM29DL323TE ST M28W160BT
Winbond W29C011A Fujitsu MBM29DL324BE ST M28W160CB
Winbond W29C020C Fujitsu MBM29DL324TE ST M28W160CT
Winbond W29C040 Fujitsu MBM29DL32BF ST M29F016D
Winbond W29C512A Fujitsu MBM29DL32TF ST M29W160DB
Fujitsu MBM29DL34TF ST M29W160DT
Fujitsu MBM29F033C ST M59PW016
Fujitsu MBM29LV320BE ST M28W320(E)CB
Fujitsu MBM29LV320TE ST M28W320(E)CT
Fujitsu MBM29PL3200BE ST M28W320EBB
Fujitsu MBM29PL3200TE ST M28W320EBT
Fujitsu MBM29DL400BC ST M29DW323DB
Fujitsu MBM29DL400TC ST M29DW323DT
Fujitsu MBM29F004BC ST M29DW324DB
Fujitsu MBM29F004TC ST M29DW324DT
Fujitsu MBM29F040C ST M29F032D
Fujitsu MBM29F400BC ST M29W320DB
Fujitsu MBM29F400TC ST M29W320DT
Fujitsu MBM29LV004BC ST M59PW032
Fujitsu MBM29LV004TC ST M29F040B
Fujitsu MBM29LV400BC ST M29F400BB
Fujitsu MBM29LV400TC ST M29F400BT
Fujitsu MBM29DL640E/MBM29DL64DF ST M29W004BB
Fujitsu MBM29LV650UE ST M29W004BT
Fujitsu MBM29LV651UE ST M29W040B
Fujitsu MBM29LV652UE ST M29W400BB

Page 50 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

Fujitsu MBM29PL64LM ST M29W400BT


Fujitsu MBM29PL65LM ST M29W640FT
ST M29W640FB
ST M29W512B
ST ST10F168
ST ST10F269
ST ST10F276, ST10F273E
ST ST10F273M
ST ST10F280
ST M28W640ECT
ST M29DW640D
ST M29W640GT
ST M29W640GB
ST M29W640GH
ST M29W640GL
ST M29DW128F
ST M29W640DB
ST M29W640DT
ST M59PW064

Subject to change!
No guarantee of completeness!

Page 51 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

6.9 Operating conditions

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
7 without defects if used properly for a period of 6 months after delivery.

CLAIMS of the customer:


At the discretion of hse-electronics, the entire liability of hse-electronics and your sole claim
shall involve either
a) a refund of the paid price or
b) subsequent improvement or product placement.
This limited warranty does not apply if the failure of the product can be attributed to an
accident or improper use.

NO additional warranty:
hse-electronics excludes any additional warranty claims related to the delivered product and
associated manuals and written materials.

NO liability for consequential damage:


Neither hse-electronics nor the suppliers of hse-electronics are liable to pay compensation
(included but not limited to damages for loss of profit, service interruption, loss of business
information or data or any other financial loss) arising from the use of this hse-electronics
product even if hse-electronics has been notified of the possibility of such damages.

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.

Page 52 2016-11-e-flashit-manual01.docx
FLASHit 9-Manual

7 hse-elctronics product: HEXit the HEX-File Analysis-Tool

Page 53 2016-11-e-flashit-manual01.docx

You might also like