Cpuid 1769

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cpuid 1769

3,643 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue Feb 22 20:03:48 MST 2011
I followed this post http://knowledgebase.nxp.com/showthread.php?t=774 and was able to get and display the serial number and CPUID using IAP.

I am wondering if I can use the the CMSIS core_cm3 SCB_Type structure in some code to also display the CPUID. If possible some examples would be appreciated.

I was thinking of something like

SCB_Type scb;

and a printf statement using scb.CPUID and SCB_CPUID_PARTNO_Msk
0 Kudos
Reply
33 Replies

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Sep 23 12:04:27 MST 2012
Yes... probably. Thanks for the 10 minuter. Done the same.... Well.. almost..
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sun Sep 23 12:00:35 MST 2012
[SIZE=2][FONT=Tahoma]I'll keep this alive for the next 15 mins. -- then I have to go and eat something.
[email]o385003@rtrtr.com[/email]
[/FONT][/SIZE]
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sun Sep 23 11:56:43 MST 2012
[FONT=Tahoma][SIZE=2]
Quote: Wenzu
Same thought over here.

I think I have found your email hanging from one of mother Google's info branches.[/SIZE][/FONT] [FONT=Tahoma][SIZE=2]
I'll send you an email.



I don't have any google acounts -- are you confusing me with a lesser Mike Simmonds?[/SIZE][/FONT]
:eek:
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Sep 23 11:53:50 MST 2012
Same thought over here.

I think I have found your email hanging from one of mother Google's info branches.
I'll send you an email.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sun Sep 23 11:52:03 MST 2012
[FONT=Tahoma][SIZE=2]
Quote: Wenzu
Mike, thanks for your reply. Hmmm... I thought that all chips had their inner S#number as detailed in the specification. ( Bummer !! )

I will contact you privately about what you offered. Thanks-a-mill.

[/SIZE][/FONT] [FONT=Tahoma][SIZE=2]

How, admin has disabled PM's

I could get a "10 minute email" and post here, so you can use that to send me your real email?
[/SIZE][/FONT]
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Sep 23 11:40:25 MST 2012
Mike, thanks for your reply. Hmmm... I thought that all chips had their inner S#number as detailed in the specification. ( Bummer !! )

I will contact you privately about what you offered. Thanks-a-mill.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Sun Sep 23 10:36:15 MST 2012
[SIZE=2][FONT=Tahoma]Almost certainly, serial numbers did not get assigned for that batch, so FFFF... [I]is[/I] the (invalid) serial number. However ...

I could give you a couple of tiny asm snippets that maps a rom page with the ID, serial nbr and possibly other things into low flash space (and how to switch back of course!).

You would make a ram target project, only run via the debugger, stop between switch in and switch out, and use the memory viewer to see what's really there. [In effect, this is what happens in the IAP.] You can even export an appropriate memory dump if you want.

I won't put any info like this on a public forum because NXP won't like it and may even get heavy, and all the newbies would flood the forum with what how do my homework  etc.

Also I won't send any working code -- you'll have to be responsible for that yourself.

Having said that, if things get stuck, just reboot to revert to normal. It's all read-only anyway.

Valid for 1769 and 1778 (by experiment)

Are you interested or does the asm bit or custom linker files put you off?


[/FONT][/SIZE]
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sat Sep 22 13:25:45 MST 2012
Shameful bump.... :)

Anyone knows anything about what's changed in recent LPC1769's and their CPU ID ??
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Mon Aug 27 09:43:13 MST 2012
Apologize to resurrect this old thread....

But....

What's up with the CPUID  iap call on recent 1769 chips I got from digikey  ??

Neither my firmware will read the CPUID ( works 100% on 1 year old 1769's ), and neither FlashMagic will read them  Displays 0XFFFFFFFF or 4294967295  )
Bootloader version ( read from FlashMagic.... says 4.2 .. and the device ID is read correctly)

... but not the Serial  :(
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Mar 02 15:47:22 MST 2011

Quote: Zero
So just add an example section to your wiki and copy what's interesting. Since it's not possible to do that in this forum it's not the best solution but a step forward.



Unfortunately, it is not quite that simple as we need to ensure that there are no IP/copyright/license issues with any code that we post. Therefore we will need people to confirm that the code is theirs and to describe under which license it is being published. Yes, I know it is a pain, but (in a previous life) we have been bitten by such issues.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Mar 02 10:09:17 MST 2011
http://www.code-red-tech.com/support.php
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Wed Mar 02 10:00:00 MST 2011

Quote: CodeRedSupport
Hi,

We are thinking of providing a way of hosting these code snippets on our support/wiki pages. If you think this is a good idea, please contact our support group, and we can find a way that these useful snippets can be placed into an area for all interested parties to access.



Could you provide the link to the support group?
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue Mar 01 17:58:19 MST 2011

Quote: Zero
it's not the best solution but a step forward.



I agree with Zero as I have not found much here in the way of any useful code examples.  There are plenty of small bits here and there in the replies to posts and are usually in response to specific problems.  Granted the replies are quite helpful and insightful.

The examples that come with LPCXpresso are good but they are in dire need of improved documentation.  Code without good documentation discourages those that are just starting to use MCUs and/or LPCXpresso.

Take a look at mbed.org if you need some ideas on what would be helpful.

Could you provide the link to the support group?

EDIT: Perhaps a new thread on this subject would solicit other good ideas.  Care to start one CodeRedSupport?
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Mar 01 15:34:25 MST 2011

Quote: CodeRedSupport
...We are thinking of providing a way of hosting these code snippets on our support/wiki pages...



So just add an example section to your wiki and copy what's interesting. Since it's not possible to do that in this forum it's not the best solution but a step forward.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Mar 01 15:09:27 MST 2011
Hi,

We are thinking of providing a way of hosting these code snippets on our support/wiki pages. If you think this is a good idea, please contact our support group, and we can find a way that these useful snippets can be placed into an area for all interested parties to access.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue Mar 01 11:22:55 MST 2011
I updated the code in post #5 of this thread.

Changed the struct for the IAP call.

The code displays the same info about the CPU as Flash Magic does.

KTownsend you should look at the corrections I made as the serial number is being returned in hex and it should be displayed in ASCII/dec per IAP in UM10360.

Zero might be interested in this also.

What is the best way to attach project code to a post?   Export, zip, attach zip?

Larry
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Thu Feb 24 14:48:41 MST 2011

Quote: KTownsend

PS:  Thanks for posting this.  I just shamelessly stole it since the serial number can be useful to store in some situations for security purposes to compare against a database, etc.: http://code.google.com/p/lpc1343codebase/source/browse/trunk/core/iap/iap.c



Kevin you are such a thief:)

I wrote it to copy CPU info into a database on an sdhc card running on another MCU.  I'm glad you found it useful.

Motto = Share The Code
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Feb 23 23:40:29 MST 2011

Quote: larryvc
Do you know if anybody at NXP follows these threads?



Let's test it :)

@NXP: Are you out there ?

Perhaps NXP Forum is the right place to post it:

http://forums.nxp.com/viewforum.php?f=1
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Wed Feb 23 16:47:50 MST 2011
Zero, with all the techno babel I thought you worked for them.:D

Do you know if anybody at NXP follows these threads?

I think I will put in a Document Change Request to NXP.
0 Kudos
Reply

2,932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Wed Feb 23 16:27:46 MST 2011

Quote: Zero
Unfortunately I'm not one of the 28.000+ employees of NXP and I don't know which of them is responsible for improving user manuals.
I'm just responsible for improving my own code :)



Seemed like a simple enough request to me. I bet you're just making excuses to avoid a bit of work. :p

PS:  Thanks for posting this.  I just shamelessly stole it since the serial number can be useful to store in some situations for security purposes to compare against a database, etc.: http://code.google.com/p/lpc1343codebase/source/browse/trunk/core/iap/iap.c
0 Kudos
Reply