F Mc-16Lx Family All 16Lx Series With Flash: 16-Bit Microcontroller
F Mc-16Lx Family All 16Lx Series With Flash: 16-Bit Microcontroller
MCU-AN-390031-E-V26
Application Note
F²MC-16LX FAMILY
16-BIT MICROCONTROLLER
ALL 16LX SERIES WITH FLASH
APPLICATION NOTE
PROGRAMMING FLASH MCU’S
Revision History
Revision History
Date Issue
01.08.1999 New Format, new updated version, Tka
17.12.1999 3.5 Program Code Download, MDx mode pin setting description changed, Tka
01.03.2000 MB90F497 added, MST
16.03.2000 Updated for new Flash500 programming software, Tka
17.01.2001 Schematic for serial programming changed, recommendation added to connect HST
directly to RST, Tka
17.04.2002 new series and Software Version included, MST
12.08.2002 Version. 2.0, New series added, typos corrected, MST
22.01.2004 Version 2.1
New series added: MB90340, MB90350, MB90455, MB90480, MB90860, MSt
Programming Times added, HWe
03.02.2004 Version 2.2
New series added: MB90890, MSt
1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in
accordance with the accompanying written materials for a period of 90 days form the date of
receipt by the customer. Concerning the hardware components of the Product, Fujitsu
Microelectronics Europe GmbH warrants that the Product will be free from defects in material
and workmanship under use and service as specified in the accompanying written materials
for a duration of 1 year from the date of receipt by the customer.
2. Should a Product turn out to be defect, Fujitsu Microelectronics Europe GmbH´s entire liability
and the customer’s exclusive remedy shall be, at Fujitsu Microelectronics Europe GmbH´s
sole discretion, either return of the purchase price and the license fee, or replacement of the
Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in
original packing and without further defects resulting from the customer’s use or the transport.
However, this warranty is excluded if the defect has resulted from an accident not attributable
to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the
customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH.
3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH
disclaims all other warranties, whether expressed or implied, in particular, but not limited to,
warranties of merchantability and fitness for a particular purpose for which the Product is not
designated.
4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH’s
and its suppliers´ liability is restricted to intention and gross negligence.
Should one of the above stipulations be or become invalid and/or unenforceable, the remaining
stipulations shall stay in full effect
Contents
REVISION HISTORY ............................................................................................................ 2
CONTENTS .......................................................................................................................... 4
0 INTRODUCTION.............................................................................................................. 6
5.3 BINHEX................................................................................................................. 28
7 TROUBLESHOOTING ................................................................................................... 32
7.1 Fujitsu FlashMCU Programmer 16LX .................................................................... 32
7.1.1 Error Messages ....................................................................................... 32
7.1.2 Using Laptops.......................................................................................... 34
7.1.3 Wrong file is programmed........................................................................ 34
7.1.3.1 Using version V01L03, V01L05 or V01L07 .............................. 34
7.1.3.2 Using Flash version 3xx, 4xx, 5xx or 6xx with Win NT ............. 34
7.1.4 Unable to program file ............................................................................. 34
8 PROGRAMMING TIME.................................................................................................. 35
8.1 Serial asynchronous mode .................................................................................... 35
8.1.1 Tool: Fujitsu MCU Flash Programmer (freeware)..................................... 35
8.1.2 Tool: FlashKit........................................................................................... 35
8.1.3 Tool: GALEP-4 ........................................................................................ 35
8.2 Serial synchronous mode ...................................................................................... 36
8.2.1 Tool: FlashKit........................................................................................... 36
8.2.2 Tool: GALEP-4 ........................................................................................ 36
8.2.3 Tool: Yokogawa AF221............................................................................ 36
8.3 Parallel mode ........................................................................................................ 37
8.3.1 Tool: DATA-IO ......................................................................................... 37
8.3.2 Tool: ANDO ............................................................................................. 37
0 Introduction
Fujitsu offers a wide range of 16-bit Flash Microcontroller.
This Application Note explains the different possibilities to program the Flash MCU’s.
Using parallel Programmer, in-circuit programming via serial asynchronous/synchronous
connection, or via User-application (e.g. bootloader).
For the MB90F523B and MB90F574 series the FLASH-EVA2-120P-M13 evaluation board
is available as a low cost multifunctional evaluation board. This Flash-Test-Board can be
used as a simple target board for the emulator and as an evaluation board to download and
program the software via RS232 connection and test the user application. This board is
shipped with an MB90F523, programmed with a boot-loader to download software via
RS232. The board does not offer a special ROM monitor debugger.
To download the user application the SKWizard, which is a terminal program with integrated
software download function, or the HexloadW utility program from Fujitsu can be used.
Note: For Windows NT it could happen that the current version of the SKWizard does not
work correctly.
Serial
data link Flash
PC, Laptop with
Download Software RS232 Target
With this method a user application software is started to download the program data and
program the Flash memory. Therefore such a user application (bootloader) must be located
in the Flash memory (programmed into the Flash via method 1) or 2) ). This bootloader could
be located in a small sector and is used by a special command to download the data (e.g.
via RS232 or CAN interface) and to program the data into the Flash memory. During Flash
programming the bootloader programming software itself must be running in the RAM area.
Sector 2 Sector 2
Sector 4
Copy to Sector 4
Sector 5 Sector 5
Sector 6 Sector 6
Sector 7 Sector 7
RAM
The user Flash programming software is copied to the internal RAM. After that, the program
is started in the RAM and the Flash programming is executed.
2.4 Overview
The following table gives an overview about the Flash Microcontrollers and the Flash
programming possibilities for these devices.
Same as for
MB90F038SPF -- -- -- UART0
MB90F347
MB90F334A -- -- -- UART0 --
MB90F337 -- -- -- UART0 --
MB90F342PF
MB90F342SPF Same as for
-- -- 210871 UART0
MB90F342CPF MB90F347
MB90F342CSPF
MB90F345PF
MB90F345SPF Same as for
-- -- 210871 UART0
MB90F345CPF MB90F347
MB90F345CSPF
MB90F347PF
MB90F347SPF PAA-FP-
Q183 -- 210871 UART0 V1.0
MB90F347CPF QFP100
MB90F347CSPF
MB90F349PF
MB90F349SPF PAA-FP-
Same as for
Q183 -- 210871 UART0
MB90F349CPF MB90F347
QFP100
MB90F349CSPF
MB90F351PF Same as for
-- -- 210897 UART3
MB90F351SPF MB90F352
MB90F352PF
-- -- 210897 UART3 V1.0
MB90F352SPF
No
MB90F36x -- -- -- UART1
(compact Flash)
MB90F387PMT
-- -- 210880 UART --
MB90F387SPMT
PS-S5173H UART0 (async)
MB90F394HPMT -- 210854 --
QFP120 SIO4 (sync)
UART0 (async)
MB90F395HPMT -- -- -- --
SIO4 (sync)
MB90F423GAPF
MB90F423GBPF S5023 -- -- UART1 ---
MB90F423GCPF
MB90F428GAPF
MB90F428GBPF S5023 MF00-989 -- UART1 ---
MB90F428GCPF
MB90F438LPF Same as for
S5023 MF00-796 210871 UART1
MB90F438LSPF MB90F543
Same as for
MB90F443GPF S5023 MF00-989 -- UART1
MB90F543
MB90F455PMT
-- -- 210880 UART --
MB90F455SPMT
MB90F456PMT
-- -- 210880 UART --
MB90F456SPMT
MB90F457PMT
-- -- 210880 UART --
MB90F457SPMT
MB90F462PFM -- -- -- UART0 --
MB90F474LPF -- MF00-989 -- UART0 --
MB90F474HPF -- MF00-989 -- UART0 --
MB90F481PF -- -- -- UART0 --
MB90F482PF -- -- -- UART0 --
MB90F497GPFM -- MF13-786 210873 UART1 V1.4
MB90F523PFV S5024 MF00-23 210872 Not supported V3.0
MB90F523BPFV S5024 MF00-23 -- UART0 V3.0
MB90F543GPF
S5023 MF00-989 210871 UART1 V1.1
MB90F543GSPF
MB90F546GPF Same as for
S5023 MF00-989 210871 UART1
MB90F546GSPF MB90F543
Same as for
MB90F549PF S5023 MF00-989 210871 UART1
MB90F543
MB90F553APF S5023 MF00-989 210871 UART0 V4.0
MB90F562/B -- MF13-786 210873 UART1 (P60/61) --
MF13-
MB90F568 -- 210873 UART1 (P60/61) --
786+ML01-781
MB90F574APFV S5024 MF00-729 210872 UART0 V1.1
MB90F583BPF S5023 MF00-989 210871 UART0 V1.0
UART0 (async) Same as for
MB90F591GPF S5023 MF00-796 210871
SIO3 (sync) MB90F594
MB90F897PMT
-- -- 210880 UART1 --
MB90F897SPMT
*1: Note:
There are several different Data I/O Programmer available.
Check if adapter supports your Data I/O programmer.
All you need to program the Flash Memory inside the microcontroller is a PC and a RS232
cable. For the microcontroller some additional circuits have to be assigned on the target
board. The Block diagram (Figure1) shows all necessary connections, which has to be done
to program the Flash memory.
To connect the microcontroller to the serial interface only the Transmit (SOT) and the
Receive line (SIN) of the UART are necessary. For voltage level conversion a RS232 driver
has to be used (e.g. MAX232). The RS232 driver can be assigned directly on the target
board or it can be mounted on an adapter, which is connected to the target to program the
device. This solution saves some space on the target and minimises the costs.
Note:
The MB90F334A, MB90F337, MB90F34x(C)AS, MB90F39x, MB90F474H/L, MB90F481,
MB90F482, MB90F462, MB90F553A, MB90F574, MB90F583, MB90F591G, MB90F594A,
MB9082x, MB90F867/S, MB90F94x use the UART0 interface.
The MB90F36x, MB90F428GA/GB/GC, MB90F443G, MB90F497, MB90F562/B,
MB90F543/G/GS, MB90F546G/GS, MB90F548G/GS, MB90F549, MB90F598, MB90F804-
101/-201 and MB90F897/S use the UART1 interface.
The MB90F35x/S series use the UART3 interface.
The MB90F387/S, MB90F455/S, MB90F456/S, MB90F457/S series includes one UART
interface. This interface must be used for Flash Programming.
At this time only these devices can be programmed using the Fujitsu Burn-In ROM Serial
Asynchronous Programming Mode.
To establish a connection to the microcontroller the RTS (Request To Send) and the CTS
(Clear To Send) lines of the PC interface must be connected together. Also the DTR (Data
Terminal Ready) must be connected to the DSR (Data Set Ready) signal. Otherwise the
program cannot send any data to the microcontroller and a “Communication Error” occurs.
The Transmit line (TXD) of the PC interface has to be connected to SIN, the Receive line
(RXD) has to be connected to SOT via the RS232 driver. The GND line of the RS232
interface must also be connected.
To program the Flash memory of the microcontroller it is necessary to change the operating
mode of the controller to the Asynchronous Serial Programming Mode. Therefore the mode
pins MD0, MD1, MD2 and the port pins P00 and P01 are used. Check below tables for
different port pins usage of some series.
Note: MB90385, MB90455, MB90890 series is using P30 and P31 instead of P00 and P02.
MB90390 can be programmed also with 5MHz/10MHZ/20MHz external clock.
All these settings are also available in the flash Programmer for 16LX help file.
With these settings the microcontroller enters the Asynchronous/synchronous Serial
Programming Mode after power-on or after generating a Reset using /RST.
It is recommended to connect /HST directly to /RST. It might be useful to connect the reset
line /RST to a button to generate a Reset. Otherwise Power-on must be used to change the
operating mode.
Note: Using only the /HST instead of /RST to generate a microcontroller Reset will not set
the microcontroller into the Asynchronous Serial Programming Mode. The usage of /RST is
mandatory to change the operating mode! Nevertheless the /HST has its own functionality
which must be considered in the design.
To install the PC Software just run the self-extracting file FlashV01L03.. This will unzip the
corresponding Flash programming software by default in c:\Softune\Utility\FlashV01L03. But
any other directory can also be used. Afterwards start the install.exe to install the FlashMCU
Programmer 16LX. (Please, always check the Internet page for available updates).
For troubleshooting refer to chapter 7.
To download data to the microcontroller, the Flash programming Software must be started.
After that, first the corresponding device must be selected from the device list and the clock
frequency must be set corresponding to the external clock frequency used for the controller.
Only the following external clock frequencies are allowed: 4, 8, and 16MHz. Other
frequencies will not work because the baud rate is fixed in the Burn-In ROM. After that select
the Com port which is used for the download.
Now the <Download> command can be executed. Now, first the Flash programming routines
itself will be downloaded into the RAM of the microcontroller. A “Download ok” message
confirms that the connection to the controller could be established and the software is now
ready to start. After the download, the baud rate is increased to download the application at
a higher transfer speed. The following table gives an overview.
External Clock Baudrate used to download Baudrate used to download the application itself
Frequency Flash Programming (used with erase -, write & verify -, read -, blank
routines check -, auto command)
4MHz 4800 9600
8MHz 9600 19200
16MHz 19200 38400
Table 12: Possible download baudrates
For the next step the file, which has to be downloaded, must be selected. This is done via
the <search> command. The file itself must be a Motorola S2-Record and the S-Record
must contain a start record (S0) and an end record (S8). Otherwise a temporary generated
binary file (_w_o_r_k.5, which is used for the download) cannot be generated and the error
message “unable to open _w_o_r_k.5” occurs. The S0 and S8 record is only used to
recognise the start and the end of the data section during the transfer.
Note: Check the Motorola S-Rec for S0 and S8 Record!
With the <Auto> command a complete programming sequence is started: Download, Erase
complete Flash memory, Blank check, write file to Flash memory and verify data.
Of course single commands like <Erase>, <Blank Check>, <Write&Verify>, <Read and
Compare> and <copy> can be executed as well.
After the programming sequence the application can be started. Therefore the operating
mode of the microcontroller must be changed to the corresponding setting which is
necessary for the application (e.g. single chip mode: MD2=0, MD1=1, MD0=1). After that, a
Power-on Reset or pressing the Reset button will start the application in the Flash memory.
If the QFP120 Flash evaluation board is used to program the MB90F574 device make sure
that the Reset LED is off after power-on. Otherwise change the DTR polarity with jumper J20
or just remove the jumper to avoid any influence of the DTR line during the programming
sequence. To generate a correct Reset, the jumper J21 must be set to /RST. To enable the
Serial Programming Mode, the Mode pins must be set correctly. Therefore the switch S1
must be set for MD2, MD1 and MD0 to position ON. The connection of the port pins P01 and
P00 to GND must be done with two additional wires. The UART0 of the MB90F574 is
connected to the DB-9 connector by plugging the RN4 resistor network in the position
MB90570 and setting the jumpers J12, J13, J14 to Burn-In position. The RTS / CTS and the
DTR / DSR signals can be wired together on the evaluation board as well (RTS pin 7, CTS
pin 8 of the DB-9 connector). The serial cable must be a straight 1:1 connection.
After the download the Mode pin setting must be changed to the corresponding setting of the
application (e.g. single chip mode: MD2 Off, MD1 ON, MD0 Off – 0 1 1). A Power-on Reset
or pressing the Reset button will start the application in the Flash memory.
For the serial PC interface it is also necessary to connect RTS with CTS. DTR is already
connected to DSR on the board.
After that the Mode pins and the port pins P00 and P01 must be switched to the right
position.
To set the mode pins and the port pins for serial async. programming the DIL switch S3 must
be set as follows:
SW1 ON, SW2 OFF, SW3 OFF, SW4 OFF, SW5 ON, SW6 OFF, SW 7 ON, SW8 ON. SW1
to 3 are responsible for the Mode pins, SW5 to connect RTS to CTS, SW7 and SW8 set the
port pins P00 and P01to GND. Additionally jumper JP12 must be removed to avoid that the
DTR signal resets the board.
After these settings the Flash programming software can be started. After programming the
application can be started. Therefore the switches SW7 and SW8 should be set to OFF and
the Mode pins must be set corresponding to the application. For single chip Mode the setting
is: SW1 OFF, SW2 OFF, SW3 ON. After Power-on or Reset the application will start now.
Figure 1
Hardware configuration for Serial Asynchronous Programming
Vcc
NOTE: Even 2K pull up resistors are used here,
it is recommended to connect the MDx pins directly F2MC
to Vcc or GND.
2K
Pin MD2 MD1 MD0 MD2
Level HIGH HIGH LOW
MD1
Table 14: Mode Pin setting
MD0
Vcc
P00
Pin (*1) P01 P00
Level LOW LOW P01
/HST *2
TXD
SIN
RXD
SOT
*1: MB90385 series is using P30 and P31 instead P00 and P01. MB90470 series is using P80
and P81 instead of P00 and P01. When using MB90390 with (5/10/20) MHz external clock use
setting: P00: HIGH, P01: LOW. Refer to chapter: 3.3 Mode Setting
As already mentioned there exist an Application Note for an examples of a user bootloader
for the MB90F523, MB90F543, MB90F553, MB90F574, MB90F583, MB90F594/A and the
MB90F598. The functionality of such a bootloader will be described now, with this bootloader
for the MB90F523 as a reference. Take care that the bootloader examples supplied for other
devices may slightly be different. There are some small differences regarding baud rate and
handling of the application reset vector. Therefore please see the table „Bootloader Selector
Guide“ afterwards.
NOTE:
The bootloaders have been carefully checked and are believed to be reliable.
However, no responsibility is assumed for any inaccuracies. Fujitsu does not accept
any liability arising out of the use of this application example.
All bootloaders use the UART of the microcontroller for communication and download. Only
the transmit and receive line of the corresponding UART interface are used. After Power-on
the user has 1sec to send the character <ESC> via a terminal to the microcontroller.
Therefore e.g. the SKWizard terminal emulation program can be used. If no <ESC>
character is sent, the application is called after a timeout of approximately 1-second.
The SKWizard offers some more features, especially to download software. After sending
the character, the bootloader enters a monitor mode and a prompt (>) appears on the
terminal. Now some commands can be entered (commands are listed below) or the
download of the application software can be started. With the SKWizard the download can
be started by the load button or with the following command line:
Instead of using the SKWizard it is also possible to use the HEXLOADW download-utility to
transfer the linker-output file. The settings (Option-SetUtility-menu) should be
HEXLOADW automatically erases the flash memory sectors respectively and downloads the
application program code.
After Power-on of the MCU, the bootloader always takes control, at least for the first steps to
check the cause of reset.
After Power On the version string of the bootloader “MB90523 Flash loader - V2.0” is output
and you have the chance to respond with ESC in order to enter the monitor mode of the
bootloader.
If „ESC“ is pressed during the timeout period, the program execution branches to the Flash
Monitor.
Note that the loader reads the WDTC (WatchDog Timer-Control) register in order to find out
the cause for reset. While reading WDTC, the content is destroyed, but through the R0
register, a copy of the content is passed to the application software for further evaluation.
If you download an application, which normally has its own reset vector at H‘FFFFDC, this
“application vector” will be stored in INT#7 location at address H‘FFFFE0. Therefore a vector
call for INT#7 is no longer available in conjunction with this boot loader. The boot loader
itself takes care of this vector displacement. This way of handling with the reset vector is
very flexible because the “application vector” can be defined in the software project inside
Softune as the normal reset vector and is not fixed to a certain address.
00 00 00
Application
Start_of_Application:
Start_of_Boot-Loader:
FF A0 00
Boot Loader in
Sector SA3 (7kB)
FF BBFF
Application
The bootloader for the MB90F553 V2.3 does not support this INT#7 feature. For this
bootloader the application start address is fixed to H’FF0000. So if the bootloader V2.3 of the
MB90F553A is used, the application must start at address H’FF0000 and no Reset Vector
may be generated by the compiler for the application. Otherwise the Reset Vector of the
bootloader would be overwritten, which is protected by the bootloader software. But if a reset
vector is included the download will be stopped.
After Power-on the message “MB90523 Flash loader - V2.0” appears as the first prompt at the terminal.
Respond with “ESC” within 1 second enters the monitor mode and a prompt “>” appears. In the monitor mode
of the bootloader the following commands can be entered:
*) AAAAAA: 24-bit upper case hex address, NN: two-digit upper case hex number
Defaults:
PROTECT_SECTORS ON
PROTECT_RESET_VECTOR ON
to protect the monitor from erasing the reset vector and itself.
The provided bootloader is just an example how to generate such kind of “bootloader”. It can
be adapted to the needs of the application. For that purpose the source code of the current
monitor must be modified. Therefore the following instructions must be considered:
a) During erasing and reprogramming of the on-chip flash, the code must be executed
from the RAM! Therefore, the monitor copies part of the code from ROM into the
RAM area. For the Softune Workbench, the linker can provide a dedicated
mechanism for that purpose: RAMCode. This feature allows to link code to ROM,
which will be executed in the RAM later on.
(Note: When you are still working with the old Softune V01 development environment
the following issues must be considered: For the linker, the flash routines of the code
must be placed in a RAM-location during compilation-time. So this part of code has to
be copied back to ROM before programming a new monitor into the Flash memory.
To do so, use the BINHEX-tool (Version 2.1 or later):
BINHEX /z=FFA000 NAME.cnv /y /a
This will copy all code linked to RAM-locations (below 1000hex) to FFAxxxhex. The
output file with the corrected load-module will be in Motorola S-format with the
extension *.mhx by default. )
PROTECT_RESET_VECTOR OFF
and
PROTECT_SECTORS OFF
from the SKWizard or any terminal program to allow overwriting of the bootloader area and
download the new bootloader file to the flash memory. After reset (/HST or Power On) the
new version of the bootloader should appear. Take care that during the programming
sequence the power supply is not switched off. Otherwise the programming could fail and
the bootloader will not work anymore.
5.1 HEXLOADW
PORT This is the communication port that the board is connected to.
-W Wait for target (Power on)
-C Close HexloadW after download
-R Run program, do not use for Flash boot loader
-Ibaud Initialise serial port to baud (300, 1200, 2400, 4800, 7200, 9600, 19200, 38400).
-Flash Flash-programming using Method A
Examples:
5.2 SKWIZARD
File (last parameter given) should contain full path and filename+ext of hex-file
Examples:
5.3 BINHEX
MB90F347 boot sector linked to: Reset vector must - Boot loader checks WDTC, if UART0 at 38400 loading by SK-Wizard:
V1.0 FFA000 – FFBBFF be used, POWER-ON or HST reset start Baud - power-on target
Vector stored at main loader, if other reset cause (PLL x4) - press ESC after message
FFFFE0 (int#7) by jump to application pointed by - proceed as usual
loader FFFFE0 loading with Hexloadw:
- Main loader displays WELCOME -call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application message - power-on target
included, which - waits 1 second for any character, if
toggles port P10 not PLL off, generate software
reset, if something command line
mode
- WDTC stored in R0
MB90F352 boot sector linked to: Reset vector must - Boot loader checks WDTC, if UART3 at 38400 loading by SK-Wizard:
V1.0 FFA000 – FFBBFF be used, POWER-ON or HST reset start Baud - power-on target
Vector stored at main loader, if other reset cause (PLL x4) - press ESC after message
FFFFE0 (int#7) by jump to application pointed by - proceed as usual
loader FFFFE0 loading with Hexloadw:
- Main loader displays WELCOME -call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application message - power-on target
included, which - waits 1 second for any character, if
toggles port P10 not PLL off, generate software
reset, if something command line
mode
- WDTC stored in R0
MB90F497G boot sector linked to: Reset vector must - Boot loader checks WDTC, if UART0 at 38400 loading by SK-Wizard:
V1.4 FFA000 – FFBBFF be used, POWER-ON or HST reset start Baud - power-on target
Vector stored at main loader, if other reset cause (PLL x4) - press ESC after message
FFFFE0 (int#7) by jump to application pointed by - proceed as usual
loader FFFFE0 loading with Hexloadw:
- Main loader displays WELCOME -call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application message - power-on target
included, which - waits 1 second for any character, if
toggles port P10 not PLL off, generate software
reset, if something command line
mode
- WDTC stored in R0
boot sector linked to: Reset vector must - Boot loader checks WDTC, if UART0 at 19200 loading by SK-Wizard:
MB90F523 FFA000 – FFBBFF be used, POWER-ON or HST reset start Baud - power-on target
Vector stored at main loader, if other reset cause (PLL x4) - press ESC after message
V3.0 FFFFE0 (int#7) by jump to application pointed by - proceed as usual
loader FFFFE0 loading with Hexloadw:
- Main loader displays WELCOME -call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application message - power-on target
included, which - waits 1 second for any character, if
toggles port P10 not PLL off, generate software
reset, if something command line
mode
- WDTC stored in R0
Fixed boot sector: Reset vector must - Boot loader checks WDTC, if UART0 at 38400 loading by SK-Wizard:
MB90F543 FFA000 – FFBBFF be used, POWER-ON only start main loader, if Baud - power-on target
Vector stored at other reset cause jump to application (PLL x4) - press ESC after message
FFFFE0 (int#7) by pointed by FFFFE0 - proceed as usual
V1.1 loader - Main loader displays WELCOME loading with Hexloadw:
message - call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application - waits 1 second for any character, if - power-on target
included, which not PLL off, generate software reset,
toggles port40 if something command line mode
- WDTC stored in R0
Sector: Reset vector must - Boot loader checks WDTC, if UART0 at 19200 loading by SK-Wizard:
MB90F553 FFA000...FFBBFF be used, POWER-ON or HST only start Baud - power-on target
vector stored at main loader, if other reset cause (PLL x4) - press ESC after message
V4.0 FFFFE0 (int#7) by generate software reset and start - proceed as usual
loader (vector again loading with Hexloadw:
displacement) - Main loader displays WELCOME - call “hexloadw 1 -i19200 -flash -w -c
message path\name.cnv”
dummy application - waits 1 second for ESC, if not PLL - power-on target
included, that does a off, generate software reset, if ESC
endless loop command line mode
- WDTC stored in R0
Sector: Reset vector must - Boot loader checks WDTC, if UART0 at 38400 loading by SK-Wizard:
MB90F574 FF8000 – FF9FFF be used, POWER-ON or HST only start main Baud - power-on target
vector stored at loader, if other reset cause generate (PLL x4) - press ESC after message
V1.1 FFFFE0 (int#7) by software reset and start again - proceed as usual
loader (vector - Main loader displays WELCOME loading with Hexloadw:
displacement) message - call “hexloadw 1 -i19200 -flash -w -c
- waits 1 second for ESC, if not PLL path\name.cnv”
dummy application off, generate software reset, if ESC - power-on target
included, that does a command line mode
endless loop - WDTC stored in R0
Fixed boot sector: Reset vector must - Boot loader checks WDTC, if UART0 at 19200 loading by SK-Wizard:
MB90F583 FFA000 – FFBBFF be used, POWER-ON only start main loader, if Baud - power-on target
Vector stored at other reset cause jump to application (PLL x4) - press ESC after message
FFFFE0 (int#7) by pointed by FFFFE0 - proceed as usual
V1.0 loader - Main loader displays WELCOME loading with Hexloadw:
message - call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application - waits 1 second for any character, if - power-on target
included, which not PLL off, generate software reset,
toggles port40 if something command line mode
- WDTC stored in R0
Fixed boot sector: Reset vector must - Boot loader checks WDTC, if UART0 at 38400 loading by SK-Wizard:
MB90F594 FFA000 – FFBBFF be used, POWER-ON only start main loader, Baud - power-on target
MB90F598 Vector stored at if other reset cause jump to (PLL x4) - press ESC after message
The binary of this FFFFE0 (int#7) by application pointed by FFFFE0 - proceed as usual
V2.0 loader fits for both loader - Main loader displays WELCOME loading with Hexloadw:
MB90F590 and 595 message - call “hexloadw 1 -flash -w -c path\name.cnv”
Dummy application - waits 1 second for any character, if - power-on target
Be aware that the e included, which not PLL off, generate software
590 header files do toggles port40 reset, if something command line
not completely fit for mode
595. - WDTC stored in R0
NOTE: The bootloaders have been carefully checked and are believed to be reliable. However, no responsibility is assumed for any inaccuracies.
Fujitsu does not accept any liability arising out of the use of this application example.
7 Troubleshooting
*1:“MCU xxH”is displayed if the error cause is returned from the microcontroller at a
download error.
“MCU xxH” means:
MCU 02H SUM error at downloading
MCU 04H Abnormal termination at downloading
*2:This is an additional message. It is displayed as necessary after other messages are
displayed.
7.1.3.2 Using Flash version 3xx, 4xx, 5xx or 6xx with Win NT
Description:
In some cases it can happen, that this software version of the software does not fully support
Windows NT. This is because some procedures are done using batch files. So it could
happen that an error occurs using Windows NT (Error 103, wrong write file).
Workarround:
In case of error, please look at the c:\softune\flashxxx directory and make a copy of the
temporary created batch file. Start the batchfile separately first. After that the Flash
programming software itself can be started. The batchfile creates a work.bin file, which is
used by the Flash programming software.
8 Programming Time
The programming time depends on the communication mode (serial-asynchronous /
-synchronous, parallel) and the tool that is used for programming. Further, the age of the
flash may influence the programming time, too. The flash characteristics are shown in the
datasheet of the related microcontroller.
The times given below should give a notion, but exact program-times have to be requested
by the tool-provider for each microcontroller case by case.
128K-devices: MB90F553A
Chip-Erase incl. Blank-Check: 14sec
Program incl. Verify: 14sec
Blank-Check, Program, Verify: 17sec
128K-devices: MB90F553A
Chip-Erase incl. Blank-Check: 13sec
Program incl. Verify: 15sec