NSZ
partition read remove shift shrink write Downloadnshex - NSZ
The NSZ command obtains serial data from the specified NSZ file.
The data obtained with the NSZ command is removed from the NSZ file permanently. It cannot be returned back.
Syntax
target = NSZ(file)
Argument | Description |
---|---|
file | The name of the NSZ file. |
Examples
serial = NSZ(eth.nsz)
This command reads the serial data from the "eth.nsz" file. The data is stored in a new HEX image named "serial".
# serial.txt - Merge Serial Numbers
#read the application HEX file
app = read(app.hex)
#obtain unique serial number
serial = NSZ(serial.nsz)
#obtain MAC address for the Ethernet
eth = NSZ(ethernet.nsz)
#combine everything together
app = merge(app,serial)
app = merge(app,eth)
write(app,production.hex)
This example shows how unique serial data may be merged into a HEX file. It receives serial data from two separate NSZ files. One NSZ file provides a serial number. The second NSZ file provides a MAC address to be used with the Ethernet.
The pieces are mixed together with the merge command and saved as "production.hex". The file is ready to be programmed on the chip
© 2007-2025 Northern Software Inc. All Rights Reserved.