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:
When I inspect the memory location where UUID is stored at, the memory is always 0 also.
Memory from the debugger at 0x40000430
Please advise how to retrieve UUID
I just tested iap_basic demo with my LPC54018M board. I didn't find any problem. the part on board is 1B revision.
There is defect in 0A revision but has been fixed in 1B
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,
I am using boot 1B from NXP dev board LPC54S018M-EVK as well. please advise
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?
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.
Which demo do you use thus we can see this problem as well?
I use latest SDK standalone example "iap_basic" with KEIL IDE.
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?
The screenshot in my original post is from "iap_basic" 's debug output running with KEIL IDE.
I tested iap_demo with MDK v5.31 + SDK2.10.0. code runs in ram. This is the output. Unique ID is valid.
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.
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.
Hope this can help you.