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
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.
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
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.
This is the register reading:
Hope it can help you
BR
XiangJun Rong