Algocraft WriteNow! Series User Manual

Algocraft WriteNow! Series User Manual

Single and parallel in-system programmers
Hide thumbs Also See for WriteNow! Series:
Table of Contents

Advertisement

WriteNow! Series
Single and Parallel In-System Programmers
User's Manual
Rev. 1.05
UM00010105EN
http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WriteNow! Series and is the answer not in the manual?

Questions and answers

Neeraj
March 22, 2025

How to update/load programer with new license

1 comments:
Mr. Anderson
March 22, 2025

To update the Algocraft WriteNow! Series programmer with a new license, follow these steps:

1. Obtain the new license file (.wnl) when purchasing a new programming driver.
2. Copy the license file to the `\sys` folder of the WriteNow! system.
3. Ensure the driver file (.wnd) is placed in the `\drivers` folder.
4. The updated license file enables the use of all purchased drivers on the specific WriteNow! unit.

For more details, refer to the WriteNow! File System documentation.

This answer is automatically generated

Summary of Contents for Algocraft WriteNow! Series

  • Page 1 WriteNow! Series Single and Parallel In-System Programmers User’s Manual Rev. 1.05 UM00010105EN http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 2 Algocraft Warranty Information Algocraft warrants that this product will be free from defects in materials and workmanship for a period of 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 defective product without charge for parts and labor, or will provide a replacement in exchange for the defective product.
  • Page 3: Table Of Contents

    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 http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 4 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 http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 5 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 http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 6 +86-15250087885...
  • Page 7: 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.
  • Page 8: Model Comparison

    Yes, 100Mbit/s Not yet available Not yet available Not yet available Not yet available START, START, START, Low-Level Interface START, OK/ERR, BUSY, START_ENA[1..2], START_ENA[1..4], START_ENA[1..8], (Isolated) PRJ_SEL[0..5] OK/ERR[1..2], BUSY, OK/ERR[1..4], BUSY, OK/ERR[1..8], BUSY, PRJ_SEL[0..5] PRJ_SEL[0..5] PRJ_SEL[0..5] http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 9: Package Checklist

    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. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 10: Leds

    WriteNow! unit. You must copy these files to he driver file must be copied to the \drivers \sys folder, and the license file to folder. Please refer to WriteNow! File System on page 51 for more information. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 11: Getting Started

    1. Install Software Insert the Setup CD into your PC and install the WriteNow! software. 2. Launch the Project Generator Programs > Algocraft > Launch the Project Generator application, that is located under WriteNow! Software > Project Generator. 3. Create a New Project File >...
  • Page 12: Create A New Project, Step 1 Of 3

    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. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 13: Create A New Project, Step 2 Of 3

    When used as clock out, you can specify the output frequency in the frequency” field. We suggest leaving this line floating (HiZ) when not used, in order to decrease electrical noise on other ISP lines. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 14 The content of the 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, http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 15: Create A New Project, Step 3 Of 3

    It could be performed one site at once. “Finish” Click to end the Wizard. At this point, a WriteNow! Programming Project will be \Projects created in the directory, relative to the Project Generator application location. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 16: Configure Your Writenow! Instrument

    Connect WriteNow! to your target system through the ISP connector(s). To view the Debug > Show ISP Connections connections for your selected target device, select 9. Startup WriteNow! Connect WriteNow! to your PC through the provided Ethernet/serial cables. Finally, power up WriteNow! using the provided power supply. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 17: 10. Program The Target Device

    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. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 18: Where To Go From Here

    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); By building your own PC software that interfaces to the instrument (for more information, WriteNow! API 41). http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 19: Communication And Hardware Settings

    Communication and hardware Settings Communication settings This section describes the simple procedure for the COM/LAN setup. 115,200 WriteNow! communicates at bps by default. Device Manager On windows system, check the properly COM port number in the window: http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 20: Lan

    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. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 21: Hardware Settings

    Firmware Upgrade Firmaware Upgrade To update the firmware, click on the button. Then you can choose the Programs > Algocraft > WriteNow! Software > properly wncore01 version. It is located in sys. Wait until the firmware will be updated successfully: essary to reboot the system.
  • Page 22: Hardware Test

    WriteNow! User's Manual Hardware Test The diagnostic procedure is a very easy way to verify if some hardware faults occur. Use the provided test-board to check the connections to all the ISP sites. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 23: Image File Creation

    When the image file is created, the CRC32 and the MD5 values are shown in order to check the file integrity information: The CRC32 and MD5 values are not calculated on the entire file, but it skips the first bytes. In the following sections will be explained all the input data types. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 24: Adding A Source File

    This option is useful if you want to program some bytes which are not included in the firmware. For example, if you want to program the option bytes of STM32 devices, you can set the properly RDP level, BOR level ecc. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 25: Exclude Range

    #volatile –o write –s 2 -a h0 -l 6 -d [h00 h90 h96 h90 h48 h86] Alternatively, you can skip steps 1 to 3, but you must manually edit your programming project by inserting an appropriate #data –o set –c out -t volatile command and Data In/Out Commands 29). http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 26: Conversion Report

    ***** File Creation Report ***** Block Type Start Addr End Addr ================================== Fill Area: 00000000 - 0000FFFF Data Area: 00010000 - 0001FFFF It is very important to be sure which is the properly blank value of the device. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 27: Commands

    ERR Answer An ERR answer is composed of zero or more characters (usually the hexadecimal error code), followed by the character, followed by the return character ( This is an example of a WriteNow! ERR answer: h40000103!{\n} http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 28: Busy Answer

    Tools > WriteNow! Terminal simplify the communication with the instrument. Just select to open the Terminal window. Command Reference The following pages list all of the WriteNow! commands, grouped by function, together with their syntax and usage examples. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 29: Data In/Out Commands

    Sets the output file to receive binary data, and subsequently reads data from the target device: #data -o set -c out -t file -f \images\dump.bin > #prog -o cmd -c read -m flash -s h8000 -t h8000 -l h8000 > http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 30: Execution Command

    1, for example, the following command can be sent: #status –o get -p err -v 1 -l 2 h5000001,23,”Error: Timeout occurred” > The answers indicates that Project line 23 issued a h5000001 error, and the text between quotes explains the error. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 31: File System Commands

    >  CRC32/MD5 values: #fs -o get -f images/myimages.wni -p info -r MD5 "12AE7CF2282A7A2AE6003633E7FD9805"> #fs -o get -f images/myimages.wni -p info -r CRC32 hBF48138B> These commands return the MD5/CRC32 values without checking the data integrity. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 32: Programming Commands

    <tgt addr> Target start address. <len> Data length. <src addr> Source (buffer) start address. <ver mode> Verify mode: read chks <dst addr> Destination start address. Description Perform various programming settings and operations on the target device. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 33: Status Commands

    #status -o get -p err -v 1 -l 1 H50000023 > #status -o get -p err -v 1 -l 2 H50000023,71,"Connection Error." > #status -o get -p err -v 1 -l 3 H50000023,71,"Connection Error.","algo_api",337 H10000000,71,"","st701_cmds",432 H10000000,71,"","st701_entry",287 H10000000,71,"","st701_icc",208 H10000001,71,"","hal_icc1",144 > http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 34: System Commands

    <the prj sel> setting. Description Examples  Sets a new serial baud rate: #sys -o set –p br –v 115200 >  Retrieves #sys -o get -p sn 00100>  Associating the project for Standalone Mode: http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 35 #sys -o set -p gw -v 10.0.0.1 > The new configuration will be added after the programmer reboot .  Reset via software: #sys -o rst > The programmer will be restarted after about 5 seconds. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 36: Time Commands

    Sets the date/time to February 1 , 2011, at noon: #time –o set –p date –d 2011/02/01 > #time –o set –p time –d 12:00:00 >  #time –o get –p date 2011/02/01> #time –o get –p time 12:02:05> http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 37: Volatile Memory Commands

    #volatile –o write –s 1 -a h0 -l 6 -d [h00 h90 h96 h90 h48 h85] >  Retrieves data from site 1 volatile memory: #volatile -o read -s 1 -a h0 -l 6 1,[h00 h90 h96 h90 h48 h85]> http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 38 +86-15250087885...
  • Page 39: Standalone Mode

    Valid at the end of project execution (when BUSY is low). Indicate, for each programming site(s), the success state of the programming project. (OK = high, ERR = low). The following diagram illustrates the timing for the Low-Level Interface signals. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 40: Project Assignment

    To do so, in the WriteNow! Project Generator application select Settings . In the window that will appear, associate PRJ_SEL values to project names by “Set Project” clicking the button for each PRJ_SEL configuration you wish you setup. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 41: Writenow! Api

    Visual C++ projects); “wn_comm.dll”  Copy the file in the same folder of your application executable (this file must also be redistributed with your application). The typical program flow for interfacing with WriteNow! is the following: http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 42: Function Reference

    WriteNow! User's Manual 1. Open communication (WN_OpenCommPort() function) 2. Execute commands (WN_ExeCommand() function) (WN_SendFile() and WN_ReceiveFile() functions) 4. Close communication (WN_CloseCommPort() function) Function Reference API functions are listed and explained alphabetically in the following pages. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 43: Wn_Closecommport()

    Closes the communication channel with the instrument. Return Value The function call was successful. The function call was unsuccessful. Call the WN_GetLastErrorMessage() function to get error information. Parameters handle Communication handle returned by the WN_OpenCommPort() function. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 44: Wn_Execommand()

    Time (in milliseconds) before the function times out. type Type of answer received: can be: WN_ANSWER_ACK (an OK frame was received); WN_ANSWER_NACK (an ERR frame was received); WN_ANSWER_TOUT (command timed out before an answer could be received). http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 45: Wn_Getframe()

    Communication handle returned by the WN_OpenCommPort() function. answer The answer read back from the instrument in response to the command sent. maxlen Maximum length, in characters, of the answer buffer. timeout_ms Time (in milliseconds) before the function times out. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 46: Wn_Getlasterrormessage()

    WINAPI WN_GetLastErrorMessageW (wchar_t *error_msg, unsigned long string_len); Description Returns a string containing the last WriteNow! error message. Parameters error_msg The string that will receive the error message. msg_len Length, in characters, of the error message buffer. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 47: Wn_Receivefile()

    , file transfer will be executed even if a file with the same name and CRC exists on the PC; if FALSE , file transfer will be executed only if necessary. progress Address of a callback function that will receive progress information, or if not used. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 48: Wn_Sendfile()

    , file transfer will be executed even if a file with the same name and CRC exists on the instrument; if FALSE , file transfer will be executed only if necessary. progress Address of a callback function that will receive progress information, or if not used. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 49: Wn_Sendframe()

    Return Value The function call was successful. The function call was unsuccessful. Call the WN_GetLastErrorMessage() function to get error information. Parameters handle Communication handle returned by the WN_OpenCommPort() function. command A valid WriteNow! command. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 50: Wn_Opencommport()

    The function call was unsuccessful. Call the WN_GetLastErrorMessage() function to get error information. Parameters com_port Communication port. Can be “COM” “LAN” “USB” com_settings RS-232 settings for “COM” port (e.g.: ”COM1,115200” Ethernet settings for “LAN” port (e.g.: ”192.168.1.100:2101” Empty string for “USB” port. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 51: Writenow! File System

    The files required by the instrument are organized in various folders, as explained below: \drivers folder  : contains programming algorithms (.wnd files). These files are provided by Algocraft. \sys folder:  contains systems files, such as programming licenses, firmware files, etc.
  • Page 52 You can create additional folders, but the four folders listed above must always be present on the WriteNow! file system and must not be removed. Additionally, do not remove or rename the contents of the \SYS folder. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 53 WriteNow! User's Manual http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 54 +86-15250087885...
  • Page 55: Protection Mode And Data Encryption

    In operator mode, it is not possible to transfer data to/from the programmer. For example: #sys -o set -p protection --password ALGOCRAFT --enable yes > At this time, the currently protection level is 02 and the user mode is operator.
  • Page 56 #fs -o dec --if \images\myimage.wni.wnef --of \images\myimage.wni Protection model. Protection: disable User: None none Protection: enable User: Operator Files to be transferred must be none encrypted with [PASSWORD] in wnef format Protection: enable User: Admin Any files can be transferred none http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 57: Power And Relay Options

    5.5V when a the #relay –o open command is executed). This is useful for driving an external relay barrier. AN001_relaybarrier.pdf \doc For more information, please see the in the folder. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 58 +86-15250087885...
  • Page 59: Demultiplexer Module

    No external lines are needed in order to control the multiplexer since the lines provided by WriteNow! ISP connector A and B (already available to external expansion module purpose). In the WN! Project generator GUI, you can set the properly channel in this way: http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 60 #exec -o prj -f <project> -s <sites> --dmux <channel> Nmb Boards Demux model Models ( in parallel ) Nmb Boards ( in demultiplexing ) WN-PRG01A WN-DM2X2A WN-DM2X3A WN-DM2X4A WN-PRG02A WN-DM4X2A WN-DM4X3A WN-DM4X4A WN-PRG04A WN-DM8X2A WN-DM8X3A WN-DM8X4A WN-PRG08A http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 61: Connectors

    WN-PRG04A ISPConnector WN-PRG04A ISP Connector Site 4 Site 3 Site 2 Site 1 ISP A Connector ISP BConnector Site 4 Site 3 Site 2 Site 1 Site 8 Site 7 Site 6 Site 5 WN-PRG08A ISP Connectors http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 62: Low-Level Interface Connector

    DUP (Device Under Programming) keeping ISP wiring length as short as possible. Low-Level Interface Connector In the WN-PRG01A model, low-level interface signals are included in the ISP connector, which is called “ISP & LOW-LEVEL INTERFACE” connector. Low-Level Interface Connector Low-Level Interface Connector http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 63 OK/ERR7 Site 7 OK/ERR (Output, push-pull) OK/ERR8 Site 8 OK/ERR (Output, push-pull) All low-level interface lines are isolated from system GND (and are referenced to GNDI), except for the PWR line, which is referenced to GND. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 64: Ground Domains

    ATE and Target Ground Domains In order to avoid undesired current paths between the programmer and the target board, we suggest to use a power supply with a floating output (ground not referenced to the Earth potential). http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 65: Specifications

    ISP and Low-Level Interface connectors are DIN48 male connectors. We suggest using the following compatible female connectors. The ribbon cable is available in order to improve the signal integrity through many attributes, like impedance matching, electromagnetic interference(EMI) and crosstalk. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 66: Mechanical Specifications

    Catalog Part Number: Mouser 649-8693488637E1L Cables: Ribbon cable, 30 cm, DIN41612 connector 48W female/male Manufacturer: Algocraft Manufacturer Part Number: WN-RC30FMA Catalog Part Number: N/A Mechanical Specifications The following drawings detail the mechanical dimensions of the various WriteNow! models. http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 67 WriteNow! User's Manual http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 68 WriteNow! User's Manual http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 69 WriteNow! User's Manual http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 70 WriteNow! User's Manual http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...
  • Page 71: Troubleshooting

    Get full access to WriteNow! folder on Windows 10 After the Software installation, if you choose to save it under the default directory C:\Program Files (x86)\Algocraft\WriteNow! Software X.XX ), make sure you have full control of it. Open File Explorer and then locate the command utility line folder.
  • Page 72 WriteNow! User's Manual Click the Add button. The "Permission Entry" window will appear on the screen. Click "Select a principal" and select your account. Set permissions to "Full control". http://smh-tech.com.cn http://algocraft.com.cn sales@smh-tech.com.cn +86-15250087885...

Table of Contents