Algocraft WriteNow! Series User manual

WriteNow! Series
Single and Parallel In-System Programmers
User’s Manual
Rev. 1.05
UM00010105EN

Copyright Information
Copyright © 2010-2017 Algocraft Srl.
No part of this manualmay be reproduced in any form or by anymeans (including electronic storage and retrieval
or translation into a foreign language) without prior agreement and written consent from Algocraft.
Disclaimer
The material contained in this
editions. Further, to the maximum extent permitted by applicable law, Algocraft disclaims all warranties, either
express or implied, with regard to this manual and any information contained herein, including but not limited to
the implied warranties of merchantability and fitness for a particular purpose. Algocraft shall not be liable for errors
or for incidental or consequential damagesin connection withthe furnishing, use, or performanceof this
document or of any information contained herein. Should Algocraft andthe user have a separate written
agreement with warranty terms covering the material in this document that conflict with these terms, the warranty
terms in the separate agreement shallcontrol.
Whilst every effort has been made to ensure that programming algorithms are correct at the time of their release, it
is always possible thatprogramming problems may be encountered, especially when new devices and their
associated algorithmsare initially released.
quickly as possible after a validated fault report is received.
It is recommended that high-volume users always validate that a sample of a devices has been programmed
correctly, before programminga large batch. Algocraft can not be held responsible for any third party claims which
Algocraft Warranty Information
Algocraft warrants that this product will be free from defects in materials and workmanship for a periodof one (1)
year from the date of shipment. If any such product proves defective during this warranty period, Algocraft, at its
option, either will repair the defectiveproduct without charge for parts and labor, or will provide a replacement in
exchange for the defective product.Parts, modules and replacement products used by Algocraft for warranty work
may be new or reconditioned to like new performance. All replaced parts, modules and productsbecome the
property of Algocraft. In order to obtain serviceunder this warranty, Customer must notify Algocraftof the defect
before the expiration of the warranty period and make suitable arrangements for the performance of service.
Customer shall be responsible for packaging and shipping the defective product to the service center designated
by Algocraft, with shipping chargesprepaid. Algocraft shall pay for the return of the product to Customer if the
shipment is to a location within the country in which the Algocraft servicecenter is located. Customer shall be
responsible for payingall shippingcharges, duties, taxes, and anyother charges for products returned to any other
locations. This warranty shall not apply to any defect, failure or damage caused by improper use or improper or
inadequate maintenance and care. Algocraft shall not beobligated to furnish service under this warranty a) to
repair damage resulting from attempts by personnel other than Algocraft representatives to install, repair or service
the product; b) to repair damage resulting from improper use or connection to incompatible equipment; c) to
repair any damage or malfunction caused by the use of non-Algocraft supplies; or d) to service a product that has
been modified or integrated with other products when the effect of such modification or integration increases the
time or difficulty of servicingthe product.
THIS WARRANTY ISGIVEN BY ALGOCRAFT WITH RESPECT TO THE PRODUCT IN LIEUOF ANY OTHER WARRANTIES,
EXPRESS OR IMPLIED. ALGOCRAFT AND ITS VENDORS DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY
PRODUCTS IS THE SOLE AND EXLUSIVE REMEDY PROVIDED TO THE CUSTOMER FOR BREACH OF THIS WARRANTY.
ALGOCRAFT AND ITS VENDORS WILL NOT BE LIABLE FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES IRRESPECTIVE OF WHETHER ALGOCRAFT OR THE VENDOR HAS ADVANCE NOTICE OF THE POSSIBILITY OF
SUCH DAMAGES.
Technical Support

WriteNow! User's Manual
3
Table of Contents
1. WriteNow!—At a Glance ...................................................................................................7
Overview..............................................................................................................................................................................................................................................................7
Features.................................................................................................................................................................................................................................................................7
Model Comparison.......................................................................................................................................................................................................................................8
Package Checklist...........................................................................................................................................................................................................................................9
Connectors Overview..................................................................................................................................................................................................................................9
LEDs......................................................................................................................................................................................................................................................................10
Programming Drivers and Licenses...............................................................................................................................................................................................10
2. Getting Started ................................................................................................................ 11
Guided Tutorial.............................................................................................................................................................................................................................................11
1. Install Software..........................................................................................................................................................................................................................11
2. Launch the Project Generator........................................................................................................................................................................................11
3. Create a New Project............................................................................................................................................................................................................11
4. Create a New Project, Step 1 of 3................................................................................................................................................................................12
5. Create a New Project, Step 2 of 3................................................................................................................................................................................13
6. Create a New Project, Step 3 of 3................................................................................................................................................................................15
7. Configure your WriteNow! Instrument....................................................................................................................................................................16
8. Connect to Target Device.................................................................................................................................................................................................16
9. Startup WriteNow!..................................................................................................................................................................................................................16
10. Program the Target Device..............................................................................................................................................................................................17
Manual Project Editing............................................................................................................................................................................................................................17
Where to Go from Here...........................................................................................................................................................................................................................18
3. Communication and hardware Settings ....................................................................... 19
Communication settings.......................................................................................................................................................................................................................19
COM...........................................................................................................................................................................................................................................................19
LAN.............................................................................................................................................................................................................................................................20
Hardware Settings......................................................................................................................................................................................................................................21
Firmware Upgrade...........................................................................................................................................................................................................................21
Hardware Test.....................................................................................................................................................................................................................................22
4. Image file Creation.......................................................................................................... 23

WriteNow! User's Manual
4
Overview...........................................................................................................................................................................................................................................................23
Adding a Source File.................................................................................................................................................................................................................................24
Const Data Pattern.....................................................................................................................................................................................................................................24
Exclude Range...............................................................................................................................................................................................................................................25
Variable Data Programming................................................................................................................................................................................................................25
Conversion Report......................................................................................................................................................................................................................................26
Fill Unused Location..................................................................................................................................................................................................................................26
5. Commands ....................................................................................................................... 27
Overview...........................................................................................................................................................................................................................................................27
Command Syntax .......................................................................................................................................................................................................................................27
OK Answer.............................................................................................................................................................................................................................................27
ERR Answer...........................................................................................................................................................................................................................................27
BUSY Answer.......................................................................................................................................................................................................................................28
WriteNow! Terminal...................................................................................................................................................................................................................................28
Command Reference...............................................................................................................................................................................................................................28
Data In/Out Commands..............................................................................................................................................................................................................29
Execution Command.....................................................................................................................................................................................................................30
File System Commands...............................................................................................................................................................................................................31
Programming Commands.........................................................................................................................................................................................................32
Status Commands...........................................................................................................................................................................................................................33
System Commands.........................................................................................................................................................................................................................34
Time Commands..............................................................................................................................................................................................................................36
Volatile Memory Commands...................................................................................................................................................................................................37
6. Standalone Mode ............................................................................................................ 39
Overview...........................................................................................................................................................................................................................................................39
Signals.................................................................................................................................................................................................................................................................39
Project Assignment....................................................................................................................................................................................................................................40
7. WriteNow! API................................................................................................................. 41
Overview...........................................................................................................................................................................................................................................................41
Including the API in Your Application ..........................................................................................................................................................................................41
Function Reference....................................................................................................................................................................................................................................42
WN_CloseCommPort().................................................................................................................................................................................................................43
WN_ExeCommand()......................................................................................................................................................................................................................44
WN_GetFrame().................................................................................................................................................................................................................................45
WN_GetLastErrorMessage()......................................................................................................................................................................................................46
WN_ReceiveFile()..............................................................................................................................................................................................................................47
WN_SendFile()....................................................................................................................................................................................................................................48

WriteNow! User's Manual
5
WN_SendFrame().............................................................................................................................................................................................................................49
WN_OpenCommPort().................................................................................................................................................................................................................50
8. WriteNow! File System ................................................................................................... 51
Overview...........................................................................................................................................................................................................................................................51
File System Structure................................................................................................................................................................................................................................51
9. Protection Mode and Data Encryption ......................................................................... 55
Protection Mode..........................................................................................................................................................................................................................................55
Data Encryption............................................................................................................................................................................................................................................55
10. Power and Relay Options ............................................................................................. 57
Power Supply.................................................................................................................................................................................................................................................57
Relays...................................................................................................................................................................................................................................................................57
11. Demultiplexer Module.................................................................................................. 59
Overview...........................................................................................................................................................................................................................................................59
12. Connectors ..................................................................................................................... 61
ISP Connectors..............................................................................................................................................................................................................................................61
Low-Level Interface Connector.........................................................................................................................................................................................................62
Ground Domains.........................................................................................................................................................................................................................................64
13. Specifications................................................................................................................. 65
Electrical Specifications...........................................................................................................................................................................................................................65
ISP Connectors and cables...................................................................................................................................................................................................................65
Mechanical Specifications.....................................................................................................................................................................................................................66
14. Troubleshooting............................................................................................................ 71
Get full access to WriteNow! folder on Windows 10..........................................................................................................................................................71


WriteNow! User's Manual
7
1. WriteNow!—At a Glance
Overview
Congratulations for purchasing a WriteNow! In-System Programmer. Based on the
proprietary WriteNow! Technology, the WriteNow! Series of In-System Programmers are a
breakthrough in the Programming industry. The programmers support a large number of
devices (microcontrollers, memories and other programmable devices) from various
manufacturers and have a compact size for easy ATE/fixture integration. They work in
standalone or connected to a host PC (RS-232, LAN connections are built-in), and are
provided with easy-to-use software utilities.
The WriteNow! Lineup
Features
Support of microcontrollers, serial and parallel memories and other programmable devices
High-speed, parallel programming
Compact size (fixture friendly)
Standalone operations or host controlled
Designed for easy ATE interfacing
Robust and reliable
Support of several programming interfaces (JTAG, BDM, SPI, I2C, UART, etc.)
Large built-in internal memory for projects, images, etc.
Programmable power supply output (1.5-13V)
Programmable I/O voltage (1.6-5.5V)
High-speed I/O
LAN (isolated), RS-232 (isolated) and low-level interface (isolated)
ISP I/O relay barrier (only available on the single-site model)
I/O protection
Wide range power supply (12-25V)

WriteNow! User's Manual
8
The shortest possible programming times are guaranteed due to a combination of highly
optimized programming algorithms, local storage of programming data and high slew rate
line driver circuitry.
Model Comparison
The following table summarizes the main features of the various WriteNow! family models.
WriteNow! Model Comparison
Feature
WN-PRG01A
WN-PRG02A
WN-PRG04A
WN-PRG08A
General Features
Programming Sites
1
2
4
8
Power Supply
12-25V
12-25V
12-25V
12-25V
Device Type Support
Microcontrollers,
Serial Memories
Microcontrollers, Serial
Memories
Microcontrollers, Serial
Memories
Microcontrollers, Serial
Memories, Parallel
Memories
Programming Protocols
UART, SPI, JTAG, I2C,
BDM, SWD, etc.
UART, SPI, JTAG, I2C,
BDM, SWD, etc.
UART, SPI, JTAG, I2C,
BDM, SWD, etc.
UART, SPI, JTAG, I2C,
BDM, SWD, etc.
Relay Barrier
Yes
No
No
No
ISP Lines
Adj. Voltage Range
1.6-5.5V
1.6-5.5V
1.6-5.5V
1.6-5.5V
Adj. Voltage Resolution
100mV
100mV
100mV
100mV
Bidirectional Lines
6
12
24
48
Prog. Clock Out Lines
1
2
4
8
Programmable Power Supply (PPS)
Range
1.5-15V
1.5-15V
1.5-15V
1.5-15V
Resolution
100mV
100mV
100mV
100mV
Channels
1
2
4
8
Host Interface
RS-232 (Isolated)
Yes
Yes
Yes
Yes
LAN (Isolated)
Yes, 100Mbit/s
Yes, 100Mbit/s
Yes, 100Mbit/s
Yes, 100Mbit/s
USB
Not yetavailable
Not yetavailable
Not yetavailable
Not yetavailable
Low-Level Interface
(Isolated)
START, OK/ERR, BUSY,
PRJ_SEL[0..5]
START,
START_ENA[1..2],
OK/ERR[1..2], BUSY,
PRJ_SEL[0..5]
START,
START_ENA[1..4],
OK/ERR[1..4], BUSY,
PRJ_SEL[0..5]
START,
START_ENA[1..8],
OK/ERR[1..8], BUSY,
PRJ_SEL[0..5]

WriteNow! User's Manual
9
Package Checklist
The WriteNow! package includes the following items:
1. WriteNow! unit.
2. 15V power supply.
3. Serial and Ethernet cables.
4. WriteNow! test board.
5. 48-way, female wire-wrap DIN41612 connector.
6. Software CD.
Connectors Overview
WriteNow! has several connectors for interfacing to a host PC, to an Automatic Test
Equipment (ATE), and to the target system(s) to be programmed. The following pictures
show where, depending on the model, the various connectors are located.
1. The POWER connector accepts a DC voltage between 12V and 25V.
2. The LAN, and RS-232 connectors are used to interface the instrument to a PC.
3. The LAN RESET push button is used to reset LAN settings to their factory settings.
4. The ISP connector(s) are used to interface to the target system(s) to be programmed.
5. The LOW-LEVEL INTERFACE connector (which is merged with the ISP connector in the WN-
PRG01A model) is used to interface the instrument to an ATE or other systems.
For details and pinout of the various connectors, see the Connectors chapter on page 59.
1 1 1
2 2 2
3 3 35 5
4/5 4 4
WN-PRG01A WN-PRG02A/WN-PRG04A WN-PRG08A

WriteNow! User's Manual
10
LEDs
The LEDs on the top cover of the instrument, from top to bottom, indicate:
1. POWER: the instrument is turned on.
2. STATUS: indicates system warnings. Normally off, blinks if the system needs user action (to
retrieve detailed error information, see Status Commands on page 33)
3. BUSY: turns on when programming (when a programming project is being executed).
4. OK/ERR: result of programming. Each programming site has an OK/ERR LED, which turns
green if programming on that site has been successful, red otherwise.
WN-PRG01A LEDs
WN-PRG02A LEDs
WN-PRG04A LEDs
WN-PRG08A LEDs
Programming Drivers and Licenses
WriteNow! comes with preinstalled programming drivers (algorithms) that support common
microcontrollers and memories. When you purchase a new programming driver, you are
supplied with a new driver file (.wnd) and an updated license file (.wnl). The license file
enables the use of all of your purchased drivers on your specific WriteNow! unit.
You must copy these files to he driver file must be copied to the
\drivers folder, and the license file to \sys folder. Please refer to WriteNow!
File System on page 51 for more information.

WriteNow! User's Manual
11
2. Getting Started
Guided Tutorial
The following tutorial will guide you through the steps required to set up your WriteNow!
programmer and create your first programming project.
1. Install Software
Insert the Setup CD into your PC and install the WriteNow! software.
2. Launch the Project Generator
Launch the Project Generator application, that is located under Programs > Algocraft >
WriteNow! Software > Project Generator.
3. Create a New Project
Select File > New Project,give a name to your programming project, and then follow the
Project Creation Wizard steps.

WriteNow! User's Manual
12
4. Create a New Project, Step 1 of 3
First Wizard step: specify the target device, by clicking the “Edit button.
Then, specify the file to be programmed (image file). To create an image file, click the
“Create/Edit File” button. A dedicated window will open.
In the Output File section, specify the output filename by clicking the “...” button.

WriteNow! User's Manual
13
Use the “Add” button to compose the data that will compose the Image file. Use the
button to specify the name of the Image file. When done, click “OK” to return to the Wizard,
and proceed to Step 2.
5. Create a New Project, Step 2 of 3
In this step, specify target parameters and connection values. The Wizard will automatically
fill all data with typical values for the selected target device.
The number of tabs displayed in this window depends on the selected target device;
however, three tabs (“Target I/O”, “Target Power Supply” and “Communication”) are
always present and will be briefly discussed below.
The first tab is “Target I/O”. The “Device I/O voltage” setting specifies the voltage of the
ISP lines. You should check the target board schematics, or ask the board developer about
this value. The allowed voltage also depends on the selected target device.
The “Clock I/O drive mode” setting allows you to decide how the SxL04 ISP line is driven
(the x index refers to the programming site; see ISP Connectors on page61). This line can
be used as an auxiliary ISP line (to provide a clock to the target device), as a generic I/O line,
or as a high-impedance output (no electrical driving). When used as output line (set to high
or low), it could be used, for example, to disable the external watchdog circuit in the target
board. When used as clock out, you can specify the output frequency in the “Clock I/O
frequency”field. We suggest leaving this line floating (HiZ) when not used, in order to
decrease electrical noise on other ISP lines.

WriteNow! User's Manual
14
If you decide to power the target board through the WriteNow! power supply line (SxPPS),
specify in the “Target Power Supply” tab the electrical and timing parameters of the target
power supply line. WriteNow! is able to power the target board through a dedicated
programmable power supply output line per site. The voltage of the programmable power
supply line (“Target power supply voltage” setting) can be in the range 1700mV to
13000mV. Each programmable power supply line features an internal voltage limiter that
cuts the voltage output in case of short circuits or overloads. The current output is limited to
about 400mA.
The “Power up time” setting specifies the delay between the programmable power supply
line turning on and the first operation on the ISP lines. The purpose of this parameter is to
wait for the power supply to become stable, before starting ISP programming. This
parameter is useful w
The “Power down time” setting acts in similar way: it sets the delay between the
programmable power supply line turning off and subsequent operations.
The content of the “Communication” tab depends on the selected target device. It allows
you to select the communication protocol that will be used for programming (some target
devices may provide more than one communication protocol) and its related settings,

WriteNow! User's Manual
15
usually the communication speed and other parameters. Usually, the higher the
communication speed, the shorter/better the ISP cabling must be.
After carefully checking all of the parameters values, proceed to Step 3.
6. Create a New Project, Step 3 of 3
In this step you select which programming operation to perform on the target.
The read FLASH memory will create a dump file, located in the \images folder. It could be
performed one site at once.
Click “Finish” to end the Wizard. At this point, a WriteNow! Programming Project will be
created in the \Projects directory, relative to the Project Generator application location.

WriteNow! User's Manual
16
7. Configure your WriteNow! Instrument
Choose Project > Select WriteNow! Model, and specify your WriteNow! model and
communication settings with the PC. Currently, WriteNow! can be connected through LAN
and serial port.
8. Connect to Target Device
Connect WriteNow! to your target system through the ISP connector(s). To view the
connections for your selected target device, select Debug > Show ISP Connections.
9. Startup WriteNow!
Connect WriteNow! to your PC through the provided Ethernet/serial cables. Finally, power
up WriteNow! using the provided power supply.

WriteNow! User's Manual
17
10. Program the Target Device
Select Debug > Run Project. The Project file (.wnp) and Image file (.wni) will be
automatically uploaded to WriteNow! and the project will be executed. Your target device(s)
will be programmed.
In case of programming errors, or to change programming parameters/operations, you can
relaunch the Project Wizard and review the project settings.
Manual Project Editing
The Project file created by the Project Wizard is located, by default, in the \Projects
directory, relative to the Project Generator application location (this location can be
to do so, in the Project Generator, select
Project > Edit Miscellaneous Settings and modify the Workspace setting).
The generated project file is a text file and, if necessary, can be edited using any text editor.
Please note, however, that once the file is modified by the user, it can be opened by the
Project Generator but the Project Wizard will not be available.

WriteNow! User's Manual
18
Where to Go from Here
In this chapter, you have learnt how to use the Project Generator to create and execute a
typical programming project. Additionally, WriteNow! can be controlled in three other ways:
1. By manually sending commands and receiving answers, using the Project Generator
Terminal or any other terminal application (for more information, see Commands on page
27);
2. By configuring the instrument so that it can work in standalone, that is without a connection
to a PC (for more information, see Standalone Mode on page 39);
3. By building your own PC software that interfaces to the instrument (for more information,
WriteNow! API 41).

WriteNow! User's Manual
19
3. Communication and hardware
Settings
Communication settings
This section describes the simple procedure for the COM/LAN setup.
COM
WriteNow! communicates at 115,200 bps by default.
On windows system, check the properly COM port number in the Device Manager window:

WriteNow! User's Manual
20
LAN
IP address: 192.168.1.10
Netmask: 255.255.255.0
Default Gateway: 192.168.1.1
Connect WriteNow! to your LAN through the ethernet cable. If you are using a router, make
sure that the configuration settings match.
WriteNow! could also be connected directly to your PC. In this case or if you want to
configure your LAN manually, you must set a static IP:
On windows system, go
Set the properly IP, subnet mask and the default gateway:
After the first connection, you can change all the LAN parameters through the WriteNow!
terminal (see System Commands on page 34). The new configuration will be enabled after
the programmer reboot.
Other manuals for WriteNow! Series
1
This manual suits for next models
8
Table of contents
Other Algocraft Motherboard manuals