How to read UID from MKE17Z using MCU_Link Pro

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

How to read UID from MKE17Z using MCU_Link Pro

1,188 Views
afcec
Contributor I

Hi, I am using MCU_link Pro as debug/programming probe with MKE17Z MCUs. Is there any way to get the UID for each device using, for example, a .bat file as the one I am currently using to upload new firmware with crt_emu_cm_readling.exe and kinetisconnect.scp?

I know how to read it from code, but I need to do it externally with MCU Link.

Thanks

Tags (1)
0 Kudos
Reply
3 Replies

1,160 Views
afcec
Contributor I

Hi ZianJun,

 

thank you for your help but I do know how to read the UID from code. However, I need to read it externally with the MCU-Link using the programming connector and I was wondering if any of the tools available (.exe, .scp...) could provide what I am looking for.

Some members of our staff do not have access to MCUXpresso nor have they any knowledge about code so I want them to use the same tool they are currently using to flash the firmware (but with a different script) to get the UID. 

Thanks again.

0 Kudos
Reply

1,134 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls download the user guide of MCU link pro from the link:

https://www.nxp.com.cn/docs/en/user-manual/UM11673.pdf

You can update the software in the MCU Link pro with J-Link firmware, then use the J-Link tools to read the memory/register value of the target processor.

BR

XiangJun Rong

0 Kudos
Reply

1,170 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the tools of KE17Z is MCUXPresso, IAR, keil, I have used the code to read UID.

uint32_t array[4];

int main(void)

{

/* Board pin init */

BOARD_InitBootPins();

BOARD_InitBootClocks();

array[0]=SIM->UIDML;

array[1]=SIM->UIDMH;

array[2]=SIM->UIDL;

array[3]=SIM->UIDH;

__asm("nop");

..........

}

It is okay.

xiangjun_rong_0-1717035348172.png

 

 

This is the register reading:

xiangjun_rong_1-1717035450719.png

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply