Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service
   Home P&E Customer Support FAQs - Frequently Asked Questions FAQ ID # 41
FAQ ID # 41
 
Question
How can I use CPROG to program dynamic data, such as a serial number, into my product where the number changes for each device I am programming?
 
Answer
There is an easy way to implement programming serial numbers into target boards via PEmicro's CPROG applications. The commands "CS: Choose serial file" and "PS: Program Serial" can be used to program sequential serial numbers. Use the Serialize Utility attached to this FAQ to help create the serial file.

If you want non-sequential serial programming, then do the following: Use a Delphi or Visual C application to rewrite your scriptfile before you run the programmer each time. There is a command "Program Bytes" which is ideal for programming a serial number.

Run CPROG08SZ with the following script file:

CM C:PEMICROPROG08SZ908_GP32_highspeed.08P 
SS C:PEMICROPROG08SZMAIN_APP.S19
EM
BM
PM ; Program the main user block of code
VM ; Verify the main user block of code
PB F000 12 ;Serial Number Low
PB F001 34 ;Serial Number Hi

Change the serial number in the text script file and run CPROG08SZ for next board...
CM C:PEMICROPROG08SZ908_GP32_highspeed.08P 
SS C:PEMICROPROG08SZMAIN_APP.S19
EM
BM
PM
VM ; Verify the main user block of code
PB F000 12 ;Serial Number Low
PB F001 37 ;Serial Number Hi

Change the serial number in the text script file and run CPROG08SZ for next board...
CM C:PEMICROPROG08SZ908_GP32_highspeed.08P 
SS C:PEMICROPROG08SZMAIN_APP.S19
EM
BM
PM
VM ; Verify the main user block of code
PB F000 12 ;Serial Number Low
PB F001 3A ;Serial Number Hi


Note that a similar procedure is used with PEmicro's Cyclone Pro/Max stand alone programming launch application.
 
Related Downloads
SERIALIZE - Use an Automated Serial Number - Allows the generation of a .SER serial number description file. This graphical utility sets up a serial number which will count according to the bounds set by the user. The .SER file can be called by the PROG flash programmer to program a serial number into the target, or loaded into the cyclone standalone image.

 
Architectures Categories Products
HC08, HCS08, HC(S)12(X), 68HC16, CPU3xx, ColdFire V2/V3/V4, Power MPC5xx/8xx, Qorivva MPC5xxx, RS08, ColdFire V1 Flash Programming Software, Stand-Alone Programmer BDML_PPCNEXUS, BDM MultilinkReplace, CPROG08SZ, USB-ML-MON08, PKGHCS08-USB, PROGHCS08, USB-ML-12, PKG12Z_USB, PROG12Z, PROG16Z, PROG32Z, PKGCFZ, PROGCFZ, PROGMCZ, PROGPPCZ, CABPPCNEXUS, PKGPPCNEXUS, USB-ML-CF, USB-ML-PPCBDM, PKGPPCBDM-USB, PKGCFZ_PRO, USB-ML-16/32, USB-ML-PPCNEXUS, PKG16Z-USB, PKG32Z-USB, UNIT12Z-LINUX-DIST, DEMO9S08QE8
 
Please rate this FAQ to help us improve our support
0 means "not helpful"
10 means "very helpful"
0 1 2 3 4 5 6 7 8 9 10

© 2017 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement