Hi Guys
I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed to
create a same firmware thousand times with different embedded serial
numbers and get the respective hex.
Can someone help out with automating this process. I guess writing a shell
script or something with change in the serial number through vi editor and
building the project with saving the hex every time can solve the issue.
However even after multiple tries I was not successful in this.
I would really appreciate any help or pointers in this.
Tx & Rgds
Shashank
--
Shashank Maheshwari
LPCXpresso Build Automate
Started by ●March 21, 2014
Reply by ●March 21, 20142014-03-21
Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
If you need a serial number with a specific meaning for you to
distinguish the boards and their options you can follow what Vladimir said.
If you need a simple serial number you coud alternatively use the LPC
11xx microcontroller unique serial number written by NXP during
manufacturing. You could also use it to generate secret passwords or
public keys.
To read the LPC11xx serial number it is necessary to use an IAP command:
ReadUID that is described on section 26 if I remember well.
It would be interesting to know that you can also read the type of the
microcontroller reading the CPUID register that should be described in
section 28. If I remember well also for Cortex-M0 parts CPUID is
directly readable because is memory mapped.
>
> Tx & Rgds
> Shashank
> --
> Shashank Maheshwari
>
>
>
>
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
Twitter
LinkedIn
SlideShare
Contact me: Skype micron.engineering
Designed with WiseStamp -
Get
yours
---
Questa e-mail priva di virus e malware perchattiva la protezione avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
If you need a serial number with a specific meaning for you to
distinguish the boards and their options you can follow what Vladimir said.
If you need a simple serial number you coud alternatively use the LPC
11xx microcontroller unique serial number written by NXP during
manufacturing. You could also use it to generate secret passwords or
public keys.
To read the LPC11xx serial number it is necessary to use an IAP command:
ReadUID that is described on section 26 if I remember well.
It would be interesting to know that you can also read the type of the
microcontroller reading the CPUID register that should be described in
section 28. If I remember well also for Cortex-M0 parts CPUID is
directly readable because is memory mapped.
>
> Tx & Rgds
> Shashank
> --
> Shashank Maheshwari
>
>
>
>
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
SlideShare
Contact me: Skype micron.engineering
Designed with WiseStamp -
Get
yours
---
Questa e-mail priva di virus e malware perchattiva la protezione avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
Reply by ●March 21, 20142014-03-21
Use serialID device (from microchip I think), it 3 pin SOT23 or smaller
SC70.
R.
From: l... [mailto:l...] On Behalf Of
M. Manca
Sent: Friday, March 21, 2014 10:17 AM
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
If you need a serial number with a specific meaning for you to
distinguish the boards and their options you can follow what Vladimir said.
If you need a simple serial number you coud alternatively use the LPC
11xx microcontroller unique serial number written by NXP during
manufacturing. You could also use it to generate secret passwords or
public keys.
To read the LPC11xx serial number it is necessary to use an IAP command:
ReadUID that is described on section 26 if I remember well.
It would be interesting to know that you can also read the type of the
microcontroller reading the CPUID register that should be described in
section 28. If I remember well also for Cortex-M0 parts CPUID is
directly readable because is memory mapped.
>
> Tx & Rgds
> Shashank
> --
> Shashank Maheshwari
>
> ----------------------
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
Twitter
LinkedIn
mo-manca%2F7%2Fa15%2F479%2F>
SlideShare
>
Contact me: Skype micron.engineering
Designed with WiseStamp -
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
yours
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
---
Questa e-mail priva di virus e malware perchattiva la protezione
avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
SC70.
R.
From: l... [mailto:l...] On Behalf Of
M. Manca
Sent: Friday, March 21, 2014 10:17 AM
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
If you need a serial number with a specific meaning for you to
distinguish the boards and their options you can follow what Vladimir said.
If you need a simple serial number you coud alternatively use the LPC
11xx microcontroller unique serial number written by NXP during
manufacturing. You could also use it to generate secret passwords or
public keys.
To read the LPC11xx serial number it is necessary to use an IAP command:
ReadUID that is described on section 26 if I remember well.
It would be interesting to know that you can also read the type of the
microcontroller reading the CPUID register that should be described in
section 28. If I remember well also for Cortex-M0 parts CPUID is
directly readable because is memory mapped.
>
> Tx & Rgds
> Shashank
> --
> Shashank Maheshwari
>
> ----------------------
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
mo-manca%2F7%2Fa15%2F479%2F>
SlideShare
>
Contact me: Skype micron.engineering
Designed with WiseStamp -
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
yours
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
---
Questa e-mail priva di virus e malware perchattiva la protezione
avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
Reply by ●March 21, 20142014-03-21
Il 21/03/2014 10:06, Riscy ha scritto:
>
>
> Use serialID device (from microchip I think), it 3 pin SOT23 or
> smaller SC70.
>
Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
>
>
>
> R.
>
>
>
> *From:*l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* Friday, March 21, 2014 10:17 AM
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
>
>
>
>
> Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> >
> > Hi Guys
> >
> > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > needed to create a same firmware thousand times with different
> > embedded serial numbers and get the respective hex.
> >
> > Can someone help out with automating this process. I guess writing a
> > shell script or something with change in the serial number through vi
> > editor and building the project with saving the hex every time can
> > solve the issue. However even after multiple tries I was not
> > successful in this.
> >
> > I would really appreciate any help or pointers in this.
> If you need a serial number with a specific meaning for you to
> distinguish the boards and their options you can follow what Vladimir
> said.
>
> If you need a simple serial number you coud alternatively use the LPC
> 11xx microcontroller unique serial number written by NXP during
> manufacturing. You could also use it to generate secret passwords or
> public keys.
>
> To read the LPC11xx serial number it is necessary to use an IAP command:
> ReadUID that is described on section 26 if I remember well.
> It would be interesting to know that you can also read the type of the
> microcontroller reading the CPUID register that should be described in
> section 28. If I remember well also for Cortex-M0 parts CPUID is
> directly readable because is memory mapped.
> >
> > Tx & Rgds
> > Shashank
> > --
> > Shashank Maheshwari
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus ..
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it Twitter
>
> LinkedIn
>
> SlideShare
>
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
> Get
> yours
>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
Twitter
LinkedIn
SlideShare
Contact me: Skype micron.engineering
Designed with WiseStamp -
Get
yours
---
Questa e-mail priva di virus e malware perchattiva la protezione avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
>
>
> Use serialID device (from microchip I think), it 3 pin SOT23 or
> smaller SC70.
>
Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
>
>
>
> R.
>
>
>
> *From:*l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* Friday, March 21, 2014 10:17 AM
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
>
>
>
>
> Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> >
> > Hi Guys
> >
> > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > needed to create a same firmware thousand times with different
> > embedded serial numbers and get the respective hex.
> >
> > Can someone help out with automating this process. I guess writing a
> > shell script or something with change in the serial number through vi
> > editor and building the project with saving the hex every time can
> > solve the issue. However even after multiple tries I was not
> > successful in this.
> >
> > I would really appreciate any help or pointers in this.
> If you need a serial number with a specific meaning for you to
> distinguish the boards and their options you can follow what Vladimir
> said.
>
> If you need a simple serial number you coud alternatively use the LPC
> 11xx microcontroller unique serial number written by NXP during
> manufacturing. You could also use it to generate secret passwords or
> public keys.
>
> To read the LPC11xx serial number it is necessary to use an IAP command:
> ReadUID that is described on section 26 if I remember well.
> It would be interesting to know that you can also read the type of the
> microcontroller reading the CPUID register that should be described in
> section 28. If I remember well also for Cortex-M0 parts CPUID is
> directly readable because is memory mapped.
> >
> > Tx & Rgds
> > Shashank
> > --
> > Shashank Maheshwari
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus ..
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it Twitter
>
>
> SlideShare
>
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
> Get
> yours
>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
SlideShare
Contact me: Skype micron.engineering
Designed with WiseStamp -
Get
yours
---
Questa e-mail priva di virus e malware perchattiva la protezione avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
Reply by ●March 21, 20142014-03-21
I Use this code on LPC1114
#define IAP_LOCATION 0x1fff1ff1
typedef void (*IAP)(unsigned int [],unsigned int[]);
unsigned int gResult[4];
int main(void) {
unsigned int command[5];
IAP iap_entry;
iap_entry=(IAP) IAP_LOCATION;
command[0] = 58;
iap_entry (command, gResult);
}
after this the 128 bit serial number is stored in the global gResult.
Note that there are only a few bits that tend to differ between devices
Below is a selection of values received from a number of LPC1114 devices, so
if you want a shorter ID be careful which entries you select.
0x00000000,0x09091611,0x535306D4,0x4D2311F0
0x00000000,0x09091C11,0x535306D4,0x4D2315D6
0x00000000,0x09090B11,0x535306D4,0x4D231106
0x00000000,0x09090A11,0x535306D4,0x4D2316D3
0x00000000,0x0707f022,0x534d214a,0x4e469146
0x00000000,0x0505FE45,0x535213FC,0x4CAB5E1D
0x00000000,0x13130c20,0x53591daa,0x51c63062
0x00000000,0x09091B11,0x535306D4,0x4D2315D6
0x00000000,0x1818f704,0x53581b30,0x4fe8e38a
0x00000000,0x1313161f,0x53591daa,0x51c634ca
0x00000000,0x1313fa20,0x53591daa,0x51c62ebb
0x00000000,0x1818fe06,0x53581b30,0x4fe8cbf6
0x00000000,0x07072125,0x534D214A,0x4E4682A5
0x00000000,0x07071220,0x534d214a,0x4e467d36
0x00000000,0x07070120,0x534d214a,0x4e468923
0x00000000,0x0707E722,0x534D214A,0x4E469384
0x00000000,0x1313f51e,0x53591daa,0x51c62e4c
0x00000000,0x0707E924,0x534D214A,0x4E46937B
0x00000000,0x09091511,0x535306D4,0x4D2311F0
0x00000000,0x07070823,0x534D214A,0x4E46863C
0x00000000,0x0707031F,0x534D214A,0x4E46875C
0x00000000,0x07070B24,0x534D214A,0x4E467C17
0x00000000,0x07071923,0x534D214A,0x4E46801B
0x00000000,0x0F0FF640,0x534D214A,0x4E475B7F
0x00000000,0x09091611,0x535306d4,0x4d2311f0
0x00000000,0x09092116,0x53591da5,0x522f957f
0x00000000,0x09091b14,0x53591da5,0x522f94a5
0x00000000,0x0909f215,0x53591da5,0x522f90f3
0x00000000,0x0909f115,0x53591da5,0x522f90f3
0x00000000,0x09092217,0x53591da5,0x522f9587
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
M. Manca
Sent: 21 March 2014 09:55
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
Il 21/03/2014 10:06, Riscy ha scritto:
> Use serialID device (from microchip I think), it 3 pin SOT23 or
> smaller SC70.
>
Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
>
> R.
>
> *From:*l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* Friday, March 21, 2014 10:17 AM
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> >
> > Hi Guys
> >
> > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > needed to create a same firmware thousand times with different
> > embedded serial numbers and get the respective hex.
> >
> > Can someone help out with automating this process. I guess writing a
> > shell script or something with change in the serial number through vi
> > editor and building the project with saving the hex every time can
> > solve the issue. However even after multiple tries I was not
> > successful in this.
> >
> > I would really appreciate any help or pointers in this.
> If you need a serial number with a specific meaning for you to
> distinguish the boards and their options you can follow what Vladimir
> said.
>
> If you need a simple serial number you coud alternatively use the LPC
> 11xx microcontroller unique serial number written by NXP during
> manufacturing. You could also use it to generate secret passwords or
> public keys.
>
> To read the LPC11xx serial number it is necessary to use an IAP command:
> ReadUID that is described on section 26 if I remember well.
> It would be interesting to know that you can also read the type of the
> microcontroller reading the CPUID register that should be described in
> section 28. If I remember well also for Cortex-M0 parts CPUID is
> directly readable because is memory mapped.
> >
> > Tx & Rgds
> > Shashank
> > --
> > Shashank Maheshwari
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus ..
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it Twitter
>
> LinkedIn
>
mo-manca%2F7%2Fa15%2F479%2F>
> SlideShare
>
>
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
>
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
> yours
>
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
> ----------------------
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
Twitter
LinkedIn
mo-manca%2F7%2Fa15%2F479%2F>
SlideShare
>
Contact me: Skype micron.engineering
Designed with WiseStamp -
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
yours
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
---
Questa e-mail priva di virus e malware perchattiva la protezione
avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
#define IAP_LOCATION 0x1fff1ff1
typedef void (*IAP)(unsigned int [],unsigned int[]);
unsigned int gResult[4];
int main(void) {
unsigned int command[5];
IAP iap_entry;
iap_entry=(IAP) IAP_LOCATION;
command[0] = 58;
iap_entry (command, gResult);
}
after this the 128 bit serial number is stored in the global gResult.
Note that there are only a few bits that tend to differ between devices
Below is a selection of values received from a number of LPC1114 devices, so
if you want a shorter ID be careful which entries you select.
0x00000000,0x09091611,0x535306D4,0x4D2311F0
0x00000000,0x09091C11,0x535306D4,0x4D2315D6
0x00000000,0x09090B11,0x535306D4,0x4D231106
0x00000000,0x09090A11,0x535306D4,0x4D2316D3
0x00000000,0x0707f022,0x534d214a,0x4e469146
0x00000000,0x0505FE45,0x535213FC,0x4CAB5E1D
0x00000000,0x13130c20,0x53591daa,0x51c63062
0x00000000,0x09091B11,0x535306D4,0x4D2315D6
0x00000000,0x1818f704,0x53581b30,0x4fe8e38a
0x00000000,0x1313161f,0x53591daa,0x51c634ca
0x00000000,0x1313fa20,0x53591daa,0x51c62ebb
0x00000000,0x1818fe06,0x53581b30,0x4fe8cbf6
0x00000000,0x07072125,0x534D214A,0x4E4682A5
0x00000000,0x07071220,0x534d214a,0x4e467d36
0x00000000,0x07070120,0x534d214a,0x4e468923
0x00000000,0x0707E722,0x534D214A,0x4E469384
0x00000000,0x1313f51e,0x53591daa,0x51c62e4c
0x00000000,0x0707E924,0x534D214A,0x4E46937B
0x00000000,0x09091511,0x535306D4,0x4D2311F0
0x00000000,0x07070823,0x534D214A,0x4E46863C
0x00000000,0x0707031F,0x534D214A,0x4E46875C
0x00000000,0x07070B24,0x534D214A,0x4E467C17
0x00000000,0x07071923,0x534D214A,0x4E46801B
0x00000000,0x0F0FF640,0x534D214A,0x4E475B7F
0x00000000,0x09091611,0x535306d4,0x4d2311f0
0x00000000,0x09092116,0x53591da5,0x522f957f
0x00000000,0x09091b14,0x53591da5,0x522f94a5
0x00000000,0x0909f215,0x53591da5,0x522f90f3
0x00000000,0x0909f115,0x53591da5,0x522f90f3
0x00000000,0x09092217,0x53591da5,0x522f9587
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
M. Manca
Sent: 21 March 2014 09:55
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
Il 21/03/2014 10:06, Riscy ha scritto:
> Use serialID device (from microchip I think), it 3 pin SOT23 or
> smaller SC70.
>
Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
>
> R.
>
> *From:*l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* Friday, March 21, 2014 10:17 AM
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> >
> > Hi Guys
> >
> > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > needed to create a same firmware thousand times with different
> > embedded serial numbers and get the respective hex.
> >
> > Can someone help out with automating this process. I guess writing a
> > shell script or something with change in the serial number through vi
> > editor and building the project with saving the hex every time can
> > solve the issue. However even after multiple tries I was not
> > successful in this.
> >
> > I would really appreciate any help or pointers in this.
> If you need a serial number with a specific meaning for you to
> distinguish the boards and their options you can follow what Vladimir
> said.
>
> If you need a simple serial number you coud alternatively use the LPC
> 11xx microcontroller unique serial number written by NXP during
> manufacturing. You could also use it to generate secret passwords or
> public keys.
>
> To read the LPC11xx serial number it is necessary to use an IAP command:
> ReadUID that is described on section 26 if I remember well.
> It would be interesting to know that you can also read the type of the
> microcontroller reading the CPUID register that should be described in
> section 28. If I remember well also for Cortex-M0 parts CPUID is
> directly readable because is memory mapped.
> >
> > Tx & Rgds
> > Shashank
> > --
> > Shashank Maheshwari
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus ..
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it Twitter
>
>
mo-manca%2F7%2Fa15%2F479%2F>
> SlideShare
>
>
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
>
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
> yours
>
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
> ----------------------
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus .
logo
*
Massimo Manca*/, Micron Engineering/
via della Ferriera, 48 33170 Pordenone PN ITALIA
Tel: 39 0434 1856131| Mobile: 39 349 4504979
www.micronengineering.it
mo-manca%2F7%2Fa15%2F479%2F>
SlideShare
>
Contact me: Skype micron.engineering
Designed with WiseStamp -
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>Get
yours
g%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26de
st%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%2
53Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
---
Questa e-mail priva di virus e malware perchattiva la protezione
avast! Antivirus.
http://www.avast.com
[Non-text portions of this message have been removed]
Reply by ●March 22, 20142014-03-22
Thanks everyone for so many pointers !!
@phil.. I'll try this method and get back. I guess that works best to make
multiple unique devices with same hex.
Rgds
Shashank
On Fri, Mar 21, 2014 at 3:45 PM, Phil Young wrote:
> I Use this code on LPC1114
>
> #define IAP_LOCATION 0x1fff1ff1
>
> typedef void (*IAP)(unsigned int [],unsigned int[]);
>
> unsigned int gResult[4];
>
> int main(void) {
>
> unsigned int command[5];
>
> IAP iap_entry;
>
> iap_entry=(IAP) IAP_LOCATION;
>
> command[0] = 58;
>
> iap_entry (command, gResult);
>
> }
>
> after this the 128 bit serial number is stored in the global gResult.
>
> Note that there are only a few bits that tend to differ between devices
>
> Below is a selection of values received from a number of LPC1114 devices,
> so if you want a shorter ID be careful which entries you select.
>
> 0x00000000,0x09091611,0x535306D4,0x4D2311F0
>
> 0x00000000,0x09091C11,0x535306D4,0x4D2315D6
>
> 0x00000000,0x09090B11,0x535306D4,0x4D231106
>
> 0x00000000,0x09090A11,0x535306D4,0x4D2316D3
>
> 0x00000000,0x0707f022,0x534d214a,0x4e469146
>
> 0x00000000,0x0505FE45,0x535213FC,0x4CAB5E1D
>
> 0x00000000,0x13130c20,0x53591daa,0x51c63062
>
> 0x00000000,0x09091B11,0x535306D4,0x4D2315D6
>
> 0x00000000,0x1818f704,0x53581b30,0x4fe8e38a
>
> 0x00000000,0x1313161f,0x53591daa,0x51c634ca
>
> 0x00000000,0x1313fa20,0x53591daa,0x51c62ebb
>
> 0x00000000,0x1818fe06,0x53581b30,0x4fe8cbf6
>
> 0x00000000,0x07072125,0x534D214A,0x4E4682A5
>
> 0x00000000,0x07071220,0x534d214a,0x4e467d36
>
> 0x00000000,0x07070120,0x534d214a,0x4e468923
>
> 0x00000000,0x0707E722,0x534D214A,0x4E469384
>
> 0x00000000,0x1313f51e,0x53591daa,0x51c62e4c
>
> 0x00000000,0x0707E924,0x534D214A,0x4E46937B
>
> 0x00000000,0x09091511,0x535306D4,0x4D2311F0
>
> 0x00000000,0x07070823,0x534D214A,0x4E46863C
>
> 0x00000000,0x0707031F,0x534D214A,0x4E46875C
>
> 0x00000000,0x07070B24,0x534D214A,0x4E467C17
>
> 0x00000000,0x07071923,0x534D214A,0x4E46801B
>
> 0x00000000,0x0F0FF640,0x534D214A,0x4E475B7F
>
> 0x00000000,0x09091611,0x535306d4,0x4d2311f0
>
> 0x00000000,0x09092116,0x53591da5,0x522f957f
>
> 0x00000000,0x09091b14,0x53591da5,0x522f94a5
>
> 0x00000000,0x0909f215,0x53591da5,0x522f90f3
>
> 0x00000000,0x0909f115,0x53591da5,0x522f90f3
>
> 0x00000000,0x09092217,0x53591da5,0x522f9587
>
> Regards
>
> Phil.
>
> *From:* l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* 21 March 2014 09:55
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> Il 21/03/2014 10:06, Riscy ha scritto:
> >
> >
> > Use serialID device (from microchip I think), it 3 pin SOT23 or
> > smaller SC70.
> >
> Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
> >
> >
> >
> > R.
> >
> >
> >
> > *From:*l... [mailto:l...]
> *On
> > Behalf Of *M. Manca
> > *Sent:* Friday, March 21, 2014 10:17 AM
> > *To:* l...
> > *Subject:* Re: [lpc2000] LPCXpresso Build Automate
> >
> >
> >
> >
> >
> > Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> > >
> > > Hi Guys
> > >
> > > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > > needed to create a same firmware thousand times with different
> > > embedded serial numbers and get the respective hex.
> > >
> > > Can someone help out with automating this process. I guess writing a
> > > shell script or something with change in the serial number through vi
> > > editor and building the project with saving the hex every time can
> > > solve the issue. However even after multiple tries I was not
> > > successful in this.
> > >
> > > I would really appreciate any help or pointers in this.
> > If you need a serial number with a specific meaning for you to
> > distinguish the boards and their options you can follow what Vladimir
> > said.
> >
> > If you need a simple serial number you coud alternatively use the LPC
> > 11xx microcontroller unique serial number written by NXP during
> > manufacturing. You could also use it to generate secret passwords or
> > public keys.
> >
> > To read the LPC11xx serial number it is necessary to use an IAP command:
> > ReadUID that is described on section 26 if I remember well.
> > It would be interesting to know that you can also read the type of the
> > microcontroller reading the CPUID register that should be described in
> > section 28. If I remember well also for Cortex-M0 parts CPUID is
> > directly readable because is memory mapped.
> > >
> > > Tx & Rgds
> > > Shashank
> > > --
> > > Shashank Maheshwari
> > >
> > >
> > >
> > > ----------------------
> > >
> > >
> > > Questa e-mail priva di virus e malware perchattiva la protezione
> > > avast! Antivirus ..
> > >
> > >
> >
> > logo
> > *
> >
> > Massimo Manca*/, Micron Engineering/
> > via della Ferriera, 48 33170 Pordenone PN ITALIA
> > Tel: 39 0434 1856131| Mobile: 39 349 4504979
> > www.micronengineering.it
> >
> > Twitter
> > <
> http://s.wisestamp.com/links?url=https%3A%2F%2Ftwitter.com%2Fmassimomanca>
> > LinkedIn
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fit.linkedin.com%2Fpub%2Fmassimo-manca%2F7%2Fa15%2F479%2F
> >
> > SlideShare
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2Fmicronpn
> >
> > Contact me: Skype micron.engineering
> > Designed with WiseStamp -
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >Get
> > yours
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >
> >
> >
> > ---
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus.
> > http://www.avast.com
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus .
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it
>
> Twitter
> > >
> LinkedIn
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fit.linkedin.com%2Fpub%2Fmassimo-manca%2F7%2Fa15%2F479%2F
> >
> SlideShare
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2Fmicronpn
> >
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >Get
> yours
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
>
>
>
--
Shashank Maheshwari
@phil.. I'll try this method and get back. I guess that works best to make
multiple unique devices with same hex.
Rgds
Shashank
On Fri, Mar 21, 2014 at 3:45 PM, Phil Young wrote:
> I Use this code on LPC1114
>
> #define IAP_LOCATION 0x1fff1ff1
>
> typedef void (*IAP)(unsigned int [],unsigned int[]);
>
> unsigned int gResult[4];
>
> int main(void) {
>
> unsigned int command[5];
>
> IAP iap_entry;
>
> iap_entry=(IAP) IAP_LOCATION;
>
> command[0] = 58;
>
> iap_entry (command, gResult);
>
> }
>
> after this the 128 bit serial number is stored in the global gResult.
>
> Note that there are only a few bits that tend to differ between devices
>
> Below is a selection of values received from a number of LPC1114 devices,
> so if you want a shorter ID be careful which entries you select.
>
> 0x00000000,0x09091611,0x535306D4,0x4D2311F0
>
> 0x00000000,0x09091C11,0x535306D4,0x4D2315D6
>
> 0x00000000,0x09090B11,0x535306D4,0x4D231106
>
> 0x00000000,0x09090A11,0x535306D4,0x4D2316D3
>
> 0x00000000,0x0707f022,0x534d214a,0x4e469146
>
> 0x00000000,0x0505FE45,0x535213FC,0x4CAB5E1D
>
> 0x00000000,0x13130c20,0x53591daa,0x51c63062
>
> 0x00000000,0x09091B11,0x535306D4,0x4D2315D6
>
> 0x00000000,0x1818f704,0x53581b30,0x4fe8e38a
>
> 0x00000000,0x1313161f,0x53591daa,0x51c634ca
>
> 0x00000000,0x1313fa20,0x53591daa,0x51c62ebb
>
> 0x00000000,0x1818fe06,0x53581b30,0x4fe8cbf6
>
> 0x00000000,0x07072125,0x534D214A,0x4E4682A5
>
> 0x00000000,0x07071220,0x534d214a,0x4e467d36
>
> 0x00000000,0x07070120,0x534d214a,0x4e468923
>
> 0x00000000,0x0707E722,0x534D214A,0x4E469384
>
> 0x00000000,0x1313f51e,0x53591daa,0x51c62e4c
>
> 0x00000000,0x0707E924,0x534D214A,0x4E46937B
>
> 0x00000000,0x09091511,0x535306D4,0x4D2311F0
>
> 0x00000000,0x07070823,0x534D214A,0x4E46863C
>
> 0x00000000,0x0707031F,0x534D214A,0x4E46875C
>
> 0x00000000,0x07070B24,0x534D214A,0x4E467C17
>
> 0x00000000,0x07071923,0x534D214A,0x4E46801B
>
> 0x00000000,0x0F0FF640,0x534D214A,0x4E475B7F
>
> 0x00000000,0x09091611,0x535306d4,0x4d2311f0
>
> 0x00000000,0x09092116,0x53591da5,0x522f957f
>
> 0x00000000,0x09091b14,0x53591da5,0x522f94a5
>
> 0x00000000,0x0909f215,0x53591da5,0x522f90f3
>
> 0x00000000,0x0909f115,0x53591da5,0x522f90f3
>
> 0x00000000,0x09092217,0x53591da5,0x522f9587
>
> Regards
>
> Phil.
>
> *From:* l... [mailto:l...] *On
> Behalf Of *M. Manca
> *Sent:* 21 March 2014 09:55
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> Il 21/03/2014 10:06, Riscy ha scritto:
> >
> >
> > Use serialID device (from microchip I think), it 3 pin SOT23 or
> > smaller SC70.
> >
> Why should he buy for a serialID when LPC1114 has inside a 128 bit UID?
> >
> >
> >
> > R.
> >
> >
> >
> > *From:*l... [mailto:l...]
> *On
> > Behalf Of *M. Manca
> > *Sent:* Friday, March 21, 2014 10:17 AM
> > *To:* l...
> > *Subject:* Re: [lpc2000] LPCXpresso Build Automate
> >
> >
> >
> >
> >
> > Il 21/03/2014 07:44, Shashank Maheshwari ha scritto:
> > >
> > > Hi Guys
> > >
> > > I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> > > needed to create a same firmware thousand times with different
> > > embedded serial numbers and get the respective hex.
> > >
> > > Can someone help out with automating this process. I guess writing a
> > > shell script or something with change in the serial number through vi
> > > editor and building the project with saving the hex every time can
> > > solve the issue. However even after multiple tries I was not
> > > successful in this.
> > >
> > > I would really appreciate any help or pointers in this.
> > If you need a serial number with a specific meaning for you to
> > distinguish the boards and their options you can follow what Vladimir
> > said.
> >
> > If you need a simple serial number you coud alternatively use the LPC
> > 11xx microcontroller unique serial number written by NXP during
> > manufacturing. You could also use it to generate secret passwords or
> > public keys.
> >
> > To read the LPC11xx serial number it is necessary to use an IAP command:
> > ReadUID that is described on section 26 if I remember well.
> > It would be interesting to know that you can also read the type of the
> > microcontroller reading the CPUID register that should be described in
> > section 28. If I remember well also for Cortex-M0 parts CPUID is
> > directly readable because is memory mapped.
> > >
> > > Tx & Rgds
> > > Shashank
> > > --
> > > Shashank Maheshwari
> > >
> > >
> > >
> > > ----------------------
> > >
> > >
> > > Questa e-mail priva di virus e malware perchattiva la protezione
> > > avast! Antivirus ..
> > >
> > >
> >
> > logo
> > *
> >
> > Massimo Manca*/, Micron Engineering/
> > via della Ferriera, 48 33170 Pordenone PN ITALIA
> > Tel: 39 0434 1856131| Mobile: 39 349 4504979
> > www.micronengineering.it
> >
> > <
> http://s.wisestamp.com/links?url=https%3A%2F%2Ftwitter.com%2Fmassimomanca>
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fit.linkedin.com%2Fpub%2Fmassimo-manca%2F7%2Fa15%2F479%2F
> >
> > SlideShare
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2Fmicronpn
> >
> > Contact me: Skype micron.engineering
> > Designed with WiseStamp -
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >Get
> > yours
> > <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395388113516%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >
> >
> >
> > ---
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus.
> > http://www.avast.com
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> > ----------------------
> >
> >
> > Questa e-mail priva di virus e malware perchattiva la protezione
> > avast! Antivirus .
> >
> > logo
> *
>
> Massimo Manca*/, Micron Engineering/
> via della Ferriera, 48 33170 Pordenone PN ITALIA
> Tel: 39 0434 1856131| Mobile: 39 349 4504979
> www.micronengineering.it
>
> > >
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fit.linkedin.com%2Fpub%2Fmassimo-manca%2F7%2Fa15%2F479%2F
> >
> SlideShare
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2Fmicronpn
> >
> Contact me: Skype micron.engineering
> Designed with WiseStamp -
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10
> >Get
> yours
> <
> http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Daaa0e17b120d63c7%26v%3D3.13.31%26t%3D1395395601225%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10>
> ---
> Questa e-mail priva di virus e malware perchattiva la protezione
> avast! Antivirus.
> http://www.avast.com
>
> [Non-text portions of this message have been removed]
>
>
>
--
Shashank Maheshwari
Reply by ●March 22, 20142014-03-22
On 21.3.2014 7:44, Shashank Maheshwari wrote:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
>
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First
hex file is firmware which have placeholder for serial number on known
location. Second hex file is automaticaly generated by custom utility
program and contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I
> needed to create a same firmware thousand times with different
> embedded serial numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a
> shell script or something with change in the serial number through vi
> editor and building the project with saving the hex every time can
> solve the issue. However even after multiple tries I was not
> successful in this.
>
> I would really appreciate any help or pointers in this.
>
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First
hex file is firmware which have placeholder for serial number on known
location. Second hex file is automaticaly generated by custom utility
program and contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
Reply by ●March 22, 20142014-03-22
I do this already using the internal serial number, and run a script after
programming to retrieve the serial number of the device.
To simplify it the start of my code retrieves the serial number into a
global array, from which I generate several other numbers, then I start the
code in the debugger with a breakpoint just after the serial numbers are
generated and run the script to dump them to the console.
This takes a few seconds per board to program, enter the debugger, and
retrieve the values.
I posted the code earlier to retrieve the serial number.
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
Mario Ivancic
Sent: 22 March 2014 19:52
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
On 21.3.2014 7:44, Shashank Maheshwari wrote:
Hi Guys
I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed to
create a same firmware thousand times with different embedded serial numbers
and get the respective hex.
Can someone help out with automating this process. I guess writing a shell
script or something with change in the serial number through vi editor and
building the project with saving the hex every time can solve the issue.
However even after multiple tries I was not successful in this.
I would really appreciate any help or pointers in this.
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First hex
file is firmware which have placeholder for serial number on known location.
Second hex file is automaticaly generated by custom utility program and
contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
programming to retrieve the serial number of the device.
To simplify it the start of my code retrieves the serial number into a
global array, from which I generate several other numbers, then I start the
code in the debugger with a breakpoint just after the serial numbers are
generated and run the script to dump them to the console.
This takes a few seconds per board to program, enter the debugger, and
retrieve the values.
I posted the code earlier to retrieve the serial number.
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
Mario Ivancic
Sent: 22 March 2014 19:52
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
On 21.3.2014 7:44, Shashank Maheshwari wrote:
Hi Guys
I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed to
create a same firmware thousand times with different embedded serial numbers
and get the respective hex.
Can someone help out with automating this process. I guess writing a shell
script or something with change in the serial number through vi editor and
building the project with saving the hex every time can solve the issue.
However even after multiple tries I was not successful in this.
I would really appreciate any help or pointers in this.
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First hex
file is firmware which have placeholder for serial number on known location.
Second hex file is automaticaly generated by custom utility program and
contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
Reply by ●March 22, 20142014-03-22
Should have mentioned, I use the Keil toolchain for this. I have the
licensed version for code generation, but the free version ( code size
limited ) is fine for programming regardless of the code size.
You simply set it to run the script on entry to the debugger which first
programs the image so it only takes a single button press.
From: Phil Young [mailto:p...@dsl.pipex.com]
Sent: 23 March 2014 00:16
To: 'l...'
Subject: RE: [lpc2000] LPCXpresso Build Automate
I do this already using the internal serial number, and run a script after
programming to retrieve the serial number of the device.
To simplify it the start of my code retrieves the serial number into a
global array, from which I generate several other numbers, then I start the
code in the debugger with a breakpoint just after the serial numbers are
generated and run the script to dump them to the console.
This takes a few seconds per board to program, enter the debugger, and
retrieve the values.
I posted the code earlier to retrieve the serial number.
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
Mario Ivancic
Sent: 22 March 2014 19:52
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
On 21.3.2014 7:44, Shashank Maheshwari wrote:
Hi Guys
I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed to
create a same firmware thousand times with different embedded serial numbers
and get the respective hex.
Can someone help out with automating this process. I guess writing a shell
script or something with change in the serial number through vi editor and
building the project with saving the hex every time can solve the issue.
However even after multiple tries I was not successful in this.
I would really appreciate any help or pointers in this.
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First hex
file is firmware which have placeholder for serial number on known location.
Second hex file is automaticaly generated by custom utility program and
contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
licensed version for code generation, but the free version ( code size
limited ) is fine for programming regardless of the code size.
You simply set it to run the script on entry to the debugger which first
programs the image so it only takes a single button press.
From: Phil Young [mailto:p...@dsl.pipex.com]
Sent: 23 March 2014 00:16
To: 'l...'
Subject: RE: [lpc2000] LPCXpresso Build Automate
I do this already using the internal serial number, and run a script after
programming to retrieve the serial number of the device.
To simplify it the start of my code retrieves the serial number into a
global array, from which I generate several other numbers, then I start the
code in the debugger with a breakpoint just after the serial numbers are
generated and run the script to dump them to the console.
This takes a few seconds per board to program, enter the debugger, and
retrieve the values.
I posted the code earlier to retrieve the serial number.
Regards
Phil.
From: l... [mailto:l...] On Behalf Of
Mario Ivancic
Sent: 22 March 2014 19:52
To: l...
Subject: Re: [lpc2000] LPCXpresso Build Automate
On 21.3.2014 7:44, Shashank Maheshwari wrote:
Hi Guys
I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed to
create a same firmware thousand times with different embedded serial numbers
and get the respective hex.
Can someone help out with automating this process. I guess writing a shell
script or something with change in the serial number through vi editor and
building the project with saving the hex every time can solve the issue.
However even after multiple tries I was not successful in this.
I would really appreciate any help or pointers in this.
Hello,
I'm using make utility and Makefile for flashing my boards. Another key
componet is lpc21isp because it accepts two (or more) hex files. First hex
file is firmware which have placeholder for serial number on known location.
Second hex file is automaticaly generated by custom utility program and
contains only serial number.
So, when I run Makefile it execute this tasks:
- new hex file with serial number is autogenerated
- lpc21isp do the flashing
- custom program prints serial number and other stuff on bar code label
I hope this can give you some ideas.
Best regards
Mario
Reply by ●March 26, 20142014-03-26
Hi
I tried the UID method (as Phil explained) and it worked. Now we use only
one hex firmware for all our boards. Thank you so much for the help !
Regards
Shashank
On Sun, Mar 23, 2014 at 5:48 AM, Phil Young wrote:
> Should have mentioned, I use the Keil toolchain for this. I have the
> licensed version for code generation, but the free version ( code size
> limited ) is fine for programming regardless of the code size.
>
> You simply set it to run the script on entry to the debugger which first
> programs the image so it only takes a single button press.
>
> *From:* Phil Young [mailto:p...@dsl.pipex.com]
> *Sent:* 23 March 2014 00:16
> *To:* 'l...'
> *Subject:* RE: [lpc2000] LPCXpresso Build Automate
>
> I do this already using the internal serial number, and run a script after
> programming to retrieve the serial number of the device.
>
> To simplify it the start of my code retrieves the serial number into a
> global array, from which I generate several other numbers, then I start the
> code in the debugger with a breakpoint just after the serial numbers are
> generated and run the script to dump them to the console.
>
> This takes a few seconds per board to program, enter the debugger, and
> retrieve the values.
>
> I posted the code earlier to retrieve the serial number.
>
> Regards
>
> Phil.
>
> *From:* l... [mailto:l...]
> *On Behalf Of *Mario Ivancic
> *Sent:* 22 March 2014 19:52
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> On 21.3.2014 7:44, Shashank Maheshwari wrote:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed
> to create a same firmware thousand times with different embedded serial
> numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a shell
> script or something with change in the serial number through vi editor and
> building the project with saving the hex every time can solve the issue.
> However even after multiple tries I was not successful in this.
>
> I would really appreciate any help or pointers in this.
>
> Hello,
> I'm using make utility and Makefile for flashing my boards. Another key
> componet is lpc21isp because it accepts two (or more) hex files. First hex
> file is firmware which have placeholder for serial number on known
> location. Second hex file is automaticaly generated by custom utility
> program and contains only serial number.
> So, when I run Makefile it execute this tasks:
> - new hex file with serial number is autogenerated
> - lpc21isp do the flashing
> - custom program prints serial number and other stuff on bar code label
>
> I hope this can give you some ideas.
> Best regards
> Mario
>
>
>
--
Shashank Maheshwari
I tried the UID method (as Phil explained) and it worked. Now we use only
one hex firmware for all our boards. Thank you so much for the help !
Regards
Shashank
On Sun, Mar 23, 2014 at 5:48 AM, Phil Young wrote:
> Should have mentioned, I use the Keil toolchain for this. I have the
> licensed version for code generation, but the free version ( code size
> limited ) is fine for programming regardless of the code size.
>
> You simply set it to run the script on entry to the debugger which first
> programs the image so it only takes a single button press.
>
> *From:* Phil Young [mailto:p...@dsl.pipex.com]
> *Sent:* 23 March 2014 00:16
> *To:* 'l...'
> *Subject:* RE: [lpc2000] LPCXpresso Build Automate
>
> I do this already using the internal serial number, and run a script after
> programming to retrieve the serial number of the device.
>
> To simplify it the start of my code retrieves the serial number into a
> global array, from which I generate several other numbers, then I start the
> code in the debugger with a breakpoint just after the serial numbers are
> generated and run the script to dump them to the console.
>
> This takes a few seconds per board to program, enter the debugger, and
> retrieve the values.
>
> I posted the code earlier to retrieve the serial number.
>
> Regards
>
> Phil.
>
> *From:* l... [mailto:l...]
> *On Behalf Of *Mario Ivancic
> *Sent:* 22 March 2014 19:52
> *To:* l...
> *Subject:* Re: [lpc2000] LPCXpresso Build Automate
>
> On 21.3.2014 7:44, Shashank Maheshwari wrote:
>
> Hi Guys
>
> I have been working on LPC1114 using LPCXpresso on a Mavericks. I needed
> to create a same firmware thousand times with different embedded serial
> numbers and get the respective hex.
>
> Can someone help out with automating this process. I guess writing a shell
> script or something with change in the serial number through vi editor and
> building the project with saving the hex every time can solve the issue.
> However even after multiple tries I was not successful in this.
>
> I would really appreciate any help or pointers in this.
>
> Hello,
> I'm using make utility and Makefile for flashing my boards. Another key
> componet is lpc21isp because it accepts two (or more) hex files. First hex
> file is firmware which have placeholder for serial number on known
> location. Second hex file is automaticaly generated by custom utility
> program and contains only serial number.
> So, when I run Makefile it execute this tasks:
> - new hex file with serial number is autogenerated
> - lpc21isp do the flashing
> - custom program prints serial number and other stuff on bar code label
>
> I hope this can give you some ideas.
> Best regards
> Mario
>
>
>
--
Shashank Maheshwari