LPC54S018M UUID is always 0

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

LPC54S018M UUID is always 0

2,093 Views
belmontbob59
Contributor IV

Hi, I run SDK's example "iap_basic" to retrieve UUID the value read from the MCU  is always 0. I tried on multiple board with 54S018M and the value is always 0.

SDK's IAP debug output:

IAP.PNG

When I inspect the memory location where UUID is stored at, the memory is always 0 also. 

Per manual

belmontbob59_0-1636401817320.png

Memory from the debugger at 0x40000430

belmontbob59_1-1636401887615.png

Please advise how to retrieve UUID

Labels (1)
0 Kudos
11 Replies

2,075 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI 

I just tested iap_basic demo with my LPC54018M board. I didn't find any problem. the part on board is 1B revision.

ZhangJennie_2-1636436985157.jpeg

 

ZhangJennie_0-1636436738080.png

 

There is defect in 0A revision but has been fixed in 1B

ZhangJennie_1-1636436807355.png

 

Please check your part revision. If you are not sure, please post your chip silk screen photo here. I will check it.

Have a nice day,

Jun Zhang

0 Kudos

2,065 Views
belmontbob59
Contributor IV

I am using boot 1B from NXP dev board LPC54S018M-EVK as well. please advise 

NXP_UUID_VAR.PNG

NXP_UUID_MEM.PNG

belmontbob59_0-1636475033837.png

 

0 Kudos

2,049 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I am not sure if this related with IDE.

Please use MCUxpresso IDE and test the demo code again as I did.

Besides, where did you buy the board? Which company?

 

0 Kudos

2,024 Views
belmontbob59
Contributor IV

I figured out the issue.

Where running the SDK example, the IDE  (KIEL) copy the image into SRAM and run. This is when UUID is always 0.

If I program the example into flash an run then NXP's BOOT ROM executes first and then passes control to the example. UUID is non zero.

 

So it looks like NXP BOOT ROM is setting things up to make UUID available to the application. This is not documented anywhere in the manual as far as I know.

 

0 Kudos

1,991 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Which demo do you use thus we can see this problem as well?

0 Kudos

1,984 Views
belmontbob59
Contributor IV

I use latest SDK standalone example "iap_basic" with KEIL IDE.

0 Kudos

1,949 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Can you use this demo ("iap_basic" with KEIL IDE) output UUID with serial output as what I showed in my screenshot in my first reply?

0 Kudos

1,897 Views
belmontbob59
Contributor IV

The screenshot in my original post  is from "iap_basic" 's  debug output running with KEIL IDE.

belmontbob59_0-1638290797217.png

 

0 Kudos

1,887 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I tested iap_demo with MDK v5.31 + SDK2.10.0. code runs in ram. This is the output. Unique ID is valid.

ZhangJennie_0-1638330035018.png

 

0 Kudos

1,880 Views
belmontbob59
Contributor IV

Two things:

a)Please use the attached project. This is the exact project that I am using. It is "iap_basic" project untouched. I downloaded it from your SDK daskboard (SDK 2.10.0), This is what you guys refer to as  a "standalone" project. I load it under KEIL IDE (MDK 5.33) . I compile the project, leave all settings untouched and press Ctrl+F5 (start/stop debug sessiong).The debug output is what is attached to my original post.

b)For debugging I am not using J8/CMSIS-DAP on my NXP devboard (LPC54S018M-EVK). I am using ULINK2 and connect my JTAG probe to P1 (SWD).

 

Hope this help.

0 Kudos

1,873 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I don't have Ulink2 

But I test your code on my board  with on board debug interface CMSIS-DAP. I got the same result.

ZhangJennie_0-1638415925712.png

Hope this can help you.

Jun Zhang

0 Kudos