Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


The FlashPro-ARM Programmer has the ability to automatically program the target device's serial number (SN) and save it in flash memory. New SNs can be created automatically by incrementing a starting base SN, or can be taken from a file created by the user. SNs that have been used are stored in separate data files to account for devices that have already been programmed. In addition to this SN, the model name, group, and revision number can also be programmed to the target device. The user can specify the display SN format and location in flash memory where this information will be stored.
The SN is programmed when "Auto Program" or "Write SN/Model" buttons are pressed and the SN feature is enabled. When the "Auto Program" function is activated the SN is programmed to the target's device memory at the same time as code data. If "Auto Program" fails for any reason then the new SN is neither created nor programmed to the device.
The software also allows the microcontroller to retain its SN if one has already been assigned to it. Every time a device is programmed and serialization is enabled the contents of the target's memory are scanned for an existing SN. If the SN is found at the specified location the message in Figure 8.1 will appear and allow the user to decide to keep the old SN, program a new SN from the list, or program a SN typed manually.

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:

...

  • Model/Group/Revision - In addition to the aforementioned SN formats, 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.

  • BarCode Scanner - 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.



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

Anchor
_Toc452148497
_Toc452148497
8.2 Serial Number Display Format

...

Addr: 0x0, Content: 0x5678
Addr: 0x2, Content: 0x1234

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.

...


The Device Serialization box, located on the main programming dialog screen shown in Figure 4.1 and isolated in Figure 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 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.

Anchor
_Toc452148560
_Toc452148560
Figure 8.4: Seen in the main dialog window, 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 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

...

  • number of the SN found in data base 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.


When the \Paste “Paste to Notepad" button is pressed, then the pending Serial Number list can be saved in format ready to be used as a valid SN data file if required.

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