LPC55S16 Device_ID readout from IAP?

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

LPC55S16 Device_ID readout from IAP?

Jump to solution
843 Views
Kepsz
Contributor I

Hi,

I have project with a fully working IAP implementation, except for the Device_ID value.

I see UM11295 is recently got updated with Table 172 that lists all the possible ID's for this MCU group. But at the same time, Table 254 seems lost the SystemDeviceID property that originaly had the value of 10h.

I still have the code for this removed property and with an LPC55S16 device but the result is different from what Table 172 tells me.

Is this SystemDeviceID property was not working properly? Is there an other way to get the Device_ID from the IAP?

0 Kudos
Reply
1 Solution
802 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Kepsz 

I recommend you using the ReadMemory command to read the address of the register of DEVICE_ID0.

 

BR

Alice

View solution in original post

0 Kudos
Reply
5 Replies
813 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Kepsz 

Yes, please refer to the UM. SystemDeviceID property is removed.

Please  directly read the register of DEVICE_ID0, like below:
  test = SYSCON->DEVICE_ID0;

Blow is reading lpc55s16:

1322.jpg

 

Hope it helps you.

 

BR

Alice

0 Kudos
Reply
810 Views
Kepsz
Contributor I

Dear Alice,

Thank you for your answer. Let me clarify my problem:
On the field, we are manufacturing modules with different NXP MCU's.

We need to configure CFPA and CMPA areas, but the starting address of those areas are MCU dependent. So we have to identify the MCU from the bootloader in order to allow the automated firmware download process in manufacturing.

Is there any way to identify LPC55S16 or LPC5528 mcu's from the bootloader?

0 Kudos
Reply
803 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Kepsz 

I recommend you using the ReadMemory command to read the address of the register of DEVICE_ID0.

 

BR

Alice

0 Kudos
Reply
752 Views
Kepsz
Contributor I

It sounded good so I marked your post as the result, but I think I found an other issue.

Reading the proper address (50000000 + FF8 offset) results an empty response package with the length of 0. This post seems having the same issue: https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S06-ISP-ReadMemory-returns-lt/m-p/1506901 

The figure 27 example from the datasheet does also result an empty response on 55S16. Meanwhile, I can read bytes from the user code area. Strange.

0 Kudos
Reply
820 Views
Kepsz
Contributor I

By Table 254, I ment Table 264.

These are the SystemDeviceID responses from some MCU's:
LPC55S16 - 5A A4 08 00 92 68 A7 00 00 01 3C 28 00 00 00 00 00 00 (incorrect)
LPC5528 - 5A A4 08 00 92 68 A7 00 00 01 3C 28 00 00 00 00 00 00 (incorrect)
LPC55S28 - 5A A4 10 00 92 B0 A7 00 00 03 00 00 00 00 9C 11 10 A0 (correct)

So I think this is the reason why the SystemDeviceID property got removed.

0 Kudos
Reply