Cart New Account Login Search
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 P&E's CPROG applications. 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 P&E's Cyclone Pro/Max stand alone programming launch application.
 
Related Downloads
none
 
Architectures Categories Products
HC08, HCS08, HC(S)12(X), 68HC16, CPU3xx, ColdFire V2/V3/V4, MCORE, Power Architecture 5xx/8xx, ARM, Power Architecture 55xx/56xx (Nexus), RS08, ColdFire V1 Flash Programming Software, Stand-Alone Programmer CPROG08SZ, USB-ML-MON08, PKGHCS08-USB, PROGHCS08, USB-ML-12, PKG12Z_USB, PROG12Z, PROG16Z, PROG32Z, PKGCFZ, PROGCFZ, PROGMCZ, PROGPPCZ, CABPPCNEXUS, PKGPPCNEXUS, BDML_PPCNEXUS, USB-ML-CF, USB-ML-PPCBDM, PKGPPCBDM-USB, PKGCFZ_PRO, USB-ML-16/32, USB-ML-PPCNEXUS, PKG16Z-USB, PKG32Z-USB, BDM MultilinkReplace, UNIT12Z-LINUX-DIST
 
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
© 2010 P&E Microcomputer Systems
Website Terms of Use and Sales Agreement