Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

Anchor
_Toc452148557
_Toc452148557
Figure 8.1: If an MCU already contains serialization information at a specified location then a conflict window will appear giving the user the option to retain the old serial number, or program in a new one.

The Serialization Dialog screen, shown in Figure 8.2, allows the user to configure how serialization is done. Serialization can be enabled, or disabled, by selecting the check mark in the ENABLE Serialization check-box. When serialization is disabled all edit lines and check boxes are disabled. When serialization is enabled, most fields have to be set to ensure that the result will be as the user expects. The necessary fields include:

...

Anchor
_Toc452148558
_Toc452148558
Figure 8.2: Serialization options can be selected here.

Anchor
_Toc452148497
_Toc452148497
8.2 Serial Number Display Format

...

Anchor
_Toc452148559
_Toc452148559
Figure 8.3: This window will appear when there is a conflict between memory allocated to code and the SN. To avoid this pop-up, select the option to "Remove code contents in the location where the serialization and model are defined" in Figure 8.2.
The location in the target device's flash memory where the SN will be stored is specified in the \Memory Location - SN Start Address in Memory" field of the serialization dialog screen (see Figure 8.3). Specified address must be even and should be specified in empty memory space, not used by program code or data block. However, if you'd like to integrate the SN with existing code, by programming the SN to a code location, then check the box Remove code contents in the location where the serialization and model are defined .
The SN memory formats will be described in the following subsections.

...


When this format is selected the serial number is encoded using American Standard Code for Information Interchange (ASCII) notation. In general, each character of the SN is assumed to be an ASCII character and converted to its byte-code representative using the standard ASCII table (each character of the SN will occupy 1 byte). The number of bytes used is directly proportional to the number of characters used in the display format (F0, F1, and F2 - 8 bytes; F3 - 4 bytes; F4 - 9 bytes; F5 - 10 bytes; F6, and F7 - between 4 to 256 bytes). All ASCII serial numbers are stored one byte at a time, where the first ASCII character occupies the lowest byte address (first address).
Display Format: YYYY-1234 - size in FLASH - 8 bytes
SN: 20030123 will be encoded as:
YYYY - : 2003 -> = 0x32 0x30 0x30 0x33 (ASCII)
1234 - : 0123 -> = 0x30 0x31 0x32 0x33 (ASCII)
<-----------Addr--------->
00-01-02-03-04-05-06-07
32 30 30 33 30 31 32 33 -> ASCII
Display Format: YYMM-1234 - size in FLASH - 8 bytes
SN: 03030123 will be encoded as:
YYMM - : 0303 -> = 0x30 0x33 0x30 0x33 (ASCII)
1234 - : 0123 -> = 0x30 0x31 0x32 0x33 (ASCII)
<--------Addr---Addr--------->
00-01-02-03-04-05-06-07
30 33 30 33 30 31 32 33 -> ASCII
Display Format: YYMMDD-1234 - size in FLASH - 10 bytes
SN: 0405110123 will be encoded as:
YYMMDD - : 040511 -> = 0x30 0x34 0x30 0x35 0x31 0x31 (ASCII)
1234 - : 0123 -> = 0x30 0x31 0x32 0x33 (ASCII)
<--------------Addr------------->
00-01-02-03-04-05-06-07-08-09
30 34 30 35 31 31 30 31 32 33 -> ASCII
Display Format: YYDDD-1234 - size in FLASH - 9 bytes
SN: 042140123 will be encoded as:
YYDDD - : 04214 -> = 0x30 0x34 0x32 0x31 0x34 (ASCII)
1234 - : 0123 -> = 0x30 0x31 0x32 0x33 (ASCII)
<-------------Addr----------->
00-01-02-03-04-05-06-07-08
30 34 32 31 34 30 31 32 33 -> ASCII
Display Format: 12345678 - size in FLASH - 8 bytes
SN: 12345678 will be encoded as:
12345678 - 12345678 -> = 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 (ASCII)
<-----------Addr--------->
00-01-02-03-04-05-06-07
31 32 33 34 35 36 37 38 -> ASCII
Display Format: 1234 - size in FLASH - 4 bytes
SN: 1234 will be encoded as:
1234 - 1234 -> 0x31 0x32 0x33 0x34 (ASCII)
<---Addr-->
00-01-02-03
31 32 33 34 -> ASCII
Display Format: Custom - size in FLASH - between 4 to 256 bytes
A SN entered using the \Custom“Custom" format is entered as a series of either an even number of HEX digits or any number of ASCII characters. This subsection deals only with storing the SN entered as a series of ASCII characters. The SN can be composed of anywhere between 4 and 256 characters.
SN sequence entered as ``02WX24S234'' will be encoded as:
0x30 0x32 0x57 0x58 0x32 0x34 0x53 0x32 0x33 0x34
<---------------Addr------------->
00-01-02-03-04-05-06-07-08-09
30 32 57 58 32 34 53 32 33 34 -> ASCII
Display Format: from File - size in FLASH - between 4 to 256 bytes
A SN entered using the \from “from File" format is read from the SN input file and can be a series of either an even number of HEX digits or any number of ASCII characters. Section 8.9 describes how to write a SN input file. This subsection deals only with storing the SN entered as a series of ASCII characters. The SN can be composed of anywhere between 4 and 256 characters.

SN sequence entered as ``02WX24S234'' will be encoded as:
0x30 0x32 0x57 0x58 0x32 0x34 0x53 0x32 0x33 0x34
<---------------Addr------------->
00-01-02-03-04-05-06-07-08-09
30 32 57 58 32 34 53 32 33 34 -> ASCII

...


Below is an example of a SN file containing information on three consecutively created serial numbers.
F0 200300011 m ( Sat, Mar 29,2003, 10:09 ) AS010X02-1v2.txt -01 R.0003-04-17
F0 200300012 . ( Sat, Mar 29,2003, 10:43 ) AS010X02-1v2.txt -01 R.0003-04-17
F0 200300013 u ( Sat, Mar 29,2003, 10:43 ) AS010X02-1v2.txt -01 R.0003-04-17
SNs can be saved as a unique SN per target device type, or saved as a unique SN across all devices type. When a unique SN per target device type is saved then a separate SN file should be used for each device type. If a unique SN across all device types is saved, then only one SN file name should be used.

...


The software also allows the user to program each device with separate HEX or ASCII data. This information is saved at a different memory location from the SN, and does not change after each programming cycle. This is used to program static information that should be the same for each target device, like the software revision number, model, etc. This extra data can be composed of anywhere between 2 to 32 characters.
This feature is enabled when the ENABLE check-box in the Model/Group/Revision group is selected (see Figure 8.2). When enabled, specify the number of bytes to be reserved for the desired text or data. Also, specify the memory address where this information will be stored on the target device (must be even address). Finally, enter the text or data to be saved and the format it should be stored in.

Anchor
_Toc452148504
_Toc452148504
8.6 BarCode Scanner Setup


The BarCode Scanner can be used as an input mechanism for new SNs. When enabled, scanning a barcode will set the Next SN (shown in Figure 4.1) to the value read by the BarCode Scanner. For convenience, the software can be configured to start the Auto Program procedure immediately after the BarCode Scanner reads a new number, by selecting the Start AUTOPROGRAM following BarCode scan check-box.
The BarCode Scanner should be connected to the programming PC computer in series with the keyboard using the Y cable or to the USB port. Refer to your BarCode Scanner manual for setup details.
BarCode Scanner is enabled when the ENABLE check-box in the BarCode Scanner group is selected. Depending on the output from the scanner choose the right terminating character, although commonly the default CR (ENTER) character is used. Finally, change the Display Format to "Custom" and select the proper Memory Format as either HEX or ASCII.

Note
: Only ASCII characters from 0x21 to 0xFE are accepted from the BarCode Scanner. Others characters like white characters (space, tab) are ignored. All characters are converted to lower case characters.

...


The Device Serialization box, located on the main programming dialog screen and shown in Figure 4.1 and isolated in Figure 8.4)8.4, contains SN and model information. The first two read-only lines contain information taken from the target device during the read process. The first line shows the Model/Group/Revision text and the second line shows the SN. The following two lines contain the SN and model information that will be programmed next generated automatically according to the Serialization setup.
The current target's SN and model information can be read at any time by pressing the "READ / COPY" button located in the main dialog shown in Figure 4.1. Main GUI


Anchor
_Toc452148560
_Toc452148560
Figure 8.4: Seen in the main dialog windowMain GUI, this serialization status box will display the current device's serial number and the next serial number to be programmed.

Anchor
_Toc452148506
_Toc452148506
8.8 Serialization Report Dialog Screen


The Serialization Report Dialog Screen shows the results of the serialization procedure. The report contains detailed information on two SNs, specifically the highest SN and the one selected. The report also shows all programmed units along with their SN, and unmodified or overwritten SNs coming from reprogrammed units (New SN[.], unmodified SN[u], overwritten SN[o], manual SN[m]). Detailed information about all programmed units can be viewed using the Notepad text editor by pressing the Notepad button. A summary of created serial numbers is displayed in the white report box (see Figure 8.5). If for any reason a A SN entry is wrong it can be removed from the database by pressing the Delete SN button (the delete operation is not reversible).

Anchor
_Toc452148561
_Toc452148561
Figure 8.5: Serialization report gives a summary of all the serial numbers programmed using the selected file.

Anchor
_Toc452148507
_Toc452148507
8.9 Serial Number Input File


The FlashPro-ARM Programmer allows input of programmer can input serial numbers from user created data files. When the data file is used, change the Display Format to "from File" and select the proper Memory Format as either HEX or ASCII.
The SN data file should contain a proper header followed by a list of SNs specified using the following commands (a command is preceded by the # character). Any data entered after a semicolon ((wink) ;) will be ignored and can be used for commenting. Use the following list of commands:

  • #SN LIST ; . Header, data file contains a SNs list.

  • #SN SIZE number; optional. Overwrite size of the custom defined serial number size (see Figure 8.2). If the #SN SIZE is not specified, then the data specified in the serialization dialog screen is used.

  • #SN HEX MSB ;optional. Select the HEX MSB first format regardless setup of the setting in the serialization dialog screen.

  • #SN HEX LSB ;optional. Select the HEX LSB first format regardless setup of the setting in the serialization dialog screen.


When the format is specified as the HEX format ( #SN HEX MSB or #SN HEX LSB) then the string can contain gaps between numbers or 0x on the front. All gaps will be removed. Up to 256 characters (gaps excluded) can be specified for one numberSN. All characters must be located in one line for the same SN. Example:
The HEX number:
A434BC5696AD10ACF0
can be specified as:
A434BC5696AD10AC
or
0xA434BC5696AD10AC
or
A434 BC56 96AD 10AC
or
A4 34 BC 56 96 AD 10 AC F0

  • #SN ASCII ; optional. Select an ASCII format regardless setup of the setting in the serialization dialog screen.

  • #SN PREFIX string; optional.

  • #SN SUFFIX string; optional. Serial number SN can contains up to 32 characters. If part some of characters are the same in specified serial number list, then the repeatable part can be specified in the #SN PREFIX, or #SN SUFFIX, and only modified part of serial numbers can be listed. Serial number is combined as a string starting from with prefix, modified part and ending with suffix. For example if the following serial number should be created:


AB2007X-0001-BMR
AB2007X-0002-BMR
AB2007X-0003-BMR
can the SN be specified as follows:
#SN_PREFIX AB2007X-
#SN_SUFFIX -BMR
and list of following serial numbers:
0001
0002
0003
Prefix and/or suffix numbers can be modified in the list if required, e.g.
#SN_PREFIX AB2007X-
#SN_SUFFIX -BMR
0001
0002
0003
#SN_PREFIX AB2007V-
0001
0002
0003
that defined following serial numbers:
AB2007X-0001-BMR
AB2007X-0002-BMR
AB2007X-0003-BMR
AB2007V-0001-BMR
AB2007V-0002-BMR
AB2007V-0003-BMR
Example of the Serial Number list (5 lines only in this example):
; =====================================================
; Serial Number List
; SN format - ASCII
; =====================================================
#IEEE_SN_LIST
#SN_SIZE 12
WX5E2007001P
WX5E2007002P
WX5E2007003P
WX5E2007004P
WX5E2007005P
; =====================================================
The same Serial Number list with specified prefix /suffix:
; =====================================================
; Serial Number List
; SN format - ASCII
; =====================================================
#IEEE_SN_LIST
#SN_SIZE 12
#SN_PREFIX WX5E2007 ;any ASCII character
#SN_SUFFIX P
001
002
003
004
005
; =====================================================
When

To use the SN data file is prepared, then at the first the data base file should be opened select the “from File” option in the Serialization setup (see Figure 8.2). When , the desired Serial Number Memory Format is selected, then and finally using the "Serial Numbers SN Input File" button located in the main dialog screen (Figure 4.1) the desired SN file should be opened. Selected file is converted to final format and all listed serial numbers are verified with the data base file if there was note used before. If the specified SN have been used before, then these numbers Main GUI, load the input file. The selected file shown in the “SN Input File” path in the Main GUI will be converted to specified format and all listed SNs will be displayed, except those already used and stored in the “Serial Numbers' Output Filename” file. SN used before are removed from the SN list; however, to reset the list, simply change or delete the output file and the serialization process will start from the beginning.

For this reason it is important to preserve the SN output file if serialization is to be continued across multiple programming sessions. When the SN file is read and verified, then the pending SN list is displayed in the screen (shown in Figure 8.6 ) with the following information displayed on the top of the list:

  • number of the SN found in data base database and removed from the pending list,

  • number of the Serial Numbers with incorrect size and removed from the pending list.

  • number of the accepted SN.

...

Anchor
_Toc452148562
_Toc452148562
Figure 8.6: Serial numbers read from a file.